Skip to content
Mike Reams

Try

Searches titles, summaries and topics across posts, work, diagrams, pages and the Toolbox resources.

↑ ↓ move · Enter open · Esc close
← AI Library

Skill · Original · Diagrams

Diagrams: Mermaid or blueprint SVG

Picks Mermaid or a hand-drawn blueprint SVG based on where the diagram will live, then draws flowcharts, sequences, ERDs, C4 views and state machines.

What you get

A diagram that renders where it is going: a Mermaid block for GitHub or Obsidian, or a clean grid-aligned SVG for docs and slides.

How I use it

  • One concept per diagram: split rather than cram.
  • Component state charts pair with the States section of a design handoff spec.
  • mermaid
  • svg
  • flowchart
  • C4
  • state machine

Files

Licence: MIT. Put the folder in your agent's skills directory, for example .claude/skills/diagrams/.

SKILL.md

---
name: diagrams
description: "Create software and UX diagrams — flowcharts, user journeys, sequence diagrams, ERDs, C4 architecture, state machines — as Mermaid (version-controllable, renders on GitHub/Obsidian) or clean blueprint-style SVG (checked-in artifact for docs/READMEs/slides). Triggers: diagram, visualize, map out, show the flow, user journey, architecture, state machine."
---

# Diagrams

Two output modes. Pick by destination:

| Destination | Mode |
|---|---|
| Markdown platform (GitHub, Obsidian, Notion) or user asks for Mermaid | **Mermaid** `.mmd` / fenced block |
| Checked-in visual artifact for docs, slides, handoff specs | **Hand-authored SVG** |

## Mermaid

Type selection: `flowchart` (processes, user journeys, decision trees) ·
`sequenceDiagram` (API flows, auth, interactions) · `classDiagram` (domain models) ·
`erDiagram` (schemas) · `stateDiagram-v2` (component/UI state machines) ·
`C4Context/Container` (architecture) · `gantt` (timelines).

```mermaid
flowchart TD
    Start([User visits]) --> Auth{Authenticated?}
    Auth -->|No| Login[Login page]
    Auth -->|Yes| Dash[Dashboard]
```

Rules of thumb:
- One concept per diagram; split rather than cram.
- `%%` comments for complex relationships; avoid `{}` inside comments (breaks parse).
- Meaningful node labels — diagrams should be self-documenting.
- Theme via frontmatter (`config.theme: base` + `themeVariables`) to match project palette.
- Store `.mmd` beside the code/doc it explains; export via `mmdc -i in.mmd -o out.png` when a raster is needed.

UI-designer specials: user-journey flowcharts with swimlane subgraphs per persona;
`stateDiagram-v2` for component state charts (idle → loading → success/error) — pairs
directly with the States section of a handoff spec.

## Blueprint SVG

For polished node-and-edge visuals, author SVG directly:

- Grid-aligned layout (multiples of 8px), generous whitespace.
- Limited palette: one line color, one accent, neutral fills; 1.5px strokes.
- Node types: rounded-rect boxes, cylinders for stores, dashed groups for boundaries.
- Orthogonal edge routing with small arrowheads; 12–13px labels, sans-serif.
- Save to the consuming folder (`docs/`, `handoff/`, or app README assets).

## When Asked to "Diagram the Design System"

Default deliverables: token-flow diagram (brand input → generator → tokens.json →
CSS/SCSS/Tailwind views → components) and a component-hierarchy diagram
(primitives → composites → patterns → pages).

Install with the skills CLI

npx skills add solventarchitect/skills --skill diagrams

From the public solventarchitect/skills (opens in a new tab) repo, kept in step with this page. Read a skill before you install it.

Updated 2026-10-28