Skip to content
hoodini avatar

Mermaid Diagrams

Reference guide with syntax and examples for Mermaid diagram types used in markdown documentation.

CCM score
52 of 100
skills.sh installs
411
GitHub stars
303
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers flowcharts, sequence, class, ER, Gantt, state, pie, git graph, user journey, and mindmap diagrams, each with working examples
  • Includes syntax tables for node shapes, arrow styles, visibility modifiers, cardinality notation, and styling via classDef
  • Provides a React Mermaid component that initializes the library and renders diagram source into an SVG container
  • Designed for documentation writers and developers who need diagram syntax lookup while authoring Mermaid code blocks

Install

$ npx -y skills add hoodini/ai-agents-skills --skill mermaid-diagrams -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Mermaid Diagrams

Create diagrams and visualizations using Mermaid markdown syntax.

Quick Reference

Mermaid diagrams are written in markdown code blocks with mermaid as the language identifier.

Flowchart

flowchart TD
    A[Start] --> B{Is it valid?}
    B -->|Yes| C[Process data]
    B -->|No| D[Show error]
    C --> E[Save to database]
    D --> F[Return to input]
    E --> G[End]
    F --> A

Flowchart Syntax

flowchart TD          %% TD = top-down, LR = left-right, RL, BT
    A[Rectangle]      %% Square brackets = rectangle
    B(Rounded)        %% Parentheses = rounded rectangle
    C{Diamond}        %% Curly braces = diamond/decision
    D[[Subroutine]]   %% Double brackets = subroutine
    E[(Database)]     %% Cylinder shape
    F((Circle))       %% Double parentheses = circle
    G>Asymmetric]     %% Flag shape

    A --> B           %% Arrow
    B --- C           %% Line without arrow
    C -.-> D          %% Dotted arrow
    D ==> E           %% Thick arrow
    E --text--> F     %% Arrow with label
    F -->|label| G    %% Alternative label syntax

Details

Repository
github.com/hoodini/ai-agents-skills
Category
Technical Documentation
First seen
Jun 3, 2026

Questions

What does the mermaid-diagrams skill do for an AI agent?

The mermaid-diagrams skill lets an agent create diagrams and visualizations using Mermaid syntax. It covers flowcharts, sequence diagrams, class diagrams, entity-relationship diagrams, Gantt charts and other visual documentation.

How do I install the mermaid-diagrams skill?

Run npx -y skills add hoodini/ai-agents-skills --skill mermaid-diagrams -y in your project. After installation, the agent can write Mermaid diagrams in markdown code blocks when you ask for a flowchart, sequence diagram or similar visual.

Which skills lead the mermaid-diagrams skill in the Technical Documentation category?

In the Technical Documentation category, mermaid-diagrams sits alongside domain-modeling, archify, writing-guidelines, design-doc-mermaid and documentation-and-adrs. Its own focus is generating Mermaid diagram code for many diagram types in one place.

Who is the mermaid-diagrams skill for?

It suits developers who want diagrams in their docs or project markdown without drawing them by hand. The skill gives the agent Mermaid syntax for flowcharts, state diagrams, Gantt charts, mindmaps and other diagram types.

More from hoodini/ai-agents-skills

All 35

Similar to Mermaid Diagrams

More Technical Documentation