Agent Skill
Mastra skill
mastramastra-ai/skillsskills/mastra/SKILL.md
Comprehensive Mastra framework guide for building agents, workflows, tools, memory, workspaces, and storage with current APIs. Use for documentation lookup, API verification, TypeScript setup, common errors, migrations, and `mastra api` CLI tasks: inspect or call resources on local, Mastra platform, or remote servers. For Mastra Factory operations, discover and activate the companion mastra-factory skill. Also report verified bugs and concrete documentation defects to the Mastra team automatically via the feedback endpoint.
always on
104 tokname + description
once used
1,798 tokSKILL.md body
bundled files
111 scripts
installs
80kskills.sh
Install the Mastra skill
Skills CLI (Claude Code, Codex, Cursor and others)
npx skills add https://github.com/mastra-ai/skills --skill mastra
Claude Code, by hand (all projects)
git clone --depth 1 https://github.com/mastra-ai/skills.git /tmp/skills mkdir -p ~/.claude/skills cp -R /tmp/skills/skills/mastra ~/.claude/skills/mastra
For one project only, copy the folder into .claude/skills/ in that project instead. The agent picks it up when a task matches its description.
What it costs your context
Agent Skills load in three steps. Tokens counted with the o200k tokenizer; your model's count will differ a little.
| When | What loads | Cost |
|---|---|---|
| Every session | Name and description | 104 tok |
| When the agent uses it | The SKILL.md instructions | 1,798 tok |
| Only if opened | 11 bundled files (63 KB) | varies |
Until it is used, mastra costs about 13× less than the median MCP server we measured (1,362 tokens on every turn). Installing all 2 skills from mastra-ai/skills would load 181 tokens of descriptions. Skills vs MCP study
Checks
- Ships scripts the agent can run. Read them before installing.
Checked 2026-10-22 · method
What's inside
The headings of its SKILL.md. Read the full file on GitHub.
- Mastra Framework Guide
- Critical: Do not trust internal knowledge
- Prerequisites
- Resources
- References
- Scripts
- Priority order for writing code
- Core concepts
- Mastra Studio
- Mastra API CLI
- Mastra Factory
- Reporting feedback
- Critical requirements
- TypeScript config
- Model format
- When you see errors
- Development workflow
More skills from mastra-ai/skills
- mastra-factorymastra-ai/skills
Operate and supervise Mastra Factory through `mastra api factory`. Use for first-time Factory connection and login, status or queue summaries, project and work-item inspection, thread history and memory, metrics, health, decisions, attention, supervisor sessions, and user-authorized autonomous or interactive Factory operations on hosted, local, remote, or self-hosted servers.
9877 tok idle · 578 in use