Describe a process or system in words and get a Mermaid flowchart or sequence diagram you can paste into docs.
WHEN TO USE IT
When you need a diagram in a README, wiki or doc and do not want to draw boxes by hand.
Formats change. If a field stops working, check it against Anthropic's documentation.
One file. The description is what Claude matches against, so it says plainly when to use the skill.
---
name: mermaid-diagram
description: Turn a described process, workflow or system into Mermaid diagram code. Use when the user asks for a Mermaid diagram, a flowchart, a sequence diagram or a diagram for documentation.
---
Write Mermaid diagram code for what the user describes.
1. If the steps, the people or systems involved, or the kind of diagram wanted
is missing, ask once, in one message, then continue.
2. Pick the type: flowchart for steps and decisions, sequenceDiagram for messages
between people or systems, or another type if it clearly fits better.
3. Return the code in one code block marked mermaid.
4. Use short, clear labels and simple node ids, and show decisions as yes or no branches.
5. After the code, list each step in words so the user can check it matches.
6. Mention that the diagram renders in tools that support Mermaid [check their tool].
Rules:
- Do not add steps the user did not describe; ask or mark them [check].
- Avoid special characters in labels that break Mermaid; wrap such labels in quotes.
- Keep it under about twenty nodes; suggest splitting larger diagrams.
Put the folder in your skills directory. Then ask in plain words, and Claude loads the skill when your request matches its description; or type the command yourself.
# for you, in every project
mkdir -p ~/.claude/skills/mermaid-diagram
mv SKILL.md ~/.claude/skills/mermaid-diagram/
# then, inside Claude Code, either ask naturally:
# draw a flowchart of our leave approval process
# or run it by name:
# /mermaid-diagram
MORE SKILLS
The authority
Anthropic's documentation for Skills
This template is a starting point. Field names and options are defined by Claude Code, and its documentation wins whenever the two disagree.
https://code.claude.com/docs/en/skills