---
name: flow-diagram-maker
description: Turn a process, system or idea into a clear diagram — flowchart, sequence, architecture, state machine, ER or mind map — written as Mermaid, D2 or Graphviz, rendered to SVG/PNG and checked for readability. Use for "diagram this", flowcharts, architecture diagrams, process maps or system overviews.
license: Proprietary — Lendskill original
---

# Flow Diagram Maker

## 1. Pick the right diagram
| Need | Type | Tool |
|---|---|---|
| Steps and decisions | flowchart | Mermaid `flowchart` |
| Who calls whom, in time order | sequence | Mermaid `sequenceDiagram` |
| Services, data stores, boundaries | architecture | D2 (or Mermaid flowchart with subgraphs) |
| Lifecycle / modes | state machine | Mermaid `stateDiagram-v2` |
| Tables and relations | ER | Mermaid `erDiagram` |
| Large graphs needing auto-layout | graph | Graphviz `dot` |

## 2. Content rules
- 5–15 nodes per diagram; split bigger ones into an overview plus detail diagrams.
- Node labels are short noun phrases; edge labels are verbs ("sends", "validates").
- One direction of flow (top→bottom or left→right). Decisions are diamonds with labeled Yes/No edges.
- Group with subgraphs/containers only when the grouping means something (a service, a team, a trust boundary).

## 3. Style
Neutral nodes, ONE accent color for the main path or the thing being explained, color never the only signal (add labels/shapes). Readable at 100% zoom: ≥ 14 px text.

## 4. Render and check
- Mermaid: `npx -y @mermaid-js/mermaid-cli -i d.mmd -o d.svg` (and `-o d.png -s 2` for PNG).
- D2: `d2 d.d2 d.svg`. Graphviz: `dot -Tsvg d.dot -o d.svg`.
Open the result: no crossing edges you could avoid, no clipped labels, the main path readable in one pass. Fix and re-render.

## 5. Deliver
The source file (editable) plus SVG and PNG. For animated diagrams, hand the SVG to `motion-graphics-studio`.
