mastra-docs
Documentation guidelines for Mastra. Use this skill when creating, editing, moving, deleting, or reviewing Mastra documentation, sidebars, redirects, or docs components.
How do I install this agent skill?
npx skills add https://github.com/mastra-ai/mastra --skill mastra-docsIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill provides a comprehensive set of documentation guidelines, templates, and maintenance workflows for the Mastra project. It outlines how an AI agent should assist in creating, editing, and verifying documentation using standard project tools and local scripts. No security risks were identified.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
1 file scanned · No issues
- ZeroLeakspass
Score: 93/100 · 2 sections analyzed
What does this agent skill do?
Mastra documentation guidelines
Follow the most specific AGENTS.md and use these references:
references/STYLEGUIDE.md: ISO 24495-1 plain-language principles, accuracy, links, code, and accessibility.references/INFORMATION_ARCHITECTURE.md: Content families, canonical ownership, sidebars, and routes.- Choose the page guide:
references/DOC.md: Pages under/docs.references/GUIDE_INTEGRATION.md: Pages under/integrations.references/REFERENCE.md: Pages under/reference.
references/COMPONENTS.md: Shared MDX components and llms-txt markup.references/DIAGRAM.md: Mermaid diagram shapes, colors, layout, labels, and accessibility.references/AUTHORING_WORKFLOW.md: Editing, moves, deletions, redirects, and verification.references/CHECKS.md: Thepnpm checkcommand, rule IDs, JSON output, and inlinelintcomments 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> |
- Copy the template's skeleton into the new
.mdxfile and replace every$PLACEHOLDER. - Compare the result with the template's example page and with neighboring pages. Where the section has an established convention, follow it.
- Remove optional sections the page doesn't need.
- Before finishing, run
templates/CHECKLIST.mdand 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.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/mastra-ai/mastra/mastra-docs">View mastra-docs on skillZs</a>