Mastra Integration
helloxz/znote
Mastra AI framework integration guide for building TypeScript agents with skills, workflows, and memory
Comprehensive Mastra framework guide. An agent skill from LiorVainer/data-israel.
$ npx skills add LiorVainer/data-israel --skill mastra -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install LiorVainer/data-israel mastra --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/LiorVainer/data-israel.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/mastra .claude/skills/mastra && 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" agent skill from https://github.com/LiorVainer/data-israel/tree/main/.agents/skills/mastra into .claude/skills/mastra/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mastra", 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/LiorVainer/data-israel/tree/main/.agents/skills/mastraType 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 LiorVainer/data-israel --skill mastra -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install LiorVainer/data-israel mastra --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LiorVainer/data-israel.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/mastra .agents/skills/mastra && 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" agent skill from https://github.com/LiorVainer/data-israel/tree/main/.agents/skills/mastra into .agents/skills/mastra/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mastra", 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 LiorVainer/data-israel --skill mastra -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install LiorVainer/data-israel mastra --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LiorVainer/data-israel.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/mastra .cursor/skills/mastra && 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" agent skill from https://github.com/LiorVainer/data-israel/tree/main/.agents/skills/mastra into .cursor/skills/mastra/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mastra", 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/LiorVainer/data-israel.git --path .agents/skills/mastra--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 LiorVainer/data-israel --skill mastra -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install LiorVainer/data-israel mastra --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LiorVainer/data-israel.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/mastra .gemini/skills/mastra && 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" agent skill from https://github.com/LiorVainer/data-israel/tree/main/.agents/skills/mastra into .gemini/skills/mastra/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mastra", 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 LiorVainer/data-israel mastraInstalls 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 LiorVainer/data-israel --skill mastra -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/LiorVainer/data-israel.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/mastra .github/skills/mastra && 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" agent skill from https://github.com/LiorVainer/data-israel/tree/main/.agents/skills/mastra into .github/skills/mastra/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mastra", 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 LiorVainer/data-israel --skill mastra -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install LiorVainer/data-israel mastra --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LiorVainer/data-israel.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/mastra .opencode/skills/mastra && 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" agent skill from https://github.com/LiorVainer/data-israel/tree/main/.agents/skills/mastra into .opencode/skills/mastra/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mastra", 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.
mastraComprehensive Mastra framework guide. An agent skill from LiorVainer/data-israel.
Mastra is an agent skill from LiorVainer/data-israel. Comprehensive Mastra framework guide. Teaches how to find current documentation, verify API signatures, and build agents and workflows. Covers documentation lookup strategies (embedded docs, remote docs), core concepts (agents vs workflows, tools, memory, RAG), TypeScript requirements, and common patterns. Use this skill for all Mastra development to ensure you're using current APIs from the installed version or latest documentation.
Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `references/common-errors.md`, `references/create-mastra.md` and `references/embedded-docs.md`).
It sits in AI & LLM Engineering. It works with Mastra and TypeScript. The repository describes itself as: AI agent network that connects to Israeli open data sources - ask questions in Hebrew, get answers grounded in real data with charts and sources. The licence is Apache-2.0.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 6522504. 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.
Shell commands in SKILL.md call:
npmFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
mastra.aiFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Mastra loads about 1.6k tokens when it runs, and up to ~9.2k if it reads all its reference files. Until then it costs about 111 tokens; SKILL.md has 513 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 LiorVainer/data-israel at commit 6522504, republished under its Apache-2.0 licence (© LiorVainer). 513 words, ~1,594 tokens.
.claude/skills/mastra/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.Build AI applications with Mastra. This skill teaches you how to find current documentation and build agents and workflows.
Everything you know about Mastra is likely outdated or wrong. Never rely on memory. Always verify against current documentation.
Your training data contains obsolete APIs, deprecated patterns, and incorrect usage. Mastra evolves rapidly - APIs change between versions, constructor signatures shift, and patterns get refactored.
Before writing any Mastra code, check if packages are installed:
ls node_modules/@mastra/| User Question | First Check | How To |
|---|---|---|
| "Create/install Mastra project" | references/create-mastra.md | Setup guide with CLI and manual steps |
| "How do I use Agent/Workflow/Tool?" | references/embedded-docs.md | Look up in node_modules/@mastra/*/dist/docs/ |
| "How do I use X?" (no packages) | references/remote-docs.md | Fetch from https://mastra.ai/llms.txt |
| "I'm getting an error..." | references/common-errors.md | Common errors and solutions |
| "Upgrade from v0.x to v1.x" | references/migration-guide.md | Version upgrade workflows |
⚠️ Never write code without checking current docs first.
Embedded docs first (if packages installed)
Look up current docs in node_modules for a package. Example of looking up "Agent" docs in @mastra/core:
grep -r "Agent" node_modules/@mastra/core/dist/docs/referencesreferences/embedded-docs.mdSource code second (if packages installed)
If you can't find what you need in the embedded docs, look directly at the source code. This is more time consuming but can provide insights into implementation details.
# Check what's available
cat node_modules/@mastra/core/dist/docs/assets/SOURCE_MAP.json | grep '"Agent"'
# Read the actual type definition
cat node_modules/@mastra/core/dist/[path-from-source-map]references/embedded-docs.mdRemote docs third (if packages not installed)
You can fetch the latest docs from the Mastra website:
https://mastra.ai/llms.txtreferences/remote-docs.mdAgent: Autonomous, makes decisions, uses tools Use for: Open-ended tasks (support, research, analysis)
Workflow: Structured sequence of steps Use for: Defined processes (pipelines, approvals, ETL)
Mastra requires ES2022 modules. CommonJS will fail.
{
"compilerOptions": {
"target": "ES2022",
"module": "ES2022",
"moduleResolution": "bundler"
}
}Always use "provider/model-name":
"openai/gpt-5.2""anthropic/claude-sonnet-4-5""google/gemini-2.5-pro"Type errors often mean your knowledge is outdated.
Common signs of outdated knowledge:
Property X does not exist on type YCannot find moduleType mismatch errorsWhat to do:
references/common-errors.mdAlways verify before writing code:
Check packages installed
ls node_modules/@mastra/Look up current API
references/embedded-docs.mdreferences/remote-docs.mdWrite code based on current docs
Test in Studio
npm run dev # http://localhost:4111references/create-mastra.mdreferences/embedded-docs.md - Start here if packages are installedreferences/remote-docs.mdreferences/common-errors.mdreferences/migration-guide.md© LiorVainer, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 5 other files (references) in .agents/skills/mastra of LiorVainer/data-israel.
Open the folder on GitHubat commit 6522504
We found 4 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in LiorVainer/data-israel, which our catalogue first saw on October 7, 2026.
Mastra 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 this skillLiorVainer/data-israel | 130 | 2 repos | ~1.6k | Automated safety check: Pass | Apache-2.0 | |
| Mastra Integrationhelloxz/znote | 104 | — | ~643 | Automated safety check: Pass | AGPL-3.0 | |
| Migrating Mastra To Pydantic AIpydantic/pydantic-ai | 21k | — | ~2k | Automated safety check: Pass | MIT | |
| Compromise NLP Libraryspencermountain/compromise | 12k | — | ~2k | Automated safety check: Pass | MIT | |
| 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 |
helloxz/znote
Mastra AI framework integration guide for building TypeScript agents with skills, workflows, and memory
pydantic/pydantic-ai
Migrate TypeScript Mastra applications to Python with Pydantic AI and, only when needed, Pydantic AI Harness.
spencermountain/compromise
Helps write and debug JavaScript or TypeScript that uses the compromise English NLP library for matching, entity extraction, tagging and sentence transforms.
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.
google-gemini/gemini-skills
A skill your agent uses when writing code that calls the Gemini API for text generation, multi-turn chat, multimodal understanding, image generation, video generation, speech generation (TTS), voice…
LiorVainer/data-israel
Access and compare Israeli supermarket prices using mandatory Price Transparency Law data feeds.
LiorVainer/data-israel
This skill should be used when the user asks to 'add to backlog', 'create a backlog item', 'show backlog', 'list backlog tasks', 'what's in the backlog', 'move to backlog', 'check backlog', 'backlog…
LiorVainer/data-israel
This skill should be used when the user asks about 'GovMap layers', 'GovMap API', 'map layers', 'entitiesByPoint', 'layer metadata', 'govmap endpoints', 'what layers are available', 'query map data…
LiorVainer/data-israel
This skill should be used when the user asks to 'add a data source', 'create a new data source', 'add a new API', 'integrate a new data provider', 'add new tools', or mentions adding Israeli…
LiorVainer/data-israel
Setup Sentry AI Agent Monitoring in any project. An agent skill from LiorVainer/data-israel.
Works with
Categories
Comprehensive Mastra framework guide. An agent skill from LiorVainer/data-israel. Mastra is an agent skill from LiorVainer/data-israel. Comprehensive Mastra framework guide.
Mastra fits situations like: all Mastra development to ensure youre using current APIs from the installed version; latest documentation.
Run `npx skills add LiorVainer/data-israel --skill mastra -a claude-code`. Or copy the skill folder (.agents/skills/mastra in LiorVainer/data-israel) into .claude/skills/mastra in your project. Claude Code loads it when a task matches its description.
Run `npx skills add LiorVainer/data-israel --skill mastra -a codex`. Or copy the skill folder (.agents/skills/mastra in LiorVainer/data-israel) into .agents/skills/mastra 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 LiorVainer/data-israel --skill mastra -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, .gemini/skills/mastra, .github/skills/mastra and .opencode/skills/mastra in your project.
Going by SKILL.md and its folder, Mastra needs the command-line tools its instructions call (npm).
SKILL.md names 1 domain. In commands or code: mastra.ai; the agent is likely to contact it when it follows the instructions. 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 is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.6k tokens (SKILL.md is roughly 6.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 7.6k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Mastra: Mastra Integration (helloxz/znote, 104 stars), Migrating Mastra To Pydantic AI (pydantic/pydantic-ai, 21k stars), Compromise NLP Library (spencermountain/compromise, 12k stars) and Trigger.dev Agent Patterns (papermark/papermark, 9.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
LiorVainer (a GitHub user) maintains it in LiorVainer/data-israel, which has 130 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on May 13, 2026.
Source: LiorVainer/data-israel on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.