mermaid-diagrams

mermaid-diagrams is a skill for Claude Code from bengous/claude-code-plugins. It costs 33 tokens per session (1,402 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,402 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.01402
Opus 5.5 $0.00013 $0.00561
Sonnet 5.5 $0.00007 $0.00280
Haiku 4.5 $0.00003 $0.00140

Measured 24d ago against content hash 1f40938d5ff0, 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 24d 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 · 219 lines

How it starts

The opening of the file, as written. The whole thing — 219 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

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 · 219 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. 24d ago Changed · -136 lines 1f40938d5ff0
  2. 1mo 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 (5 stars, last pushed today), licensed MIT. It adds 33 tokens to every session and 1,402 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

Other skills, from other repositories

ve-terminal-mono

OpenDesign from the CLI: driving the full design workflow with the od command — scripted, composable, agent-ready. Built as a decision-grade AI literacy deck for developers, power users.

nexu-io/open-design · 45 tokens

frontend-slides

OpenDesign as a worked AI-workflow example: how local agents read your files and design on your desktop — concretely. Built as a decision-grade AI literacy deck for teams new to AI, leadership.

nexu-io/open-design · 45 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-obsidian-claude-gradient

OpenDesign's enterprise AI-adoption brief: local-first agents at work, the risk controls, the ROI, and the rollout plan. Built as a decision-grade AI literacy deck for leadership, IT, security.

nexu-io/open-design · 53 tokens

delight

Add moments of joy, personality, and unexpected touches that make interfaces memorable and enjoyable to use. Elevates functional to delightful. Use when the user asks to add polish, personality, animations, micro-interactions, delight, or make an interface feel fun or memorable.

fengshao1227/ccg-workflow · 56 tokens

animate

Review a feature and enhance it with purposeful animations, micro-interactions, and motion effects that improve usability and delight. Use when the user mentions adding animation, transitions, micro-interactions, motion design, hover effects, or making the UI feel more alive.

fengshao1227/ccg-workflow · 53 tokens