Skip to content
Development
Skill

/mastra-docs

Documentation guidelines for Mastra. Use this skill when creating, editing, moving, deleting, or reviewing Mastra documentation, sidebars, redirects, or docs components.

From plugin
mastra
29k33 skills14 commands

Claude Code

$ npx -y skills add mastra-ai/mastra --skill mastra-docs --agent claude-code

SKILL.md

mastra-docs.SKILL.md
name: mastra-docs
description: Documentation guidelines for Mastra. Use this skill when creating, editing, moving, deleting, or reviewing Mastra documentation, sidebars, redirects, or docs components.

Mastra documentation guidelines

Follow the most specific `AGENTS.md` and use these references:

1. `references/STYLEGUIDE.md`: ISO 24495-1 plain-language principles, accuracy, links, code, and accessibility. 2. `references/INFORMATION_ARCHITECTURE.md`: Content families, canonical ownership, sidebars, and routes. 3. Choose the page guide:

  • `references/DOC.md`: Pages under `/docs`.
  • `references/GUIDE_INTEGRATION.md`: Pages under `/integrations`.
  • `references/REFERENCE.md`: Pages under `/reference`.

4. `references/COMPONENTS.md`: Shared MDX components and llms-txt markup. 5. `references/DIAGRAM.md`: Mermaid diagram shapes, colors, layout, labels, and accessibility. 6. `references/AUTHORING_WORKFLOW.md`: Editing, moves, deletions, redirects, and verification. 7. `references/CHECKS.md`: The `pnpm check` command, rule IDs, JSON output, and inline `lint` comments for disabling rules.

To replace an existing diagram image with Mermaid, use the `docs-diagrams` skill.

Page templates

When creating a page, pick the template that matches the reader's question:

| Reader question | Template | Typical location | | -------------------------------------------------- | ---------------------------- | ---------------------------------------------- | | "What is this area, and which option fits?" | `templates/overview.md` | `/docs/<category>/overview` | | "What is this capability, and how do I set it up?" | `templates/concept.md` | `/docs/<category>/<feature>` | | "How do I accomplish this specific task?" | `templates/how-to.md` | `/docs/<category>/<task>` | | "What's the fastest way to see it working?" | `templates/quickstart.md` | `## Quickstart` in an overview or concept page | | "What does this API or command accept?" | `templates/reference-api.md` | `/reference/<category>/<api-or-command>` | | "How do I use Mastra with this product?" | `templates/integration.md` | `/integrations/<category>/<product>` |

1. Copy the template's skeleton into the new `.mdx` file and replace every `$PLACEHOLDER`. 2. Compare the result with the template's example page and with neighboring pages. Where the section has an established convention, follow it. 3. Remove optional sections the page doesn't need. 4. Before finishing, run `templates/CHECKLIST.md` and the template's own self-review checklist.

Templates set the starting shape, not a fixed form. Match the reader's task and the conventions of the current section.

Read more
@mastra-ai
Ships withmastra

Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack. It includes everything you need to go from early prototypes to production-ready applications.

Stars on GitHub

Momentum

stars in total
29.3k
Star history of mastra-ai/mastra on GitHub, a chart by star-history.com

Other skills on mastra.

builder-smoke-test

builder-smoke-test

Smoke test the Agent Builder feature branch end-to-end against a hermetic project scaffolded by the skill (linked to the current…

@mastra-ai@mastra-aiInstall Skill
debugging-difficult-bugs

debugging-difficult-bu…

Use early when debugging a medium or hard bug, especially when tests alone may not reveal the real runtime failure. Trigger this…

@mastra-ai@mastra-aiInstall Skill
docs-audit

docs-audit

Autonomous, report-only documentation review for Mastra docs. Use when auditing changed docs against source, validating…

@mastra-ai@mastra-aiInstall Skill
docs-diagrams

docs-diagrams

Convert existing docs diagram images to Mermaid, and author new Mermaid diagrams for Mastra docs. Use when replacing an…

@mastra-ai@mastra-aiInstall Skill
e2e-tests-studio

e2e-tests-studio

REQUIRED when modifying any file in packages/playground-ui or packages/playground. Triggers on: React component…

@mastra-ai@mastra-aiInstall Skill
label-core-bugs

label-core-bugs

Review open mastra-ai/mastra GitHub issues, identify direct @mastra/core bugs, and apply the @mastra/core label. Use when…

@mastra-ai@mastra-aiInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about mastra-docs.

Which coding agents can use mastra-docs?
mastra-docs installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.