Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add svngoku/coding-agents-skills --skill mastragit clone --depth 1 https://github.com/svngoku/coding-agents-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/svngoku/coding-agents-skills/mastra)<a href="https://agentmods.dev/skills/svngoku/coding-agents-skills/mastra"><img src="https://agentmods.dev/badge/skills/svngoku/coding-agents-skills/mastra/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/svngoku/coding-agents-skills/mastra"><img src="https://agentmods.dev/badge/skills/svngoku/coding-agents-skills/mastra.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00084 | $0.02760 |
| Opus 5.5 | $0.00034 | $0.01104 |
| Sonnet 5.5 | $0.00017 | $0.00552 |
| Haiku 4.5 | $0.00008 | $0.00276 |
Grade A, and why
mastra scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 21d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 234 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Mastra AI Agent Framework
Mastra is a TypeScript framework for agents, tools, workflows, memory, retrieval, evaluation,
and deployment. Use models for uncertain language and semantic judgments; keep authorization,
state transitions, budgets, retries, and side effects deterministic. This skill targets current
Mastra v1 APIs, checked against @mastra/core 1.82.0 on 2026-11-08. Re-check exact APIs and
model IDs against the official documentation before upgrading.
Quick Reference
| Topic | Guide |
|---|---|
| Requirements, boundaries, and architecture | architecture.md |
| Agents, instructions, models, streams, and output schemas | agents.md |
| Typed tools, authorization, errors, and idempotency | tools.md |
| Threads, working memory, recall, and context | memory.md |
| Typed workflows, control flow, snapshots, and recovery | workflows.md |
| Tool approval, suspension, and resume | human-in-the-loop.md |
| Chunking, embeddings, vector search, and evidence | retrieval.md |
| Input/output processors and security controls | guardrails.md |
| Supervisors, subagents, and delegation | multi-agent.md |
| MCP clients, servers, and external tool trust | mcp.md |
| Deterministic checks, scorers, and test strategy | evaluation.md |
| Tracing, redaction, metrics, and incident evidence | observability.md |
| Build, health, storage, shutdown, and rollout | deployment.md |
| Version assumptions and official documentation | sources.md |
Agent-Building Principles
| Principle | Implementation rule |
|---|---|
| Clear objective | Define the user outcome, accepted inputs, completion criteria, and explicit non-goals. |
| Appropriate autonomy | Use a function for fixed logic, a workflow for known stages, and an agent for dynamic decisions. |
| Grounded context | Supply only relevant instructions, state, retrieved evidence, and tool results; label external data untrusted. |
| Typed action | Validate every tool input/output and return bounded, useful results or actionable errors. |
| Deterministic control | Enforce permissions, limits, state transitions, idempotency, and final side effects outside the model. |
| Purposeful memory | Separate conversation state, user preferences, shared knowledge, and durable execution snapshots. |
| Bounded iteration | Cap steps, loops, concurrency, tokens, latency, and retries; support cancellation. |
| Human oversight | Require review for consequential or irreversible actions and bind approval to exact arguments. |
| Observable behavior | Trace inputs safely, model calls, tools, retrieval, decisions, failures, suspension, and cost. |
| Evaluated quality | Test deterministic contracts and adversarial cases before model-graded quality and live sampling. |
| Operable lifecycle | Persist required state, drain work, redact secrets, roll out gradually, and rehearse recovery. |
What ships with it
21 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- eval.yaml 519 B
- graders/check.py 15 KB runs code
- instructions/build-support-agent.md 3.3 KB
- references/agents.md 5.8 KB
- references/architecture.md 7.0 KB
- references/deployment.md 5.8 KB
- references/evaluation.md 6.9 KB
- references/guardrails.md 6.4 KB
- references/human-in-the-loop.md 6.5 KB
- references/mcp.md 5.1 KB
- references/memory.md 6.0 KB
- references/multi-agent.md 5.6 KB
- references/observability.md 6.6 KB
- references/retrieval.md 7.3 KB
- references/sources.md 5.5 KB
- references/tools.md 6.8 KB
- references/workflows.md 6.9 KB
- rubrics/quality.md 2.0 KB
- solutions/reference-support-agent/design.md 3.7 KB
- solutions/reference-support-agent/src/mastra/index.ts 8.4 KB runs code
- tests/test_grader.py 5.4 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 21d ago First seen · 234 lines · 84 tokens per session scan A bac82b4aa21b
mastra is a skill published in the GitHub repository svngoku/coding-agents-skills (12 stars, last pushed 21d ago), licensed MIT. It adds 84 tokens to every session and 2,760 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-08.
mastra compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mastrasvngoku/coding-agents-skills | Skill | 12 | 21d ago | MIT | A | 84 | Claude Code, Codex |
| genai-hub-orchestrationSAP/ai-skills-library | Skill | 162 | 10d ago | Apache-2.0 | A | 169 | Claude Code |
| ai-engineeringmthines/agent-skills | Skill | 22 | yesterday | MIT | A | 67 | Claude Code |
| ai-llm-skills-guidegmh5225/awesome-skills | Skill | 101 | 1mo ago | MIT | A | 35 | Claude Code |
| ai-productlingxling/awesome-skills-cn | Skill | 341 | 1mo ago | MIT | A | 28 | Claude Code |
| ai-teachermingchen666/Reviva | Skill | 347 | 7d ago | none | A | 37 | Claude Code, Codex |
| flockion_engineering_aierror505/Flockion_AI_Engineering | Skill | 5 | 1mo ago | MIT | A | 187 | Claude Code |