Agent skill

Mastra Docs

by mastra-ai in mastra-ai/mastra

Documentation guidelines for Mastra. An agent skill from mastra-ai/mastra.

Custom licenceAuto-check passed

Install Mastra Docs

skills CLI
$ npx skills add mastra-ai/mastra --skill mastra-docs -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mastra-ai/mastra mastra-docs --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mastra-ai/mastra.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/mastra-docs .claude/skills/mastra-docs && rm -rf skills-src

Use ~/.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/

Facts

Skill name
mastra-docs
GitHub stars
29k
Token cost
~297 tokens
SKILL.md length
106 words
Files
9 (incl. references)
Skills in repo
44
Repo updated
First seen
Licence
Custom licence

At a glance

Documentation guidelines for Mastra. An agent skill from mastra-ai/mastra.

  • Works in 6 steps: references/STYLEGUIDE.md: Global… → references/INFORMATION_ARCHITECTURE.md:… → Choose the page guide → …
  • Reviewing Mastra documentation
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Docs components

What it does

Mastra Docs is an agent skill from mastra-ai/mastra. Documentation guidelines for Mastra. Use this skill when creating, editing, moving, deleting, or reviewing Mastra documentation, sidebars, redirects, or docs components.

Its SKILL.md is about 300 tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including reference files (for example `references/AUTHORING_WORKFLOW.md`, `references/COMPONENTS.md` and `references/DIAGRAM.md`).

It works with Mastra. The repository describes itself as: Mastra is the modern TypeScript framework for AI-powered applications and agents.

When your agent uses it

  • Reviewing Mastra documentation
  • Docs components

Example prompts

  • “/mastra-docs”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. references/STYLEGUIDE.md: Global writing, accuracy, links, code, and accessibility rules.
  2. references/INFORMATION_ARCHITECTURE.md: Content families, canonical ownership, sidebars, and routes.
  3. Choose the page guide
  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.

What it can do on your machine

Read from SKILL.md and the folder at commit b98829a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Mastra Docs loads about 297 tokens when it runs, and up to ~9.8k if it reads all its reference files. Until then it costs about 45 tokens; SKILL.md has 106 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~45
When it runs · the whole SKILL.md, loaded when a task matches
~297
With references · SKILL.md plus every file in references/, read only if the agent opens them
~9.8k

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.

Safety

Auto-check passed

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.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 106 words (~297 tokens).

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

— opening of SKILL.md by mastra-ai, Custom licence
name
mastra-docs

Read the full SKILL.md on GitHub

Files

SKILL.md and 8 other files (references) in .claude/skills/mastra-docs of mastra-ai/mastra.

  • SKILL.md
  • references/AUTHORING_WORKFLOW.md
  • references/COMPONENTS.md
  • references/DIAGRAM.md
  • references/DOC.md
  • references/GUIDE_INTEGRATION.md
  • references/INFORMATION_ARCHITECTURE.md
  • references/REFERENCE.md
  • references/STYLEGUIDE.md

Open the folder on GitHubat commit b98829a

Compare with similar skills

Mastra Docs 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.

Mastra Docs compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mastra Docs this skillmastra-ai/mastra29k—~297Automated safety check: PassCustom licence
Pensieve Searcharkohut/pensieve1.4k—~8.2kAutomated safety check: PassApache-2.0
MastraLiorVainer/data-israel1302 repos~1.6kAutomated safety check: PassApache-2.0
Mastra File Agentsshadcn-labs/agentcn490—~2.4kAutomated safety check: PassMIT
Changelogratel-ai/ratel471—~1.6kAutomated safety check: PassMIT
Mastra Integrationhelloxz/znote104—~643Automated safety check: PassAGPL-3.0

