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 npx is available
  • always shows a preview and waits for confirmation before writing any file

usage

Installs
6
GitHub Stars
1
First Seen
May 16, 2026
mermaid — pavelsimo/skills