Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

mermaid

verified

Render Mermaid diagrams as ASCII/Unicode art or SVG

View on GitHub

Marketplace

genomewalker-cc-soul

genomewalker/cc-soul

Plugin

cc-soul

Repository

genomewalker/cc-soul

skills/mermaid/SKILL.md

Last Verified

February 2, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/genomewalker/cc-soul/blob/main/skills/mermaid/SKILL.md -a claude-code --skill mermaid

Installation paths:

Claude
.claude/skills/mermaid/
Powered by add-skill CLI

Instructions

# Mermaid Diagrams

```ssl
[mermaid] visualize→ASCII|SVG | via beautiful-mermaid

supported: flowchart, state, sequence, class, ER
output: terminal-friendly ASCII or SVG file
themes: 15 built-in (tokyo-night, github-dark, etc.)
```

## Usage

When user asks for a diagram, architecture visualization, or flowchart:

1. **Write the Mermaid code** based on their description
2. **Render as ASCII** for immediate terminal display
3. **Optionally save SVG** if user wants a file

## Mermaid Syntax Quick Reference

### Flowchart
```mermaid
graph TD
    A[Start] --> B{Decision}
    B -->|Yes| C[Action]
    B -->|No| D[End]
```

### Sequence Diagram
```mermaid
sequenceDiagram
    Alice->>Bob: Hello
    Bob-->>Alice: Hi back
```

### State Diagram
```mermaid
stateDiagram-v2
    [*] --> Idle
    Idle --> Processing: start
    Processing --> Done: complete
    Done --> [*]
```

### Class Diagram
```mermaid
classDiagram
    Animal <|-- Duck
    Animal <|-- Fish
    Animal : +int age
    Animal : +isMammal()
```

### ER Diagram
```mermaid
erDiagram
    CUSTOMER ||--o{ ORDER : places
    ORDER ||--|{ LINE-ITEM : contains
```

## Rendering

Use the `mermaid-render` script to render diagrams:

```bash
# ASCII output (terminal)
mermaid-render ascii "graph LR; A --> B --> C"

# SVG output (file)
mermaid-render svg "graph TD; A --> B" output.svg

# With theme
mermaid-render svg "graph TD; A --> B" output.svg --theme tokyo-night
```

### Available Themes
- tokyo-night (default)
- github-dark
- github-light
- dracula
- monokai
- nord
- one-dark
- solarized-dark
- solarized-light
- gruvbox-dark
- gruvbox-light
- catppuccin-mocha
- catppuccin-latte
- rose-pine
- rose-pine-dawn

## Process

1. **Understand the request** - What needs to be visualized?
2. **Choose diagram type** - flowchart, sequence, state, class, or ER
3. **Write Mermaid code** - Use proper syntax
4. **Render** - Show ASCII in response, offer SVG if complex

## Example

User: "Show me the hook lifecycle"

```mermaid
graph TD
 

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
2207 chars