mermaid-diagrams

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

A skill for creating, editing, and fixing Mermaid diagrams, which are text-based diagrams for software engineering and technical documentation. It supports flowcharts, sequence diagrams, class diagrams, database diagrams, state diagrams, and architecture diagrams.

In plain words
What is it for?
Use it when you explicitly need a Mermaid diagram for an algorithm, API flow, system architecture, data model, or Git workflow.
Why use it?
It gives coding-agent work a defined way to represent software concepts visually in documentation.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the mermaid-diagrams plugin — 1 skill shipped together

Good fit Use it when you explicitly need a Mermaid diagram for an algorithm, API flow, system architecture, data model, or Git workflow.

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

Made for: Claude Code.

Or install mermaid-diagrams, the plugin that ships this one along with the rest of its 1 skill.

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/bengous/claude-code-plugins/mermaid-diagrams/github.svg)](https://agentmods.dev/skills/bengous/claude-code-plugins/mermaid-diagrams)
Your own site
<a href="https://agentmods.dev/skills/bengous/claude-code-plugins/mermaid-diagrams"><img src="https://agentmods.dev/badge/skills/bengous/claude-code-plugins/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/bengous/claude-code-plugins/mermaid-diagrams"><img src="https://agentmods.dev/badge/skills/bengous/claude-code-plugins/mermaid-diagrams.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,287 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.00033 $0.01287
Opus 5.5 $0.00013 $0.00515
Sonnet 5.5 $0.00007 $0.00257
Haiku 4.5 $0.00003 $0.00129

Measured 7d ago against content hash f7e47162180a, 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 7d 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.

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

How it starts

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

Mermaid Diagrams Skill

This skill helps create clean, well-organized Mermaid diagrams for software engineering and architecture visualization.

<when_to_use> Use this skill specifically for creating, editing, fixing, or improving Mermaid diagrams:

  • Create new Mermaid diagrams
  • Edit existing Mermaid diagrams
  • Fix broken or incorrect diagram syntax
  • Improve diagram organization or readability
  • Visualize software architecture or technical concepts in Mermaid, when the user asked for Mermaid

For simply reading or interpreting existing diagrams, proceed directly without this skill. </when_to_use>

<diagram_types>

This skill supports all major Mermaid diagram types for software engineering:

  1. Flowcharts - Process flows, algorithms, decision trees
  2. Sequence Diagrams - API interactions, service communication, workflows
  3. Class Diagrams - Object models, domain design, relationships
  4. ER Diagrams - Database schemas, data models
  5. State Diagrams - State machines, workflow states, lifecycle
  6. C4 Diagrams - Software architecture (context, container, component)
  7. Git Graphs - Branching strategies, version control workflows </diagram_types>
  • references/syntax-flowchart.md
  • references/syntax-sequence.md
  • references/syntax-class.md
  • references/syntax-er.md
  • references/syntax-state.md
  • references/syntax-c4.md
  • references/syntax-git.md

Read on demand:

  • references/styling.md - themes and colors, when the user asks for a look or the diagram needs emphasized elements
  • references/patterns.md - architecture patterns (microservices, hexagonal, CQRS, etc.), when the diagram shows a system design

Pre-built, well-commented templates are available in assets/templates/:

  • flowchart-template.md - Organized flowchart with sections
  • sequence-template.md - Sequence diagram with best practices
  • class-template.md - Domain model class diagram
  • er-template.md - Database schema ER diagram

Use templates when:

  • Starting a new complex diagram
  • User wants a well-organized structure
  • Creating diagrams that will grow over time

<best_practices>

Read the full file on GitHub · 202 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. 7d ago Changed f7e47162180a
  2. 1mo ago Changed · -17 lines 6e81feeaa884
  3. 2mo ago Changed · -136 lines 1f40938d5ff0
  4. 2mo ago First seen · 355 lines · 33 tokens per session scan A aa9d4b39b902

Subscribe to this mod's changes

mermaid-diagrams is a skill published in the GitHub repository bengous/claude-code-plugins (6 stars, last pushed today), licensed MIT. It adds 33 tokens to every session and 1,287 once invoked, about $0.0001 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-03.

Related

mermaid-diagrams compared with skills from other repositories

mermaid-diagrams next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mermaid-diagramsbengous/claude-code-pluginsSkill6todayMITA33Claude Code
ve-terminal-mononexu-io/open-designSkill110ktodayApache-2.0A45Claude Code, Codex
frontend-slidesnexu-io/open-designSkill110ktodayApache-2.0A45Claude Code, Codex
html-ppt-hermes-cyber-terminalnexu-io/open-designSkill110ktodayApache-2.0A53Claude Code, Codex
html-ppt-obsidian-claude-gradientnexu-io/open-designSkill110ktodayApache-2.0A53Claude Code, Codex
delightfengshao1227/ccg-workflowSkill6.0k12d agoMITA56Claude Code
animatefengshao1227/ccg-workflowSkill6.0k12d agoMITA53Claude Code