mermaid-diagrams

mermaid-diagrams is a skill for Claude Code, Codex from ihatesea69/kiro-kit. It costs 59 tokens per session (1,498 once invoked), scanned A, original, MIT.

A text-based diagramming tool that creates architecture diagrams from Mermaid code. Mermaid is a markup language whose diagrams can render in Markdown viewers such as GitHub and GitLab.

In plain words
What is it for?
Use it for system context, component, sequence, deployment, flow, and state diagrams in specifications, READMEs, and architecture documents.
Why use it?
It makes diagrams easy to store, review, and update alongside source code and documentation. It also validates that the diagram can be rendered.

Skill for Claude CodeCodex

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

Good fit Use it for system context, component, sequence, deployment, flow, and state diagrams in specifications, READMEs, and architecture documents.

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

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/ihatesea69/kiro-kit/mermaid-diagrams/github.svg)](https://agentmods.dev/skills/ihatesea69/kiro-kit/mermaid-diagrams)
Your own site
<a href="https://agentmods.dev/skills/ihatesea69/kiro-kit/mermaid-diagrams"><img src="https://agentmods.dev/badge/skills/ihatesea69/kiro-kit/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/ihatesea69/kiro-kit/mermaid-diagrams"><img src="https://agentmods.dev/badge/skills/ihatesea69/kiro-kit/mermaid-diagrams.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,498 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: 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 23
    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.00059 $0.01498
Opus 5.5 $0.00024 $0.00599
Sonnet 5.5 $0.00012 $0.00300
Haiku 4.5 $0.00006 $0.00150

Measured 2mo ago against content hash be6b5c49fb55, 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.

presets/sa/skills/mermaid-diagrams/SKILL.md · 170 lines

How it starts

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

Mermaid Diagrams

Text-first diagramming for architecture documents, specs, and READMEs. Mermaid renders natively in GitHub, GitLab, and most Markdown viewers; sources live in the repo and diff cleanly.

Mermaid vs draw.io (see also the diagramming-conventions steering file): use Mermaid for logical views (C4, sequence, state, flows) embedded in Markdown; use the drawio-aws/drawio-azure/drawio-gcp skills when the audience expects official cloud provider icons or a standalone .drawio artifact.

Validation

Every diagram must compile before it ships:

npx -y @mermaid-js/mermaid-cli -i diagram.mmd -o /tmp/diagram.svg

Exit code 0 = valid. For diagrams embedded in Markdown, extract the fenced block to a temp .mmd file first. Render PNG for decks/docs with -o out.png -s 3.

C4 Model (levels 1–3)

Mermaid has first-class C4 syntax. Keep one level per diagram (see the c4-model steering file for when to use each level).

Level 1 — System Context

C4Context
  title System Context — Order Platform
  Person(customer, "Customer", "Places orders via web/mobile")
  System(orders, "Order Platform", "Accepts, prices, and fulfils orders")
  System_Ext(payments, "Payment Gateway", "Card authorisation")
  System_Ext(email, "Email Provider", "Transactional email")
  Rel(customer, orders, "Browses, orders", "HTTPS")
  Rel(orders, payments, "Authorises payment", "HTTPS/REST")
  Rel(orders, email, "Sends confirmations", "SMTP/API")

Level 2 — Container

C4Container
  title Container View — Order Platform
  Person(customer, "Customer")
  System_Boundary(plat, "Order Platform") {
    Container(web, "Web App", "React", "Customer-facing storefront")
    Container(api, "Order API", "Node.js/Fastify", "Order lifecycle endpoints")
    Container(worker, "Fulfilment Worker", "Node.js", "Consumes order events")
    ContainerDb(db, "Order DB", "PostgreSQL", "Orders, customers, payments")
    ContainerQueue(bus, "Event Bus", "EventBridge", "OrderPlaced, OrderShipped")
  }
  Rel(customer, web, "Uses", "HTTPS")
  Rel(web, api, "Calls", "JSON/HTTPS")
  Rel(api, db, "Reads/writes", "SQL")
  Rel(api, bus, "Publishes events")
  Rel(bus, worker, "Delivers events")

Read the full file on GitHub · 170 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. 2mo ago First seen · 170 lines · 59 tokens per session scan A be6b5c49fb55

Subscribe to this mod's changes

mermaid-diagrams is a skill published in the GitHub repository ihatesea69/kiro-kit (19 stars, last pushed 3mo ago), licensed MIT. It adds 59 tokens to every session and 1,498 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-09-03.

Related

mermaid-diagrams compared with skills from other repositories

mermaid-diagrams next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mermaid-diagramsihatesea69/kiro-kitSkill193mo agoMITA59Claude Code, Codex
frontendcode-yeongyu/lazycodexSkill4.0ktodayMITA79Codex
aoe-keyboard-focusagent-of-empires/agent-of-empiresSkill5.2ktodayMITA71Claude Code, Codex
designlang-tokensManavarya09/design-extractSkill5.2k6d agoMITA30Claude Code
cli-anything-photoshopyb2460/harness-anythingSkill3.3k1mo agoMITA43Claude Code, Codex
write-zot-themespatriceckhart/zotSkill373yesterdayMITA23Claude Code, Codex
user-research-cookiycookiy-ai/user-research-skillSkill1.6k18d agoMITA154Claude Code, Codex