← Skills
Claude Code skill Free

Mermaid Diagram Free Claude Code skill, copy & paste

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.

Lives in A folder per skill with a SKILL.md inside: .claude/skills/<name>/ or ~/.claude/skills/<name>/.
Checked

Formats change. If a field stops working, check it against Anthropic's documentation.

SKILL.md

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.
Install and use it

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.

Read the docs ↗

https://code.claude.com/docs/en/skills

New drops, every week

Free tools & Claude templates, landing regularly.

We keep shipping new free tools, code recipes and Claude Code templates. Follow @freeyantra on Instagram or join the newsletter so you never miss one.

Follow @freeyantra

or get them by email

Double opt-in. Unsubscribe any time. Privacy