mermaid

mermaid is a skill for Claude Code from Kripu77/software-factory. It costs 34 tokens per session (868 once invoked), scanned A, a copy of mermaid, MIT.

A generator for Mermaid diagram code. Mermaid is a text format for drawing diagrams such as flows, timelines, database relationships, and system interactions.

In plain words
What is it for?
Use it to create flowcharts, sequence diagrams, class diagrams, state diagrams, entity-relationship diagrams, Gantt charts, mind maps, and other supported diagrams.
Why use it?
It turns a written requirement into a diagram type and syntax that can be rendered by Mermaid-compatible tools. This avoids having to learn every diagram format by hand.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the software-factory plugin — 10 skills, 9 commands shipped together

Good fit Use it to create flowcharts, sequence diagrams, class diagrams, state diagrams, entity-relationship diagrams, Gantt charts, mind maps, and other supported diagrams.

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

Made for: Claude Code.

Or install software-factory, the plugin that ships this one along with the rest of its 10 skills, 9 commands.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/kripu77/software-factory/mermaid.svg)](https://agentmods.dev/skills/kripu77/software-factory/mermaid)
Your own site
<a href="https://agentmods.dev/skills/kripu77/software-factory/mermaid"><img src="https://agentmods.dev/badge/skills/kripu77/software-factory/mermaid.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 868 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 100% copy Near-identical to another mod 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.00034 $0.00868
Opus 5 $0.00017 $0.00434
Sonnet 5 $0.00007 $0.00174
Haiku 4.5 $0.00003 $0.00087

Measured 8d ago against content hash 30ab197feb48, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

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 8d 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.

Origin

This is a copy

100% identical to mermaid — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/mermaid/SKILL.md · 81 lines

How it starts

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

Mermaid Diagram Generator

Generate high-quality Mermaid diagram code based on user requirements.

Workflow

  1. Understand Requirements: Analyze user description to determine the most suitable diagram type
  2. Read Documentation: Read the corresponding syntax reference for the diagram type
  3. Generate Code: Generate Mermaid code following the specification
  4. Apply Styling: Apply appropriate themes and style configurations

Diagram Type Reference

Select the appropriate diagram type and read the corresponding documentation:

Type Documentation Use Cases
Flowchart flowchart.md Processes, decisions, steps
Sequence Diagram sequenceDiagram.md Interactions, messaging, API calls
Class Diagram classDiagram.md Class structure, inheritance, associations
State Diagram stateDiagram.md State machines, state transitions
ER Diagram entityRelationshipDiagram.md Database design, entity relationships
Gantt Chart gantt.md Project planning, timelines
Pie Chart pie.md Proportions, distributions
Mindmap mindmap.md Hierarchical structures, knowledge graphs
Timeline timeline.md Historical events, milestones
Git Graph gitgraph.md Branches, merges, versions
Quadrant Chart quadrantChart.md Four-quadrant analysis
Requirement Diagram requirementDiagram.md Requirements traceability
C4 Diagram c4.md System architecture (C4 model)
Sankey Diagram sankey.md Flow, conversions
XY Chart xyChart.md Line charts, bar charts
Block Diagram block.md System components, modules
Packet Diagram packet.md Network protocols, data structures
Kanban kanban.md Task management, workflows
Architecture Diagram architecture.md System architecture
Radar Chart radar.md Multi-dimensional comparison
Treemap treemap.md Hierarchical data visualization
User Journey userJourney.md User experience flows
ZenUML zenuml.md Sequence diagrams (code style)

Read the full file on GitHub · 81 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. 8d ago First seen · 81 lines · 34 tokens per session scan A 30ab197feb48

Subscribe to this mod's changes

mermaid is a skill published in the GitHub repository Kripu77/software-factory (6 stars, last pushed 2d ago), licensed MIT. It adds 34 tokens to every session and 868 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to mermaid, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

brand-and-identity

Use when establishing brand foundations before any design work, when two products need to feel related, when defining voice and tone for microcopy, or when logo usage and visual identity rules need documenting.

aneja5/forge-skills · 43 tokens

design-system

Use when establishing visual foundations for a new product, when defining design tokens, when building or auditing a component library, before any UI work begins on a fresh codebase, or when the existing UI has drifted into hex codes and magic numbers.

aneja5/forge-skills · 52 tokens

accessibility

Use when building UI that ships to users, when reviewing for WCAG AA compliance, when adding keyboard navigation, when ensuring screen reader support, when auditing color contrast, or when preparing a UI surface for an EU or government customer.

aneja5/forge-skills · 49 tokens

component-library

Use when building a component catalog, when standardizing component props and states across a product, when two engineers are about to build competing versions of the same component, or before a major UI build sprint.

aneja5/forge-skills · 43 tokens

data-visualization

Use when building dashboards, charts, or data displays, when defining chart type selection rules, when standardizing data color encoding, or when charts look inconsistent across the product.

aneja5/forge-skills · 39 tokens

interaction-patterns

Use when deciding how users interact with UI elements — expand vs navigate, modal vs bottom sheet, swipe gestures, tap targets, optimistic UI, loading patterns, or undo for destructive actions. Use before features get built so every screen inherits the same rules.

aneja5/forge-skills · 54 tokens