mermaid

mermaid is a skill for Claude Code, Codex from AdamBien/airails. It costs 81 tokens per session (706 once invoked), scanned A, original, MIT.

A format for writing diagrams that show how the main parts of a software system connect. Mermaid diagrams are written as text and can be displayed in documentation such as a README.

In plain words
What is it for?
Use it to create high-level architecture overviews, component diagrams, dependency graphs, and other system visualizations, including logical groups and external services.
Why use it?
It gives developers a consistent way to explain architecture and dependencies without drawing every class or implementation detail.

Skill for Claude CodeCodex

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

Good fit Use it to create high-level architecture overviews, component diagrams, dependency graphs, and other system visualizations, including logical groups and external services.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/adambien/airails/mermaid"><img src="https://agentmods.dev/badge/skills/adambien/airails/mermaid.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 706 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 pass 7 Sept 2026
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.00081 $0.00706
Opus 5 $0.00041 $0.00353
Sonnet 5 $0.00016 $0.00141
Haiku 4.5 $0.00008 $0.00071

Measured 9d ago against content hash 407f5596431c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 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.

documentation/mermaid/SKILL.md · 66 lines

How it starts

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

Mermaid Overview Diagrams

Rules

  • prefer flowchart (graph) with TD or LR direction
  • wrap in ```mermaid fenced code block
  • use stadium-shaped nodes: ([text])
  • use meaningful node IDs reflecting component names
  • use --> for dependencies, -.-> for optional/async dependencies
  • label arrows only when ambiguous: Gateway -->|routes| Service
  • visualize only high-level concepts — omit classes, methods, implementation details
  • use subgraphs for logical grouping (subsystems)
  • write diagram into the target file (e.g. README.md) when context is clear

BCE Shape Mapping

Element Mermaid syntax Style class
Business Component (BC) Orders([Orders]) bc
Subsystem subgraph Billing subsystem
External service PayGW([Payment Gateway]) ext
Boundary layer Boundary([Boundary]) boundary
Control layer Control([Control]) control
Entity layer Entity([Entity]) entity

Style Classes

Define these classDef entries at the end of the graph and apply with class or ::::

classDef bc fill:#dae8fc,stroke:#6c8ebf,color:#000
classDef ext fill:#fff2cc,stroke:#d6b656,color:#000,stroke-dasharray:5 5
classDef boundary fill:#d5e8d4,stroke:#82b366,color:#000
classDef control fill:#e1d5e7,stroke:#9673a6,color:#000
classDef entity fill:#fff2cc,stroke:#d6b656,color:#000

Color Palette

  • BC blue: fill #dae8fc, border #6c8ebf
  • External yellow: fill #fff2cc, border #d6b656
  • Boundary green: fill #d5e8d4, border #82b366
  • Control purple: fill #e1d5e7, border #9673a6
  • Entity yellow: fill #fff2cc, border #d6b656

Example — Between Components

graph LR
    subgraph Billing
        Orders([Orders]) -->|charges| Payments([Payments])
    end
    Orders -.->|async| Notifications([Notifications])
    Payments -->|REST| PayGW([Payment Gateway])

    classDef bc fill:#dae8fc,stroke:#6c8ebf,color:#000
    classDef ext fill:#fff2cc,stroke:#d6b656,color:#000,stroke-dasharray:5 5
    class Orders,Payments,Notifications bc
    class PayGW ext

Read the full file on GitHub · 66 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 · 66 lines · 81 tokens per session scan A 407f5596431c

Subscribe to this mod's changes

mermaid is a skill published in the GitHub repository AdamBien/airails (49 stars, last pushed 2d ago), licensed MIT. It adds 81 tokens to every session and 706 once invoked, about $0.0004 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-08-30.

Related

Other skills, from other repositories

openkb-html-critic

Use to review a generated HTML deck or single-page artifact for visual quality and structural correctness. Especially good at catching CSS specificity bugs where slide-modifier classes (.divider, .center, .q, .flow etc.) accidentally override the base .slide{display:none} and cause one slide to stack on top of every…

VectifyAI/OpenKB · 132 tokens

cocosketch

Generate visual draw.io diagrams from CocoPlus artifacts via a deterministic seven-step pipeline.

Snowflake-Labs/cocoplus · 20 tokens

eval-graphics

Turn an eval study's numbers into on-brand, publish-ready figures using the Newsjack chart room (the eval design system), then validate them with Playwright. For producing the charts in a published eval/data study.

elvisun/newsjack · 47 tokens

authoring-java-sdk-tasks

Writes Airflow task logic in Java, Kotlin, or any JVM language using the Airflow Java SDK. Use when the user wants to implement Airflow tasks in Java/JVM, asks about @Builder.Dag/@Builder.Task/@Builder.XCom, the Task/BundleBuilder interfaces, reading connections/variables/XComs from Java, the JSON-to-Java type…

astronomer/agents · 152 tokens

configuring-airflow-language-sdks

Configures Airflow to run language SDK tasks (Java, Go, and future native SDKs) — register a coordinator, map a queue to it, ensure the runtime/artifact on workers, and tune coordinator options. Use when the user wants Airflow to route a queue to a native-language coordinator, asks about the [sdk]…

astronomer/agents · 155 tokens

brand

Create and maintain an org's brand as a folder the whole platform reads: colors, type, voice, logo and a deck theme. Use this whenever someone asks to "set up our brand", "make a brand kit", "apply our colors/fonts", or before producing branded artifacts (decks, pages, emails). One brand = one folder; everything that…

decocms/studio · 0 tokens