study-mindmaplisted
Install: claude install-skill 2362094903-ops/study-assistant-skills
# Study Mind Map
Render the knowledge tree in `knowledge.json` into an interactive HTML mind map. **Never hand-write the HTML** — run the bundled script; it guarantees identical interaction and coloring regardless of which model invokes it:
```bash
python3 ~/.claude/skills/study-mindmap/scripts/build_mindmap.py <study-dir>/knowledge.json --chapter <N>
python3 ~/.claude/skills/study-mindmap/scripts/build_mindmap.py <study-dir>/knowledge.json --book # whole-book overview
```
Output: `<study-dir>/mindmaps/chapter-XX.html` (or `book.html`). `open` it in the browser the first time; for subsequent color refreshes just tell the user (in Chinese) to refresh the tab.
## Precondition: knowledge.json must exist
This skill only renders — it does not split knowledge points. If knowledge.json is missing, build it first (contract in `~/.claude/skills/study-assistant/SKILL.md`, then run validate_workspace.py). When building the list, remember the map's mission: **the user revises the whole chapter from this picture** — every definition, formula, law, and method is its own leaf. A missing point is far worse than an extra one.
## Map features (worth mentioning to the user, in Chinese)
- Click a node to collapse/expand its subtree (collapsed nodes show the hidden count)
- Drag to pan, wheel to zoom; one-click 适应窗口 / 展开全部 / 折叠到小节
- Search box highlights matches and auto-expands their path
- Leaves are colored by mastery: 灰 = 未学, 红 = 薄弱 (1–2), 黄 = 基本 (3), 浅绿 = 熟练 (4), 绿 = 精通 (5); ★ marks