flowchart
Converts prose or code into a readable Mermaid diagram with the right diagram type and conventions.
looks for
- draw / map / diagram this
- a process with branches or loops
- a request/response between several services
- a lifecycle with states (draft → published)
outputs
- → a .mmd file or a fenced mermaid block
- → a one-line caption saying what the diagram shows
SKILL.md
Flowchart
1. Pick the diagram
| You are showing | Use |
|---|---|
| Steps and decisions | flowchart TD (or LR for wide, shallow flows) |
| Messages between actors over time | sequenceDiagram |
| An object's lifecycle | stateDiagram-v2 |
| Data model | erDiagram |
| Timeline / plan | gantt or timeline |
2. Gather the flow
List: start, end(s), each step (verb + object), each decision (a yes/no or short-answer question), loops and failure paths. Read the code if it is a code flow; don't diagram what you assume.
3. Conventions
- Rounded
(…)start/end, rectangles[…]steps, diamonds{…}decisions. - Quote labels:
A["Validate input"]. Avoid raw(),;,#in labels. - Decisions are questions; edges are answers:
-- "Yes" -->. - 5–15 nodes. More? Split into subgraphs or a second diagram.
- One direction. Happy path straight down; errors branch to the side.
- IDs are short (
A,B,V1); text goes in labels. - Dotted
-.->for optional/async; thick==>for the main path if needed.
4. Example
flowchart TD
S(["Request"]) --> A["Validate input"]
A --> B{"Valid?"}
B -- "No" --> E["Return ERR_VALIDATION"]
B -- "Yes" --> C["Save"]
C --> D(["201 Created"])
5. Check
- Every decision has all its exits labelled.
- No dead ends except real end states.
- It renders (paste into a Mermaid live editor or your docs preview).
- Someone new can follow it without the prose.
Customize for your project
Where diagrams live ({{DOCS_DIR}}/diagrams) and your theme (%%{init: {...}}%%).
pairs with
- skilltrueorfalse
adr
Captures one decision with its context, rejected options and consequences in a numbered, immutable record.
- a technology or vendor choice
- a change that is hard to reverse
- a decision made in chat that nobody wrote down
Claude · Codex · ChatGPT - skilltrueorfalse
decision-council
Runs five opposing advisor views and a cross-examination, then a chair commits to one call and writes it up.
- an irreversible or costly choice (architecture, pricing, build vs. drop, rewrite)
- "council this", "second opinion", "should we…?"
- a plan everyone already agrees with
Claude · Codex · ChatGPT - skilltrueorfalse
debug
Runs a reproduce → isolate → hypothesize → fix → prove loop so fixes address causes, not symptoms.
- an error message or stack trace
- a failing or flaky test
- it worked yesterday
Claude · Codex · ChatGPT - skilltrueorfalse
api-contract
Locks request/response shapes and change rules so clients and servers can ship independently without breaking.
- a new or changed endpoint
- a field rename, removal or type change
- plain-text error responses
Claude · Codex · ChatGPT