mermaiddoc

mermaiddoc is a skill for Claude Code, Codex from stefanrossmeier/ai-craftkit. It costs 48 tokens per session (1,196 once invoked), scanned A, original, Apache-2.0.

A guide for creating Mermaid diagrams in Markdown documentation. Mermaid is a text-based format for diagrams such as flowcharts and interaction sequences that can render on GitHub.

In plain words
What is it for?
Use it to document architecture overviews, module dependencies, request flows, data flows, build processes, and deployment processes in docs/diagrams/.
Why use it?
It helps teams explain code, data, request, build, and deployment flows with diagrams that remain editable as text and readable in code reviews.

Skill for Claude CodeCodex

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

Good fit Use it to document architecture overviews, module dependencies, request flows, data flows, build processes, and deployment processes in docs/diagrams/.

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

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 mermaiddoc

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/stefanrossmeier/ai-craftkit/mermaiddoc"><img src="https://agentmods.dev/badge/skills/stefanrossmeier/ai-craftkit/mermaiddoc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,196 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.00048 $0.01196
Opus 5.5 $0.00019 $0.00478
Sonnet 5.5 $0.00010 $0.00239
Haiku 4.5 $0.00005 $0.00120

Measured 1mo ago against content hash af25fa08265a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mermaiddoc 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 1mo 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.

skills/mermaiddoc/SKILL.md · 157 lines

How it starts

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

Mermaiddoc Skill

Command: /mermaiddoc

mermaiddoc is a diagram helper, not a repository-documentation workflow.

Use it when a specific document or question is clearer with one focused Mermaid diagram. It may return a Mermaid block for insertion into an existing document, or write/update a file when the user names an output location.

It does not own a default docs/diagrams/ tree and should not create one unless the user explicitly asks for standalone diagram files.

Preferred Diagram Types

Prefer:

flowchart LR
sequenceDiagram

Use flowchart LR for:

  • components and dependencies
  • request/data/process flow
  • module boundaries
  • build or deployment flow
  • simple decision flow

Use sequenceDiagram for:

  • interactions over time
  • request/response sequences
  • service calls
  • retries and important failure paths
  • user/system interaction

Use another standard Mermaid diagram only when it is materially better for the requested concept and is likely to render in GitHub.

Do not use Mermaid C4 syntax.

Scope

One diagram should answer one question.

Examples:

  • “How does an incoming request reach persistence?”
  • “Which modules depend on the domain package?”
  • “What happens during token refresh?”
  • “How does the worker process a queued job?”

Do not attempt to visualize the entire repository unless the user explicitly requests that scope and the result can remain readable.

Repository Evidence

When the diagram represents repository behavior:

  1. inspect only the files needed for the requested diagram
  2. prefer current code/config/tests and existing architecture docs
  3. use docs/archdoc/ and docs/adr/ as context when present
  4. distinguish inferred relationships from verified ones in surrounding prose when it matters
  5. do not invent missing components, calls, or rationale to make a diagram look complete

For a purely conceptual diagram supplied by the user, repository inspection is unnecessary.

Diagram Rules

Keep diagrams deliberately small.

Read the full file on GitHub · 157 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · -867 lines · +48 tokens per session af25fa08265a
  2. 2mo ago First seen · 1,024 lines · 0 tokens per session scan A c994f1255adf

Subscribe to this mod's changes

mermaiddoc is a skill published in the GitHub repository stefanrossmeier/ai-craftkit (5 stars, last pushed 4d ago), licensed Apache-2.0. It adds 48 tokens to every session and 1,196 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-08-31.

Related

mermaiddoc compared with skills from other repositories

mermaiddoc next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mermaiddocstefanrossmeier/ai-craftkitSkill54d agoApache-2.0A48Claude Code, Codex
knowledge-generatorpan94u/forgeSkill405d agononeA35Claude Code
doc-generatorchainlesschain/chainlesschainSkill11yesterdaynoneA23Claude Code
code-to-diagramzebbern/claude-code-guideSkill4.7k3d agoMITA74Claude Code, Codex
architecture-decision-record-maintainer-skillarchitecture-decision-record/architecture-decision-recordSkill17k8d agononeA92Claude Code, Codex
architecture-decision-record-skillarchitecture-decision-record/architecture-decision-recordSkill17k8d agononeA108Claude Code, Codex
Folio Contentevergreen-it-dev/folioSkill81yesterdayMITA37Claude Code, Codex