mastra: Skill for Claude Code

.claude/skills/docs-diagrams/SKILL.md

docs-diagrams is a skill for Claude Code from mastra-ai/mastra. It costs 98 tokens per session (959 once invoked), scanned A, original, no licence file.

A documentation workflow for turning diagram images into Mermaid diagrams, and for creating new diagrams in Mermaid. Mermaid is a text format that produces diagrams from written descriptions.

In plain words
What is it for?
Converting Excalidraw, PNG, JPG, or SVG diagrams, creating diagrams for Mastra documentation, and checking existing documentation images.
Why use it?
It helps replace image files that can render poorly or look different between light and dark display modes.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is mastra-ai/mastra's own configuration. It tells Claude Code how to work on mastra itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mastra configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mastra-ai/mastra. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/mastra-ai/mastra/main/.claude/skills/docs-diagrams/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/mastra-ai/mastra

Made for: Claude Code.

Wrote 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.

agentmods badge for docs-diagrams

README.md
[![agentmods](https://agentmods.dev/badge/skills/mastra-ai/mastra/docs-diagrams/github.svg)](https://agentmods.dev/skills/mastra-ai/mastra/docs-diagrams)
Your own site
<a href="https://agentmods.dev/skills/mastra-ai/mastra/docs-diagrams"><img src="https://agentmods.dev/badge/skills/mastra-ai/mastra/docs-diagrams/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.

agentmods 80×15 button for docs-diagrams

Your own site · 80×15
<a href="https://agentmods.dev/skills/mastra-ai/mastra/docs-diagrams"><img src="https://agentmods.dev/badge/skills/mastra-ai/mastra/docs-diagrams.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 959 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin unknown No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00098 $0.00959
Opus 5 $0.00049 $0.00479
Sonnet 5 $0.00020 $0.00192
Haiku 4.5 $0.00010 $0.00096

Measured 12d ago against content hash fdb993069c9f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

docs-diagrams 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 12d 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.

.claude/skills/docs-diagrams/SKILL.md · 97 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

Changes

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.

  1. 12d ago First seen · 97 lines · 98 tokens per session scan A fdb993069c9f

Subscribe to this mod's changes

docs-diagrams is a skill published in the GitHub repository mastra-ai/mastra (27,896 stars, last pushed yesterday), with no licence file. It adds 98 tokens to every session and 959 once invoked, about $0.0005 per session on Opus 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-08-30.

Related

Other skills, from other repositories

playwright-cli

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

VoltAgent/voltagent · 52 tokens

Workspace Data Analyst

Analyze CSV files in the workspace and summarize insights.

VoltAgent/voltagent · 14 tokens

openkb-html-critic

Use to review a generated HTML deck or single-page artifact for visual quality and structural correctness. Especially good at catching CSS specificity bugs where slide-modifier classes (.divider, .center, .q, .flow etc.) accidentally override the base .slide{display:none} and cause one slide to stack on top of every…

VectifyAI/OpenKB · 132 tokens

cocosketch

Generate visual draw.io diagrams from CocoPlus artifacts via a deterministic seven-step pipeline.

Snowflake-Labs/cocoplus · 20 tokens

brand

Create and maintain an org's brand as a folder the whole platform reads: colors, type, voice, logo and a deck theme. Use this whenever someone asks to "set up our brand", "make a brand kit", "apply our colors/fonts", or before producing branded artifacts (decks, pages, emails). One brand = one folder; everything that…

decocms/studio · 0 tokens

decocms-ui

Build or style React UI with the decocms product design system (@decocms/ui). Use when creating interfaces, pages, or components in a project that should look like decocms products, when the user mentions "design system", "@decocms/ui", "decocms style", or asks to make UI consistent with Studio. Covers installation…

decocms/studio · 91 tokens