Turns a thought summary into two to four mermaid diagrams that show the record's own structure, and corrects them when the thought moves. Use when a thought summary must become diagrams the user can see, when a summary reads too flat to argue with because six look-alike statements are doing six different jobs, or when a correction changes what a picture says.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Visualize?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/uniterra-solutions-visualize-tidy-up-your-thoughts)
---
name: visualize
description: "Turns a thought summary into two to four mermaid diagrams that show the record's own structure, and corrects them when the thought moves. Use when a thought summary must become diagrams the user can see, when a summary reads too flat to argue with because six look-alike statements are doing six different jobs, or when a correction changes what a picture says."
version: 1.0.0
author: Tsz Kin Lai (LaiTszKin), Hermes Agent
license: MIT
platforms: [linux, macos, windows]
metadata:
hermes:
tags: [thinking, mermaid, diagram, mindmap, visualization]
related_skills: [brainstorming]
---
# Visualize — the summary, drawn
## Context
`~/thoughts/<topic_name>/summary.md` is prose: statements in a row, each one true, the structure
between them invisible. The reader cannot see which statement is a definition and which is a
consequence, which fork the thinking actually took, where the open question sits.
The work of this skill is to make that structure visible — and to make nothing else visible. **A
diagram is a rearrangement of the record.** It is not a place to add a judgement, smooth over a gap, or
supply the axis the user never named.
**Before drawing, establish these:**
- **`summary.md` in full**, and `README.md` for the open threads. Read `qa.md` only when a statement's
provenance matters — the summary already carries `[Qn]`.
- **`references/mermaid-templates.md`** — one verified template per diagram type, one file each under
`references/diagram-types/`, worked on a single sample topic. **`references/choosing-a-diagram.md`**
maps the summary line to the type, and **`references/syntax-pitfalls.md`** names the syntax that bites
by symptom. **Copy the closest template and edit; write no mermaid from memory.**
**When this skill is called for:**
- `summary.md` exists and the user asks to see it, or asks for a mind map, a flow chart, a diagram.
- The summary has been read and is too flat to argue with: six statements that look alike but are doing
six different jobs.
- A closing session of `tidy-up-your-thoughts:brainstorming` produced a summary and a picture would
settle what is still open.
**When this skill is not the right one** — say so and stop rather than adapt:
- There is no `summary.md`. Drawings built on a conversation that was never written down inherit every
ambiguity the record was supposed to remove — run `brainstorming` first.
- The user wants a diagram of a codebase, an architecture or an API. That has a source of truth outside
the thought record; use the rendering skills for that and leave this record alone.
## Goal
**Two to four `.mmd` files, each rendered to `.png` and `.svg`, plus a caption file.** Every picture
shows something the summary establishes, and nothing it does not.
`~/thoughts/<topic_name>/diagrams/` holds:
- **Each `.mmd`** opening with the lines it rests on:
`%% source: summary.md 現在確立的 (判準), 尚未確立的 (第一批客戶的來源)`
- **`.png`** (white background, double width) and **`.svg`** beside it.
`~/thoughts/<topic_name>/visual.md` holds the captions, and nothing else:
```markdown
# <topic_name> 的圖
### 01-decisions.png — 這件事在什麼條件下分岔
兩條路徑的分界是簽約人;未確立的部分以虛線表示。
來源:summary.md 尚未確立的
### 02-structure.png — 這件事由幾塊組成
來源:summary.md 現在確立的、詞的用法
### 未畫出的
- 交付責任的分工:summary 只提到它存在,沒有說誰承擔。
```
**One diagram answers one question**, named in its caption. If a second question appears while drawing,
it gets its own file. Beyond four, the set stops being read and starts being filed.
**Deliver the PNGs as `MEDIA:/absolute/path.png`**, one caption line each, in the user's language.
Identifiers and file names stay in English.
## Constraints
**Choose the diagram by what the reader must do.** Classify every summary line by the job it does,
because the job picks the picture:
| The line does this | It supplies |
| --- | --- |
| defines a term | vocabulary — which words may appear in labels |
| states a criterion | the diamonds of a decision graph |
| states a consequence | an edge, with a label |
| weighs two things | the axes of a quadrant |
| records a change of mind | a timeline |
| names actors and an order | a sequence |
| names a condition of the thing | a state |
| marks itself open | a dashed node, never a solid one |
Then four questions. **The first that has an answer decides the type.**
1. **Does the summary describe a fork?** Conditions with outcomes → `flowchart` with decision diamonds.
This is the most common case and the most useful picture.
2. **Does it describe a chain?** A claim, a warrant, an observation that breaks the warrant → an
argument `flowchart`, drawn in that order.
3. **Does it describe a space?** Two criteria pulling against each other → `quadrantChart`.
4. **Does it describe composition, order or condition?** Parts → `mindmap`; actors over time →
`sequenceDiagram`; the thinking's own history → `timeline`; discrete conditions →
`stateDiagram-v2`; shares → `pie`.
**Author with the record's own words.** Node text is shortened from the summary, never re-worded into
the agent's vocabulary. **The 「詞的用法」 section is binding:** if the user calls it 「簽約人」, no label
says 「決策者」.
**Four rules that keep the picture honest:**
- **An open question is a dashed node or a dashed diamond**, never a solid one. Solid means the summary
establishes it.
- **A gap in the diagram is a gap in the summary.** When the drawing needs a node the summary does not
have, stop and say which question is unanswered — **do not invent the node to close the shape.**
- **Colour is decoration; shape and line style carry meaning.** Solid versus dashed, diamond versus
box. A distinction that exists only in a fill colour disappears in print and for a colour-blind
reader.
- **Every edge out of a decision carries its outcome.** An unlabelled edge is a branch the reader
cannot follow.
**Render, look, then deliver:**
```bash
for f in ~/thoughts/<topic_name>/diagrams/*.mmd; do
npx -y @mermaid-js/mermaid-cli -i "$f" -o "${f%.mmd}.png" -b white -w 1600
npx -y @mermaid-js/mermaid-cli -i "$f" -o "${f%.mmd}.svg" -b white
done
```
A file whose `%% source:` header is missing is skipped and reported; **a loop that wrote no output is a
failure, never a pass with a quiet exit code.** Three rules are read rather than run: every block starts
with `%% source:`, no node id is declared twice with different labels, and no label is wider than its
node can show.
**A render proves syntax, not intent. Look at each PNG before it leaves:** cut-off labels, a node
overlapping an edge, a mind map whose fan is unreadable at 10 characters per node. Fix the source and
re-render; never crop the bitmap.
**Corrections are the normal second half of this work, not a failure of the first.** What matters is
that the corrected version and the record end up saying the same thing, and that the correction itself
survives in writing.
**Fix the level, not just the pixels.** Every correction is one of two kinds, and which one it is
decides what gets edited:
| The user's correction | Its object | Edit |
| --- | --- | --- |
| 「這兩個應該並排」「用詞換成我說的」「拆成兩張」 | the drawing | the `.mmd`, then re-render |
| 「不是這樣,我當時說的是…」「這條我沒說過」「少了 X」 | the thought | `summary.md` (and `qa.md`) first, then every diagram that inherits it |
**A thought correction goes upstream first:** the summary is amended, and the diagrams are regenerated
from the amended summary. Patching a diagram to match a verbal correction while the summary still says
the old thing leaves two sources of truth, and the stale one is the one that gets read next month. When
the kind is unclear, ask which — one question, the same discipline as `brainstorming`.
**Amend the summary without erasing it.** `summary.md` follows the record's append-only rule: the
superseded line is struck through with `→ 由 Q<new> 取代` and the corrected statement is added with its
own provenance. `qa.md` gets the new exchange as a new `Q`/`A` pair. **The correction becomes history
the diagram can cite, not a silent overwrite.** If the correction reveals a term whose meaning has
changed, amend the 「詞的用法」 entry too — labels across every diagram then change together, which is the
point of keeping vocabulary in one place.
**Record the correction.** `diagrams/REVISIONS.md`, append-only, one entry per correction:
```markdown
#### 2026-11-17T09:12
**用戶原話**:「簽約人不是財務部門,是行政」
**層級**:想法(summary.md 尚未確立的)
**影響**:summary.md 第 2 節、01-decisions.mmd、02-structure.mmd
**重繪**:01-decisions.png、02-structure.png
```
The quoted sentence is the user's, verbatim; **a paraphrase here repeats the mistake the correction was
fixing.** Regenerate the same file names — the revision log holds the history, so no `v2` clutter
accumulates unless the user asks to compare two versions side by side, in which case both are kept and
both are named in the caption.
**Seven pitfalls, each of which the rules above exist to prevent:**
- **Drawing the conversation instead of the summary.** The summary is the settled text; `qa.md` is the
debris. A diagram built from the debris shows paths the user abandoned as if they were open.
- **Turning an open question into a node.** The shape closes, the thought does not. Dashed, always.
- **Supplying the second axis.** A quadrant needs two criteria the summary holds; a plausible invented
axis is a judgement the user never made, drawn in his name.
- **Point coordinates presented as fact.** Placement inside a quadrant is the agent's reading — say so
in the caption, or use the chart only when the order is stated in the summary.
- **One diagram for everything.** Four questions in one graph produce a picture nobody reads; the
reader's eye needs one question per frame.
- **Correcting the PNG.** Every fix is a `.mmd` edit plus a render. A hand-adjusted image cannot be
regenerated and silently diverges on the next pass.
- **Silent revision.** A changed diagram with no `REVISIONS.md` entry loses the reason, and the next
session re-litigates a settled point.
## Verification
- [ ] Each `.mmd` starts with `%% source:` naming the summary lines it uses.
- [ ] Every block rendered without failure, and none of the three render-time rules fired.
- [ ] Every PNG was looked at; no cut-off labels, no overlapping edges, no unreadable fan.
- [ ] Every label's wording exists in the summary, and the terms follow 「詞的用法」.
- [ ] Every open question in the summary appears dashed, or in 「未畫出的」 with a reason.
- [ ] `visual.md` lists each diagram with one caption and the section it came from.
- [ ] After a correction: summary amended (not overwritten), diagrams regenerated, `REVISIONS.md`
appended with the user's own words.
- [ ] Every `.mmd` was re-rendered, the changed PNG is newer than the changed `.mmd`, and the PNG was
looked at again — a label shortened to fix an overlap can lose the word that made it mean
anything.
- [ ] Nothing in any diagram contradicts `summary.md`; when the summary moved, the labels were grepped
for the old vocabulary.