Trigger.dev Agent Patterns
papermark/papermark
Patterns for building LLM agents on Trigger.dev tasks: prompt chaining, routing, parallel workers, orchestrator-workers, evaluator loops and human approval gates.
Mastra AI framework integration guide for building TypeScript agents with skills, workflows, and memory
$ npx skills add helloxz/znote --skill mastra-integration -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install helloxz/znote mastra-integration --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/helloxz/znote.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.opencode/skills/mastra-integration .claude/skills/mastra-integration && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "mastra-integration" agent skill from https://github.com/helloxz/znote/tree/main/.opencode/skills/mastra-integration into .claude/skills/mastra-integration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mastra-integration", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/helloxz/znote/tree/main/.opencode/skills/mastra-integrationType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add helloxz/znote --skill mastra-integration -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install helloxz/znote mastra-integration --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/helloxz/znote.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.opencode/skills/mastra-integration .agents/skills/mastra-integration && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "mastra-integration" agent skill from https://github.com/helloxz/znote/tree/main/.opencode/skills/mastra-integration into .agents/skills/mastra-integration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mastra-integration", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add helloxz/znote --skill mastra-integration -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install helloxz/znote mastra-integration --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/helloxz/znote.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.opencode/skills/mastra-integration .cursor/skills/mastra-integration && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "mastra-integration" agent skill from https://github.com/helloxz/znote/tree/main/.opencode/skills/mastra-integration into .cursor/skills/mastra-integration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mastra-integration", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/helloxz/znote.git --path .opencode/skills/mastra-integration--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add helloxz/znote --skill mastra-integration -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install helloxz/znote mastra-integration --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/helloxz/znote.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.opencode/skills/mastra-integration .gemini/skills/mastra-integration && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "mastra-integration" agent skill from https://github.com/helloxz/znote/tree/main/.opencode/skills/mastra-integration into .gemini/skills/mastra-integration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mastra-integration", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install helloxz/znote mastra-integrationInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add helloxz/znote --skill mastra-integration -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/helloxz/znote.git skills-src && mkdir -p .github/skills && cp -r skills-src/.opencode/skills/mastra-integration .github/skills/mastra-integration && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "mastra-integration" agent skill from https://github.com/helloxz/znote/tree/main/.opencode/skills/mastra-integration into .github/skills/mastra-integration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mastra-integration", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add helloxz/znote --skill mastra-integration -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install helloxz/znote mastra-integration --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/helloxz/znote.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.opencode/skills/mastra-integration .opencode/skills/mastra-integration && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "mastra-integration" agent skill from https://github.com/helloxz/znote/tree/main/.opencode/skills/mastra-integration into .opencode/skills/mastra-integration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mastra-integration", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
mastra-integrationMastra AI framework integration guide for building TypeScript agents with skills, workflows, and memory
Mastra Integration is an agent skill from helloxz/znote. Mastra AI framework integration guide for building TypeScript agents with skills, workflows, and memory
Its SKILL.md is about 640 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in AI & LLM Engineering. It works with Mastra, TypeScript and OpenAI. The repository describes itself as: ZNote是一款小而美的纯笔记应用,原生支持 Markdown 所见即所得,一处部署,随处可用。 The licence is AGPL-3.0.
Read from SKILL.md and the folder at commit 80c58f1. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
mastra.aiFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
OPENAI_API_KEYANTHROPIC_API_KEYGOOGLE_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Mastra Integration loads about 643 tokens when it runs. Until then it costs about 31 tokens; SKILL.md has 110 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from helloxz/znote at commit 80c58f1, republished under its AGPL-3.0 licence (© helloxz). 110 words, ~643 tokens.
.claude/skills/mastra-integration/SKILL.md (or your agent's skills folder).createSkill() and Agent classesUse this skill when:
import { createSkill } from '@mastra/core/skills'
const mySkill = createSkill({
name: 'skill-name',
description: 'What this skill does',
instructions: `Detailed instructions for the agent...`,
references: {
'doc.md': '# Reference content...',
},
})import { Agent } from '@mastra/core/agent'
import { mySkill } from './skills/my-skill'
export const agent = new Agent({
id: 'agent-id',
name: 'Agent Name',
instructions: 'Agent behavior instructions...',
model: 'openai/gpt-5.5', // provider/model format
skills: [mySkill],
})Use provider/model format (not provider:model):
openai/gpt-5.5anthropic/claude-sonnet-4-6google/gemini-2.5-flashOPENAI_API_KEYANTHROPIC_API_KEYGOOGLE_API_KEYsrc/
├── mastra/
│ ├── index.ts # Mastra entry point
│ ├── agents/
│ │ └── my-agent.ts
│ ├── skills/
│ │ └── my-skill.ts
│ └── tools/
│ └── my-tool.tsimport { Mastra } from '@mastra/core'
import { myAgent } from './agents/my-agent'
export const mastra = new Mastra({
agents: { myAgent },
})export const agent = new Agent({
id: 'dynamic-agent',
model: 'openai/gpt-5.5',
skills: ({ requestContext }) => {
const role = requestContext.get('userRole')
if (role === 'developer') return [devSkill]
return [supportSkill]
},
})const skill = await agent.getSkill('skill-name')
const allSkills = await agent.listSkills()© helloxz, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .opencode/skills/mastra-integration of helloxz/znote.
Open the folder on GitHubat commit 80c58f1
Mastra Integration next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Mastra Integration this skillhelloxz/znote | 104 | — | ~643 | Automated safety check: Pass | AGPL-3.0 | |
| Trigger.dev Agent Patternspapermark/papermark | 9.2k | — | ~2k | Automated safety check: Pass | Custom licence | |
| Add Example AgentGetBindu/Bindu | 10k | — | ~1.1k | Automated safety check: Notes | Custom licence | |
| Claude APIKocoro-lab/Kocoro | 414 | 7 repos | ~4.5k | Automated safety check: Pass | Apache-2.0 | |
| Agent Squad for TypeScript2FastLabs/agent-squad | 7.8k | — | ~4.3k | Automated safety check: Pass | Apache-2.0 | |
| MastraLiorVainer/data-israel | 130 | 2 repos | ~1.6k | Automated safety check: Pass | Apache-2.0 |
papermark/papermark
Patterns for building LLM agents on Trigger.dev tasks: prompt chaining, routing, parallel workers, orchestrator-workers, evaluator loops and human approval gates.
GetBindu/Bindu
Add a new self-contained example agent under examples/. An agent skill from GetBindu/Bindu.
Kocoro-lab/Kocoro
Build apps with the Claude API or Anthropic SDK. An agent skill from Kocoro-lab/Kocoro.
2FastLabs/agent-squad
Guide to building Node.js and TypeScript apps on the agent-squad package: orchestrator, agent types, classifier routing, storage, retrievers and MCP tools.
LiorVainer/data-israel
Comprehensive Mastra framework guide. An agent skill from LiorVainer/data-israel.
2aronS/Duel-Agents
Use Duel Agents model routing in Cursor. An agent skill from 2aronS/Duel-Agents.
Works with
Categories
Mastra AI framework integration guide for building TypeScript agents with skills, workflows, and memory. Mastra Integration is an agent skill from helloxz/znote.
Mastra Integration fits situations like: AI & LLM Engineering work in your project.
Run `npx skills add helloxz/znote --skill mastra-integration -a claude-code`. Or copy the skill folder (.opencode/skills/mastra-integration in helloxz/znote) into .claude/skills/mastra-integration in your project. Claude Code loads it when a task matches its description.
Run `npx skills add helloxz/znote --skill mastra-integration -a codex`. Or copy the skill folder (.opencode/skills/mastra-integration in helloxz/znote) into .agents/skills/mastra-integration in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add helloxz/znote --skill mastra-integration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mastra-integration, .gemini/skills/mastra-integration, .github/skills/mastra-integration and .opencode/skills/mastra-integration in your project.
Going by SKILL.md and its folder, Mastra Integration needs credentials named OPENAI_API_KEY, ANTHROPIC_API_KEY and GOOGLE_API_KEY. Our summary lists: A credential in OPENAI_API_KEY; A credential in ANTHROPIC_API_KEY.
SKILL.md names 1 domain. As links in the text: mastra.ai. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Mastra Integration is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 643 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Mastra Integration: Trigger.dev Agent Patterns (papermark/papermark, 9.2k stars), Add Example Agent (GetBindu/Bindu, 10k stars), Claude API (Kocoro-lab/Kocoro, 414 stars) and Agent Squad for TypeScript (2FastLabs/agent-squad, 7.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
helloxz (a GitHub user) maintains it in helloxz/znote, which has 104 GitHub stars. The repository was last updated on August 17, 2026.
Source: helloxz/znote on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.