mermaid
Skill9 starsChanged 8 months agoMITView on GitHub
Generate Mermaid diagrams in the README to visualise architecture, flows, or relationships from the codebase.
30 other projects use a version of this.
Adopted by
Most recently taken up by
- blas1n/claude-skillstheir own version, first seen Oct 4, 2026
- bex-co/bextheir own version, first seen Sep 29, 2026
- wyattjoh/skillstheir own version, first seen Sep 27, 2026
- chujianyun/skillstheir own version, first seen Sep 25, 2026
- flowing-abyss/obsidian-vault-skillstheir own version, first seen Sep 19, 2026
- chrislacey89/skillstheir own version, first seen Sep 18, 2026
Used with
Projects with it also use ansible and plantuml.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
KubementatSkillansible
Ansible automation reference for playbooks, roles, inventory, variables, and modules. Includes Proxmox VE and Docker integration via community.general and community.docker collections. Use when writing playbooks, troubleshooting Ansible runs, or designing automation workflows. Triggers: ansible, playbook, inventory, role, task, handler, vars, jinja2, galaxy, proxmox_kvm, proxmox_lxc, docker_container, docker_compose.
Also in 3 projects that use this
xenodiumSkillplantuml
This skill should be used when the user invokes "/plantuml" to create a diagram from the current context using PlantUML and output the resulting image path.
Also in 3 projects that use this
Other versions30 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 30
- chujianyun/skills★ 740same name
- bex-co/bex★ 569same name
- WH-2099/mermaid-skill★ 288same name
- xenodium/emacs-skills★ 142same name
- mgifford/accessibility-skills★ 50same name
- nilecui/SkillsBase★ 27same name
- greedychipmunk/agent-skills★ 19same name
- ulises-jeremias/agent-toolkit★ 18same name
- flowing-abyss/obsidian-vault-skills★ 9same name
- linearuncle/linearuncleskills★ 8same name
20 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- codex-reviewSkill
- cost-reviewSkill
- coverage-reviewSkill
- db-reviewSkill
- functionalSkill
- learnifySkill
- object-orientedSkill
- perf-reviewSkill
- proofreadSkill
- roast-reviewSkill
- testifySkill
- test-runnerSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 12 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 27 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Every element in the diagram must reflect the actual codebase.
- Distinctive: line 20
Read the source files thoroughly before drawing anything.
- Distinctive: line 24
Keep diagrams focused. A diagram that tries to show everything communicates nothing
- Distinctive: line 25
Use meaningful node labels derived from actual file, function, class, or module names in the codebase
- Distinctive: line 26
Prefer short, descriptive edge labels.
- Distinctive: line 40
If the user specifies a diagram type, use it.
- Distinctive: line 44
Place the diagram in a logical section of the README.
- Very specific: line 45
Use a fenced Mermaid code block ( `mermaid ) so the diagram renders natively on GitHub and other Markdown renderers
- Distinctive: line 46
If the README already contains a Mermaid diagram for the same subject, update it rather than adding a duplicate
- Distinctive: line 73
Use the following diagram as a reference for style, tone, and formatting when generating flowcharts.
- Distinctive: line 113
Read the specified file(s) to understand the code structure, components, and relationships
- Distinctive: line 114
If no files are specified, use the natural language description to search the codebase for relevant files
- Distinctive: line 118
Add the diagram to the target Markdown file (README.md by default) in a logical section with a clear heading
“Common” is measured: kept by at least 6 in 10 of the 27 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Mermaid — Generate Mermaid Diagrams for the README
Generate clear, accurate Mermaid diagrams in the project README (or a specified Markdown file) to visualise architecture, data flows, class relationships, or other structures derived from the codebase.
Files and instructions: $ARGUMENTS
Core principles
Accuracy over aesthetics
- Every element in the diagram must reflect the actual codebase. Do not invent components, connections, or flows that do not exist
- Read the source files thoroughly before drawing anything. If a relationship is ambiguous, trace it in the code rather than guessing
Clarity and readability
- Keep diagrams focused. A diagram that tries to show everything communicates nothing
- Use meaningful node labels derived from actual file, function, class, or module names in the codebase
- Prefer short, descriptive edge labels. Omit labels when the relationship is obvious from context
- Group related nodes with subgraphs when it improves readability, but do not over-nest
Diagram type selection
Choose the Mermaid diagram type that best fits the subject:
- flowchart (
flowchart TD/LR) — request flows, pipelines, decision trees, process steps - sequence diagram (
sequenceDiagram) — interactions between components over time (API calls, message passing) - class diagram (
classDiagram) — class hierarchies, interfaces, type relationships - entity-relationship (
erDiagram) — database schemas, data models, entity relationships - state diagram (
stateDiagram-v2) — lifecycle states, state machines, status transitions - architecture (
architecture-beta) — high-level system or infrastructure topology
If the user specifies a diagram type, use it. Otherwise, select the most appropriate one based on the code being visualised.
Integration with the README
- Place the diagram in a logical section of the README. If a relevant section already exists, add the diagram there. If not, create a section with a clear heading
- Use a fenced Mermaid code block (
```mermaid) so the diagram renders natively on GitHub and other Markdown renderers - If the README already contains a Mermaid diagram for the same subject, update it rather than adding a duplicate
How to interpret arguments
The arguments are free-form and flexible. They may contain:
- File references of any type and in any format:
@service.ts,src/models/,handler.go, router.go - Natural language describing what to diagram, such as:
- "the request flow through the API"
- "the class hierarchy"
- "how auth works end to end"
- "the database schema"
- A target Markdown file:
put it in docs/architecture.md(defaults toREADME.mdif not specified) - A preferred diagram type:
as a sequence diagram,use a flowchart
Parse the arguments to identify which file(s) to read, what to visualise, where to place the diagram, and any additional instructions.
Examples
/mermaid @service.ts @handler.ts the request flow— diagram the request flow through these files/mermaid src/models/ the entity relationships as an ER diagram— generate an ER diagram from model files/mermaid @auth.ts how authentication works end to end— diagram the full auth flow/mermaid @router.go @middleware.go as a sequence diagram— visualise middleware and routing interactions/mermaid src/ high-level architecture, put it in docs/architecture.md— architecture overview in a specific file
Style reference
Use the following diagram as a reference for style, tone, and formatting when generating flowcharts. Note how it uses emojis for input/output nodes, multi-line labels for steps that involve an external service or tool, decision nodes for branching logic, and a clean top-down layout:
flowchart TD
A["📂 Folder of page photos"] --> B["Scan images and sort by name or date"]
B --> C["Process pages with bounded concurrency"]
C --> D["Load image and auto-rotate from EXIF"]
D --> E["Layout OCR
AWS Textract"]
D --> F["Page number + figure analysis
Vision LLM via OpenRouter"]
E --> G["Merge OCR blocks with vision results"]
F --> G
G --> H["Crop figures and attach captions"]
H --> I["Fix reading order
and deduplicate caption text"]
I --> J["Repair cross-page hyphen splits"]
J --> K["Structured processed pages"]
K --> L["Build Word document"]
L --> M["📄 output.docx"]
K --> N{"Translate?"}
N -- Yes --> O["Clone pages"]
O --> P["Translate text blocks in batches
with neighboring-page context"]
P --> Q["Build translated Word document"]
Q --> R["📄 output.lang.docx"]
N -- No --> S(("Done"))
M --> S
R --> SApply the same patterns to other diagram types where applicable (e.g. emojis for key entities, multi-line labels for steps with external dependencies).
How to proceed
- Read the specified file(s) to understand the code structure, components, and relationships
- If no files are specified, use the natural language description to search the codebase for relevant files
- Identify the key components, flows, or relationships to visualise based on the user's description
- Select the most appropriate Mermaid diagram type (or use the one the user requested)
- Generate the Mermaid diagram, ensuring every node and edge maps to something real in the codebase
- Add the diagram to the target Markdown file (README.md by default) in a logical section with a clear heading
- Review the diagram for accuracy, readability, and correct Mermaid syntax
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

