mermaid

Installation
SKILL.md

Mermaid Diagrams for Chatbots

Use this skill to create Mermaid diagrams that render well in Markdown chat interfaces, validate their syntax locally, and render images without calling a web service.

Invocation Notice

  • Inform the user when this skill is being invoked by name: mermaid.

Workflow

  1. Identify the diagram type (flowchart, sequenceDiagram, stateDiagram-v2) based on the request.
  2. Draft Mermaid code in a fenced Markdown block using mermaid.
  3. Follow formatting conventions in references/chatbot-mermaid-guidelines.md.
  4. Validate the diagram using scripts/validate_mermaid.py.
  5. If the user wants an image file, render with scripts/render_mermaid.py.

Scripts

  • scripts/validate_mermaid.py
Related skills
Installs
29
Repository
ahgraber/skills
GitHub Stars
2
First Seen
Feb 7, 2026