mermaiddoc

mermaiddoc is a skill for Claude Code, Codex from stefanrossmeier/ai-craftkit. It costs 0 tokens per session (4,999 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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,999 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.00000 $0.04999
Opus 5 $0.00000 $0.02499
Sonnet 5 $0.00000 $0.01000
Haiku 4.5 $0.00000 $0.00500

Measured 7d ago against content hash c994f1255adf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 7d 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 · 1,024 lines

How it starts

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

Mermaiddoc Skill

Command: /mermaiddoc

Create readable Mermaid diagrams for repository documentation.

The skill creates Markdown files with Mermaid code blocks that render directly in GitHub.

The skill mainly creates these diagram types:

flowchart LR
sequenceDiagram

The skill stores generated diagram documentation in:

docs/diagrams/

Purpose

/mermaiddoc helps humans and agents create useful Mermaid diagrams for code documentation.

The goal is to create diagrams that:

  • explain one focused concept
  • render well in GitHub Markdown
  • stay readable in pull requests and repository docs
  • use simple Mermaid syntax
  • use stable node IDs
  • use short labels
  • use clear arrows
  • avoid visual clutter
  • avoid layout tricks that break or look bad on GitHub
  • can be maintained as text
  • help future humans and agents understand the codebase faster

The goal is not to create decorative diagrams or complete visual models of the whole system.

Supported Diagram Types

Prefer these diagram types:

flowchart LR
sequenceDiagram

Use flowchart LR for:

  • architecture overviews
  • module dependencies
  • request flow
  • data flow
  • build flow
  • deployment flow
  • agent workflow
  • repository workflow
  • command execution flow
  • high-level process diagrams
  • documentation generation flows

Use sequenceDiagram for:

  • runtime interactions
  • API calls
  • request and response behavior
  • agent and tool interactions
  • user and system flows
  • service-to-service communication
  • event handling sequences
  • retry sequences
  • error handling paths

Do not use other Mermaid diagram types unless the user explicitly asks.

Slash Command

Use this skill when the user calls:

/mermaiddoc

Natural examples:

/mermaiddoc "Create a diagram for the authentication flow"
/mermaiddoc "Show the request lifecycle"
/mermaiddoc "Create a sequence diagram for startup and data processing"
/mermaiddoc "Show the main components of the application"

Read the full file on GitHub · 1,024 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. 7d 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 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 4,999 tokens. 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

Other skills, from other repositories

documentation-patterns

Technical documentation patterns for READMEs, ADRs, API docs (OpenAPI 3.1), changelogs, and writing style guides. Use when creating project documentation, writing architecture decisions, documenting APIs, or maintaining changelogs.

yonatangross/orchestkit · 53 tokens

slides-to-pdf

Use when the user asks to convert, export, or save an HTML slide deck as a PDF ("save the slides as PDF", "export the deck to PDF", "make a PDF of the presentation"). Works on decks built by the SlideOps (slideops) skill and on any single-file HTML deck that shows one slide per URL hash (#1.

glukicov/slideops · 76 tokens

frontmatter-validation

Validate and fix YAML frontmatter metadata in markdown documentation files. Covers required fields, field formats, and schema compliance for SKILL.md and knowledge-copilot files. Use proactively when auditing documentation frontmatter, reviewing SKILL.md files, or fixing YAML metadata errors.

Everyone-Needs-A-Copilot/claude-copilot · 57 tokens

vault

Generate an Obsidian LLM wiki vault from a project's source code and any static documents in raw/.

burakolgun/vault-anything · 23 tokens

knowledge-generator

Generates and accumulates structured project knowledge during the delivery process. Produces design baseline documents, ADRs, and project CLAUDE.md from Agent activities.

pan94u/forge · 35 tokens

doc-generator

A document-generation tool for creating JSDoc, API documentation, sequence diagrams, and changelogs. JSDoc is structured commentary in JavaScript code, while a changelog records what changed between releases.

chainlesschain/chainlesschain · 23 tokens