mermaid-diagrams

mermaid-diagrams is a skill for Claude Code, Codex from ccheney/robust-skills. It costs 44 tokens per session (710 once invoked), scanned A, original, MIT.

A guide to writing Mermaid diagrams in Markdown, a text format supported by tools such as GitHub, GitLab, VS Code, Obsidian, and Notion. It covers diagrams for processes, systems, data, timelines, and relationships.

In plain words
What is it for?
Use it to create flowcharts, sequence diagrams, database relationship diagrams, architecture diagrams, state machines, timelines, Git graphs, and other supported charts.
Why use it?
It helps turn complicated explanations into diagrams that can be stored and reviewed as text alongside code or documentation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create flowcharts, sequence diagrams, database relationship diagrams, architecture diagrams, state machines, timelines, Git graphs, and other supported charts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ccheney/robust-skills/mermaid-diagrams
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 ccheney/robust-skills --skill mermaid-diagrams
Clone the repo
git clone --depth 1 https://github.com/ccheney/robust-skills

Made for: Claude Code, Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ccheney/robust-skills/mermaid-diagrams"><img src="https://agentmods.dev/badge/skills/ccheney/robust-skills/mermaid-diagrams.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 710 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
  • Socket pass 16 Sept 2026
  • Snyk pass 16 Sept 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 196
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00044 $0.00710
Opus 5.5 $0.00018 $0.00284
Sonnet 5.5 $0.00009 $0.00142
Haiku 4.5 $0.00004 $0.00071

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

Security

Grade A, and why

mermaid-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 2mo 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.

skills/mermaid-diagrams/SKILL.md · 51 lines

How it starts

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

Mermaid Diagrams

Turn the supplied process, code, schema, or relationships into the requested Mermaid diagram. The user's explicit instructions take precedence over this skill's guidelines, including their choice of output format.

Choose the representation

Establish the facts to show and the destination renderer. If the request leaves the format open and a text-based system/process diagram fits, Mermaid is a reasonable choice. Preserve an explicitly requested drawing tool or artifact format.

Question Diagram
What happens next or which path is taken? flowchart
Who calls whom, in what order? sequenceDiagram
What tables and cardinalities exist? erDiagram
What states and transitions exist? stateDiagram-v2
How are types or services related? classDiagram or flowchart with subgraphs
What is scheduled or measured? A matching planning/data type from the references

Use supplied evidence for nodes, edges, cardinalities, dates, and values. Mark conceptual assumptions; ask for missing facts that determine the diagram rather than inventing a system.

Produce a renderable result

  • Return a fenced mermaid block, or the requested .mmd/rendered artifact. Use one diagram declaration per block.
  • Prefer stable syntax supported by the destination. Examples were checked against Mermaid 11.16; a host can bundle an older version.
  • Give nodes stable IDs distinct from display labels and subgraph IDs. Quote labels with punctuation; avoid reserved end IDs and use %% comments on their own lines.
  • Keep ER attributes one per line and alias sequence participants whose names contain spaces.
  • Split diagrams when readability suffers, not at a fixed node count.

Validate nontrivial or repaired syntax with the project's renderer or an available Mermaid CLI. Inspect the rendered result when producing an artifact; if rendering is unavailable, state that limitation. A simple syntax answer does not require installing a new toolchain.

Read the full file on GitHub · 51 lines

Files

What ships with it

8 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. 2mo ago Changed · -169 lines · -61 tokens per session e0b739f38227
  2. 3mo ago First seen · 220 lines · 105 tokens per session scan A 33d0d6db7640

Subscribe to this mod's changes

mermaid-diagrams is a skill published in the GitHub repository ccheney/robust-skills (62 stars, last pushed 2mo ago), licensed MIT. It adds 44 tokens to every session and 710 once invoked, about $0.0002 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-08-30.

Related

mermaid-diagrams compared with skills from other repositories

mermaid-diagrams next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mermaid-diagramsccheney/robust-skillsSkill622mo agoMITA44Claude Code, Codex
principle-product-designlugassawan/swe-workbenchSkill32d agoMITA81Claude Code
principle-accessibilitylugassawan/swe-workbenchSkill32d agoMITA89Claude Code
principle-design-patternslugassawan/swe-workbenchSkill32d agoMITA44Claude Code
frontend-designanthropics/claude-plugins-officialSkill49ktodayApache-2.0A40Claude Code
display-glasses-with-jetpack-compose-glimmerandroid/skillsSkill11k2d agoApache-2.0A112Claude Code
glance-canonical-layoutsandroid/skillsSkill11k2d agoApache-2.0A56Claude Code