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.
npx skills add stefanrossmeier/ai-craftkit --skill mermaiddocgit clone --depth 1 https://github.com/stefanrossmeier/ai-craftkitWrote 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.
[](https://agentmods.dev/skills/stefanrossmeier/ai-craftkit/mermaiddoc)<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>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.
| Model | Per session | Once 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 |
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.
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"
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.
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.
- 7d ago First seen · 1,024 lines · 0 tokens per session scan A c994f1255adf
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.
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.
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.
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.
vault
Generate an Obsidian LLM wiki vault from a project's source code and any static documents in raw/.
knowledge-generator
Generates and accumulates structured project knowledge during the delivery process. Produces design baseline documents, ADRs, and project CLAUDE.md from Agent activities.
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.