mermaid-diagram

mermaid-diagram is a skill for Claude Code from georgekhananaev/claude-skills-vault. It costs 109 tokens per session (5,207 once invoked), scanned A, original, MIT.

A tool for creating Mermaid diagrams, which are text-based descriptions of flowcharts, timelines, database schemas, and other visual layouts. It produces editable Mermaid source files and rendered PNG images.

In plain words
What is it for?
It helps create architecture overviews, API flows, database relationship diagrams, state machines, project plans, mind maps, and other diagrams.
Why use it?
It removes the need to draw common technical diagrams by hand or use a separate visual editor.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit It helps create architecture overviews, API flows, database relationship diagrams, state machines, project plans, mind maps, and other diagrams.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/georgekhananaev/claude-skills-vault/mermaid-diagram"><img src="https://agentmods.dev/badge/skills/georgekhananaev/claude-skills-vault/mermaid-diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,207 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 warn 7 Sept 2026
SkillSpector: 8 findings, 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 32
    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]
  • medium MCP Rug Pull · line 40
    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]
  • medium MCP Rug Pull · line 608
    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]
  • medium MCP Rug Pull · line 611
    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]
  • medium MCP Rug Pull · line 614
    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]
  • medium MCP Rug Pull · line 617
    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]
  • medium MCP Rug Pull · line 620
    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]
  • medium MCP Rug Pull · line 34
    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.00109 $0.05207
Opus 5 $0.00055 $0.02603
Sonnet 5 $0.00022 $0.01041
Haiku 4.5 $0.00011 $0.00521

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

Security

Grade A, and why

mermaid-diagram 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 9d 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/mermaid-diagram/SKILL.md · 648 lines

How it starts

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

Mermaid Diagram Skill

Generate well-structured, colorful diagrams using Mermaid syntax. Produces both editable source files and rendered PNGs.

When to Use

Activate when the user mentions any of:

  • "diagram", "flowchart", "chart", "schema", "visualization"
  • "architecture", "system design", "overview"
  • "ER diagram", "database schema", "entity relationship"
  • "sequence diagram", "API flow", "request flow"
  • "state machine", "state diagram", "lifecycle"
  • "class diagram", "UML", "inheritance"
  • "gantt", "timeline", "project plan", "roadmap"
  • "pie chart", "breakdown", "distribution"
  • "mindmap", "brainstorm map", "concept map"
  • "git flow", "branching strategy", "git graph"
  • "C4 diagram", "system context", "container diagram"
  • "kanban", "board", "workflow board"
  • "org chart", "hierarchy"

Prerequisites

Mermaid CLI renders diagrams to PNG/SVG:

npx --yes @mermaid-js/mermaid-cli -i input.mmd -o output.png -b white --scale 2

Auto-installs via npx on first use. No setup required.

Workflow

  1. Determine the best diagram type for the user's request (see Decision Guide below)
  2. Create <name>.mmd file with Mermaid syntax
  3. Render: npx --yes @mermaid-js/mermaid-cli -i <name>.mmd -o <name>.png -b white --scale 2
  4. Show the PNG to the user via Read tool
  5. If user wants a markdown doc, also create .md with embedded ```mermaid blocks

Always produce both: <name>.mmd (editable source) + <name>.png (rendered image)

Diagram Type Decision Guide

User Wants Diagram Type Syntax Keyword
Process flow, decision tree, algorithm Flowchart flowchart TD or flowchart LR
API calls, request/response, message passing Sequence sequenceDiagram
Database tables and relationships ER Diagram erDiagram
Object-oriented design, interfaces Class Diagram classDiagram
Lifecycle, state transitions State Diagram stateDiagram-v2
Data distribution, percentages Pie Chart pie title ...
Project schedule, milestones Gantt Chart gantt
Idea exploration, topic breakdown Mindmap mindmap
Historical events, chronological Timeline timeline
Git branching, merge strategy Git Graph gitgraph
System architecture (C4 model) C4 Diagram C4Context / C4Container / C4Component / C4Dynamic / C4Deployment
Task board, workflow stages Kanban kanban
Component layout, block arrangement Block Diagram block
Two-axis comparison, priority matrix Quadrant Chart quadrantChart
Data flow volumes, proportional Sankey sankey
Data plots, bar/line charts XY Chart xychart
User experience steps, satisfaction User Journey journey
Compliance, traceability Requirement requirementDiagram
Network topology, cloud infra Architecture architecture-beta
Org chart, hierarchy Flowchart TD flowchart TD with subgraphs
Radar/spider comparison Radar radar-beta

Read the full file on GitHub · 648 lines

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. 9d ago First seen · 648 lines · 109 tokens per session scan A 6467ecd8fcba

Subscribe to this mod's changes

mermaid-diagram is a skill published in the GitHub repository georgekhananaev/claude-skills-vault (28 stars, last pushed 1mo ago), licensed MIT. It adds 109 tokens to every session and 5,207 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-09-03.

Related

Other skills, from other repositories

design-system-synthesizer

Use when the user says 'build a design system for my site', 'extract design tokens', 'capture my brand', or 'build my style guide', or after a rebrand. Reads representative pages, theme files, and media to extract logo, colors, typography, spacing, and components, then writes a visible style-guide page.

respira-press/agent-skills-wordpress · 74 tokens

art-direction

Use on any page build, redesign, or 'make it look better' request on a site that has (or needs) a saved Art Direction. Loads the direction before the first element is written, plans tokens in two passes against the direction's donts and the known AI-default aesthetics, builds with tokens preserved, checks the result…

respira-press/agent-skills-wordpress · 96 tokens

page-template-library

Use when the user says 'save this as a template', 'create a playbook from this page', 'capture this layout', or has hand-built the same page type three times. Captures canonical page patterns as reusable playbooks that later page generation can spawn from in seconds.

respira-press/agent-skills-wordpress · 60 tokens

figma-to-elementor

Use when the user says 'figma to elementor', 'build this figma design in elementor', or hands over a Figma frame to rebuild in WordPress. Maps the Figma node tree to Elementor widgets and containers and writes clean Elementor JSON into a draft duplicate, so nothing live is touched.

respira-press/agent-skills-wordpress · 68 tokens

figma-to-bricks

Use when the user says 'figma to bricks', 'build this figma design in bricks', or hands over a Figma frame to rebuild on a Bricks Builder site. Maps the Figma node tree to native Bricks elements with BEM global classes, imports the frame's palette into the Bricks design system, and writes to a draft, so nothing live…

respira-press/agent-skills-wordpress · 83 tokens

figma-to-divi

Use when the user says 'figma to divi', 'build this figma design in divi', or hands over a Figma frame to rebuild in WordPress on a Divi site. Maps the Figma node tree to native Divi sections, rows, columns and modules (Divi 5 blocks or Divi 4 shortcodes, auto-detected) and writes to a draft, so nothing live is…

respira-press/agent-skills-wordpress · 93 tokens