Skip to content
Agentmart
Submit a tool

mermaid

Create Mermaid diagrams and render them through an available host renderer.

Skill by siftable

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/tom-r-main-mermaid

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Create Mermaid diagrams and render them through an available host renderer. Use when the user asks to "draw", "diagram", "visualize", "show a flowchart / sequence / state / class / ER / architecture / mindmap", or whenever a structure, flow, decision tree, or set of relationships is clearer as a picture than as prose.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/mermaid

What's inside

Skill name
mermaid
Description
Create Mermaid diagrams and render them through an available host renderer. Use when the user asks to "draw", "diagram", "visualize", "show a flowchart / sequence / state / class / ER / architecture / mindmap", or whenever a structure, flow, decision tree, or set of relationships is clearer as a picture than as prose.
License
MIT
Metadata
author: siftable
Instructions
148 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Mermaid diagrams

Use readable Mermaid source to explain structures, flows, and relationships. Rendering depends on the active host. These conservative templates originated in a terminal renderer with limited syntax; they remain portable defaults, not claims about every renderer's limitations.

## How to render

1. Emit a fenced ` ```mermaid ` block in the reply. Inline rendering is host-dependent; never claim it rendered unless observed.
2. For a complex diagram, use an already available documented renderer or project diagram check. Inspect its supported syntax and fix parser failures before presenting a rendered result.
3. If the host has no renderer, provide the source and state that rendering was unverified. Do not fetch npm packages, install a renderer, or register an integration implicitly.
4. If exporting an artifact is authorized, save the source and inspect the renderer's actual SVG/PNG output. A zero exit code alone does not prove correct layout.

## Supported diagram types

Use one of the following headers when supported by the active renderer. Prefer flowcharts and sequence diagrams for broad portability. Experimental `architecture-beta` and C4 syntax require explicit renderer support.

| Type | Header | Best for |
| --- | --- | --- |
| Flowchart | `flowchart TD` (or `graph TD`) | flows, decisions, pipelines, task plans |
| Sequence | `sequenceDiagram` | calls/messages between actors over time |
| State | `stateDiagram-v2` | state machines (flat only) |
| Class | `classDiagram` | types, fields, relationships |
| Entity-relationship | `erDiagram` | data models |
| Mindmap | `mindmap` | hierarchies / breakdowns |
| Architecture | `architecture-beta` | grouped services |
| C4 context | `C4Context` | system context |

Flowchart directions: `TD` / `TB` (top-down), `LR` (left-right), `RL`, `BT`.
`TD` and `LR` read best in a terminal.

## Flowchart — the workhorse (use this most)

Node shapes — **these four conservative shapes avoid renderer-specific syntax**:

```mermaid
flowchart TD
  A[Rectangle] --> B(Rounded)
  B --> C{Decision}
  C -->|yes| D((Circle))
  C -->|no| E[Done]
```

Edges: `-->` (arrow), `---` (line), `-.->` (dotted), `==>` (thick).
Edge labels: `A -->|label| B` or `A -- label --> B`.
Cycles, fan-out, and converging edges all route correctly.

Example — a plan/task graph (a very common request):

```mermaid
flowchart TD
  A[Spec] --> B[Build]
  B --> C{Tests pass?}
  C -->|yes| D[Ship]
  C -->|no| B
```

## Other type templates

Sequence — supports `participant ... as`, activations `->>+ / -->>-`, `Note over X: …`, and `alt/opt/loop/par … end`:

```mermaid
sequenceDiagram
  participant U as User
  participant S as Server
  U->>S: GET /data
  S-->>U: 200 OK
  Note over S: cache miss
  alt error
    S-->>U: 500
  end
```

State (flat only — NO nested `state X { }`):

```mermaid
stateDiagram-v2
  [*] --> Idle
  Idle --> Active : start
  Active --> Idle : stop
  Active --> [*]
```

Class (no generics):

```mermaid
classDiagram
  class User {
    +String id
    +login() bool
  }
  User <|-- Admin
```

ER (cardinality: `||`=1, `o{`=0..N, `|{`=1..N, `o|`=0..1; `--` solid / `..` dashed):

```mermaid
erDiagram
  CUSTOMER {
    string name
  }
  ORDER {
    int id
  }
  CUSTOMER ||--o{ ORDER : places
```

Mindmap (indentation = depth; use `((text))` or `[text]` for the shape):

```mermaid
mindmap
  root((Project))
    Backend
      API
    Frontend
```

## Conservative subset for limited renderers

When renderer support is unknown, avoid the following syntax; these limits originated in a restricted terminal implementation. An inspected renderer may support more:

From Tom-R-Main/siftable-skills, MIT.

More from Tom-R-Main/siftable-skills

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Oct 12, 2026 (16 days ago)
Last release
Aug 14, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from siftable

Cite this page

mermaid skill. Agent Mart. https://agentmart.dev/skills/tom-r-main-mermaid (last updated 2026-10-24)