mindmap
БесплатноБез исполняемых скриптовНе проверенUse when the user asks for a mindmap, mind-map, concept map, idea tree, brainstorm diagram, or any radial topic explosion ("draw a mindmap of X", "map out the…
от sergio-bershadsky★ 15 звёзд на GitHubОб этом скилле
Mindmap Skill
Generate radial mindmaps as self-contained HTML files with inline SVG, sharing the blueprint aesthetic of the sibling architecture-diagram skill: dark #020617 background, JetBrains Mono, halo text, semantic palette, Q-curved Bezier connectors, deterministic geometry-audit gate.
What triggers this skill
- "Draw a mindmap of X"
- "Map out themes / dimensions / ideas around Y"
- "Brainstorm a tree of Z"
- "Concept map for …"
- Any request producing a radial, single-root, branching diagram (≠ system architecture)
When in doubt: if the topic has one focal point and N parallel themes (a brainstorm, a taxonomy, a feature wheel), this skill. If it has components, data flow, edges that mean traffic/calls/dependencies, use architecture-diagram instead.
Output contract
Same as architecture-diagram:
- Single self-contained
.htmlfile with inline SVG, JetBrains Mono via Google Fonts, dark#020617background, halo text viapaint-order: stroke fill, built-in export toolbar (PNG / PDF / Copy). - Use
../architecture-diagram/resources/template.htmlas the starting point — same header, same toolbar, same capture script. - Geometry-audit (
../architecture-diagram/resources/geometry-audit.py) must exit 0 before the diagram is done.
Workflow
Parse the brief into a tree. The user writes a freeform prose request. Extract:
- Root (1 node): the topic the user named. If the user said "mindmap Socket0", root = "Socket0". Wrap in 1–3 words; this is the headline.
- Branches (3–8 nodes): main themes/dimensions/axes. Pick from the user's words first; only invent labels when the user gave a topic without structure.
- Leaves (2–4 per branch typically, max 6): concrete sub-points under each branch.
- Depth > 3 is a smell — collapse or split into multiple mindmaps.
Assign semantic colors per branch. Each branch + its subtree share one of the palette colors (cyan / emerald / violet / amber / rose / orange / slate). Use the meaning matrix below; if no semantic match, cycle through the palette.
Compute radial layout (algorithm below).
Draw: root rect at center, branch rects + edges in their sector, leaf rects + edges fanning from each branch.
Run the geometry audit —
python3 ../architecture-diagram/resources/geometry-audit.py <file>.html— and iterate until clean.
Radial layout algorithm
The mindmap lives in a canvas (default viewBox="0 0 1400 1000") with the root at the center (Cx, Cy) = (700, 500). Default radii: R1 = 260 (branch ring), R2 = 440 (leaf ring). Adjust these together if N branches > 6 or labels are unusually long — see Sizing tradeoffs at the bottom.
Step 1 — root box
root.w = max(content_w + 28, 240),root.h = 76, centered on(Cx, Cy).- Title font: 16 px bold, with optional 10 px subtitle line.
Step 2 — branch ring (depth 1)
Let N = number of branches. Distribute around 360°, starting at the top (θ_0 = -π/2, north), going clockwise:
θ_i = -π/2 + i * (2π / N) # i = 0..N-1
Place each branch with its center at radius R1 from (Cx, Cy):
branch_i.cx = Cx + R1 * cos(θ_i)
branch_i.cy = Cy + R1 * sin(θ_i)
branch.w = max(content_w + 16, 160),branch.h = 56. Keep boxes horizontal — never rotate the rect or its text.- Each branch owns the angular sector
[θ_i − π/N, θ_i + π/N]for its descendants.
Avoid overlap. With N = 5 and R1 = 260, neighbouring branch centers sit ≈ 305 px apart on the circle — fits comfortably. For N > 6, bump R1 to 260 + 30 * (N − 6). For N ≤ 4, the canvas can shrink to 1100 × 800 and R1 = 230.
Step 3 — leaves (depth 2)
For each branch with M leaves, fan them out across most of the branch's angular sector at radius R2:
sector_half = π / N # half-angle of branch's sector
leaf_spread = sector_half * 0.85 # use 85 % of the sector
φ_j = θ_i + (j − (M − 1)/2) * (2 * leaf_spread / max(M, 1))
leaf_j.cx = Cx + R2 * cos(φ_j)
leaf_j.cy = Cy + R2 * sin(φ_j)
leaf.w = max(content_w + 14, 140),leaf.h = 44. Font: 11 px name, 9 px sub-label.- If a label produces
content_w + 14 > 170 px, shorten it. Long leaf labels are the #1 cause of overlap with neighbours. Trim adverbs ("Plaintext in RAM only" → "Plaintext in RAM"), use symbols ("Free → enterprise"), or split into two leaves. - If M > 4 in a single branch, stack leaves in two arcs: half at
R2, half atR2 + 80, interleaved by index parity. Don't try to cram 8 leaves on one arc.
Step 4 — depth 3 (rare)
Only if the brief genuinely needs it. Same recursion: each leaf gets a narrower sector (leaf_spread / max(K, 1)) and a new radius (R3 = R2 + 200). If you reach depth 3 with more than 2–3 nodes, refactor: the diagram is becoming an outline, not a mindmap.
Step 5 — connectors
Every edge is a Q-curved Bezier from **parent'
Установить mindmap в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mindmap?
Use when the user asks for a mindmap, mind-map, concept map, idea tree, brainstorm diagram, or any radial topic explosion ("draw a mindmap of X", "map out the themes around Y", "mindmap the differentiators of Z"). Produces dark-themed self-contained HTML+SVG with a central root, branches radiating in all directions, halo text, Q-curved Bezier connectors, and geometry-audit gating.
Как установить скилл mindmap?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mindmap запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic