mermaid
Installation
SKILL.md
mermaid skill
A Claude Code skill that analyzes source files, schemas, code, or a plain-text description and produces a Mermaid diagram — choosing the right diagram type automatically or using the one you specify.
features
- auto-detects the best diagram type from context: SQL files → ER, request flows → sequence, class hierarchies → class, logic/process → flowchart
- accepts a target: a file, directory, glob, or free-text description
- supports forced type with
--type=<type>when you know what you want - writes to a file with
--output=<path>, or prints to the terminal if omitted - validates syntax with the mermaid CLI before saving when
npxis available - always shows a preview and waits for confirmation before writing any file