skills/smithery.ai/mermaid-diagram

mermaid-diagram

SKILL.md

Mermaid CLI Skill

Create, edit, and validate Mermaid diagrams using the mmdc command-line tool. This skill ensures diagrams are syntactically correct and visually well-organized before finalizing.

Core Principles

  1. Always validate syntax - Run mmdc to check syntax before considering a diagram complete
  2. Always inspect visually - Read the generated SVG to evaluate node arrangement
  3. Always get user approval - Open the SVG for user review before finalizing
  4. Prioritize clarity - Diagrams are for humans; organized layouts matter

Workflow: Creating New Diagrams

Step 1: Set Up Working Directory

Generate a unique session ID and create the working directory:

Installs
5
First Seen
Mar 12, 2026