diagrams:mermaid

diagrams:mermaid is a skill for Claude Code from fprochazka/claude-code-plugins. It costs 104 tokens per session (1,971 once invoked), scanned A, original, MIT.

A guide for creating Mermaid diagrams, which are text files that render as flowcharts and other diagrams in tools such as GitHub, GitLab, Linear, and IDEs. It also explains when a diagram would be less clear than text or a table.

In plain words
What is it for?
Use it to choose a diagram type, write a standalone .mmd file, keep the diagram focused, and check how it looks in light and dark backgrounds.
Why use it?
It helps avoid diagrams that are too large, unclear, or unsupported by the target renderer. It provides a render-and-review step to catch syntax and visual problems before sharing the diagram.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the diagrams plugin — 2 skills shipped together

Good fit Use it to choose a diagram type, write a standalone .mmd file, keep the diagram focused, and check how it looks in light and dark backgrounds.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fprochazka/claude-code-plugins/mermaid
Install

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.

Any agent
npx skills add fprochazka/claude-code-plugins --skill mermaid
Clone the repo
git clone --depth 1 https://github.com/fprochazka/claude-code-plugins

Made for: Claude Code.

Or install diagrams, the plugin that ships this one along with the rest of its 2 skills.

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 diagrams:mermaid

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/fprochazka/claude-code-plugins/mermaid"><img src="https://agentmods.dev/badge/skills/fprochazka/claude-code-plugins/mermaid.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,971 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.
Origin original 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.00104 $0.01971
Opus 5.5 $0.00042 $0.00788
Sonnet 5.5 $0.00021 $0.00394
Haiku 4.5 $0.00010 $0.00197

Measured 16d ago against content hash c316a4b37cb0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

diagrams:mermaid 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 16d 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.

plugins/diagrams/skills/mermaid/SKILL.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

mermaid

A diagram in a plan, an MR description or a review comment is a sketch: selective, carrying one idea, thrown away when the work lands. It is not a specification of the system, and completeness is not the goal — "comprehensiveness is the enemy of comprehensibility" (Fowler).

The unit of work is a standalone .mmd file in the scratchpad, one diagram per file, with no code fence around it. Write it, validate it there, then hand the file content to whatever document needs it inside a mermaid code fence. Inlining is the calling command's last step, not this skill's.

1. Whether to draw at all

Write text instead when the relationship is linear (a numbered list), there are fewer than about three nodes (a sentence), the content is a payload or a data structure (a code fence), the reader needs exact values such as timeouts or error codes (a table), or you cannot say in one sentence what the reader should conclude. A picture with no conclusion is decoration.

Draw when a flow crosses three or more components, an entity has a lifecycle with guarded transitions, the point is ordering — a race, a retry, a handshake — or a structure changes and the before/after difference is the finding.

2. Which type

  • flowchart — the path a request takes through components, a decision with branches. The default when nothing more specific fits.
  • sequenceDiagram — who calls whom in what order, two to six participants. The only type that shows time.
  • stateDiagram-v2 — one entity's lifecycle: order status, job state, a saga. Not a process with no return.
  • erDiagram — tables and cardinality for a schema change. Not an object model.

Secondary, when they clearly fit: classDiagram, gitGraph, timeline. Every type with -beta in its keyword, every C4* type and mindmap are opt-in only — use one when the user asks for it by name. references/diagram-types.md has the per-type "use when / do not use when / pitfalls" table, including the reasons the beta types are excluded.

Read the full file on GitHub · 78 lines

Files

What ships with it

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

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. 16d ago Changed · +3 tokens per session c316a4b37cb0
  2. 2mo ago First seen · 78 lines · 101 tokens per session scan A ffe25b990ea4

Subscribe to this mod's changes

diagrams:mermaid is a skill published in the GitHub repository fprochazka/claude-code-plugins (15 stars, last pushed 9d ago), licensed MIT. It adds 104 tokens to every session and 1,971 once invoked, about $0.0004 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-09-12.

Related

diagrams:mermaid compared with skills from other repositories

diagrams:mermaid next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagrams:mermaidfprochazka/claude-code-pluginsSkill159d agoMITA104Claude Code
webgl-holographic-foilnexu-io/open-designSkill110ktodayApache-2.0A41Claude Code, Codex
html-ppt-hermes-cyber-terminalnexu-io/open-designSkill110ktodayApache-2.0A53Claude Code, Codex
html-ppt-taste-brutalistnexu-io/open-designSkill110ktodayApache-2.0A78Claude Code, Codex
visual-ralphYeachan-Heo/oh-my-codexSkill34ktodayMITA52Codex
glance-canonical-layoutsandroid/skillsSkill11k7d agoApache-2.0A56Claude Code
accessibilitymicrosoft/hve-coreSkill1.7ktodayMITA47Claude Code