Similar skills

  • Pensieve Search

    arkohut/pensieve

    Search the user's local Pensieve screenshot archive by text, app, or time range.

    1.4k GitHub stars~8.2k tokensUpdated 2 mo ago
    Data & AnalyticsAuto-check passed
  • Mastra

    LiorVainer/data-israel

    Comprehensive Mastra framework guide. An agent skill from LiorVainer/data-israel.

    130 GitHub starsUsed in 2 repos~1.6k tokens
    AI & LLM EngineeringAuto-check passed
  • Mastra File Agents

    shadcn-labs/agentcn

    Migrate Mastra code-based agents (agents built with new Agent(...) and registered in a Mastra({ agents }) map) to the file-based convention: one directory per agent under src/mastra/agents.

    490 GitHub stars~2.4k tokensUpdated 4 days ago
    Auto-check passed
  • Changelog

    ratel-ai/ratel

    Update per-package CHANGELOG.md files for a Ratel release. An agent skill from ratel-ai/ratel.

    471 GitHub stars~1.6k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Mastra Integration

    helloxz/znote

    Mastra AI framework integration guide for building TypeScript agents with skills, workflows, and memory

    104 GitHub stars~643 tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • Official

    Migrate TypeScript Mastra applications to Python with Pydantic AI and, only when needed, Pydantic AI Harness.

    21k GitHub stars~2k tokensUpdated today
    Agent WorkflowsAuto-check passed

More from mastra-ai/mastra

All 44 skills in this repo
  • Docs Audit

    mastra-ai/mastra

    Autonomous, report-only documentation review for Mastra docs.

    29k GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Builder Smoke Test

    mastra-ai/mastra

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

    29k GitHub stars~11k tokensUpdated today
    Auto-check: notes
  • Mastra Smoke Test

    mastra-ai/mastra

    Smoke test Mastra projects locally or deploy to staging/production.

    29k GitHub stars~4k tokensUpdated today
    Auto-check: notes
  • React Best Practices

    mastra-ai/mastra

    React performance optimization guidelines from Mastra Engineering.

    29k GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Agent Prompt Quality Bar

    mastra-ai/mastra

    Universal quality bar and final audit rubric for any agent system prompt.

    29k GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Coding Agent

    mastra-ai/mastra

    Authoring playbook for building agents that write, edit, review, or refactor code.

    29k GitHub stars~2.3k tokensUpdated today
    Auto-check passed

Works with

Questions about Mastra Docs

What does Mastra Docs do?

Documentation guidelines for Mastra. An agent skill from mastra-ai/mastra. Mastra Docs is an agent skill from mastra-ai/mastra. Documentation guidelines for Mastra.

When should I use Mastra Docs?

Mastra Docs fits situations like: reviewing Mastra documentation; docs components.

How do I install Mastra Docs in Claude Code?

Run `npx skills add mastra-ai/mastra --skill mastra-docs -a claude-code`. Or copy the skill folder (.claude/skills/mastra-docs in mastra-ai/mastra) into .claude/skills/mastra-docs in your project. Claude Code loads it when a task matches its description.

How do I install Mastra Docs in Codex?

Run `npx skills add mastra-ai/mastra --skill mastra-docs -a codex`. Or copy the skill folder (.claude/skills/mastra-docs in mastra-ai/mastra) into .agents/skills/mastra-docs in your project. Codex loads it when a task matches its description.

Can I use Mastra Docs in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mastra-ai/mastra --skill mastra-docs -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-docs, .gemini/skills/mastra-docs, .github/skills/mastra-docs and .opencode/skills/mastra-docs in your project.

What does Mastra Docs need to run?

SKILL.md names no scripts, command-line tools or credentials: Mastra Docs is instructions for the agent only.

Does Mastra Docs access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Mastra Docs safe to install?

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.

What licence does Mastra Docs use?

Mastra Docs has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Mastra Docs use?

About 297 tokens (SKILL.md is roughly 1.2k 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 9.5k tokens, read only when the agent opens those files.

What are the alternatives to Mastra Docs?

Skills that share tags, products or a category with Mastra Docs: Pensieve Search (arkohut/pensieve, 1.4k stars), Mastra (LiorVainer/data-israel, 130 stars), Mastra File Agents (shadcn-labs/agentcn, 490 stars) and Changelog (ratel-ai/ratel, 471 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mastra Docs?

mastra-ai (a GitHub organization) maintains it in mastra-ai/mastra, which has 28,698 GitHub stars. The repository holds 44 skills in this directory. The repository was last updated on October 11, 2026.

Source: mastra-ai/mastra on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.