/mindmap:mindmapfrom mindmap
Draw XMind/MindNode-style mind maps from a Markdown outline: balanced two-sided map, right-only or top-down tree, coloured branches, tapered curved connectors, AWS/K8s icons and brand logos, Vietnamese text. Exports SVG, PNG, editable draw.io XML, FreeMind .mm (opens in Freeplane/XMind) and interactive collapsible HTML (markmap). Use for 'vẽ mindmap', 'mind map', brainstorm/topic maps, study notes, plan breakdowns, toolchain overviews.
Ships in mindmap. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Turn an outline into a mind map with one command. The outline is the source of truth: write it first, render, look at the PNG, adjust the outline (not the pixels), re-render.
| File | Purpose |
|---|---|
scripts/mindmap.py | parser + layout + exporters (CLI and MindMap class) |
scripts/preview.py | screenshot a .drawio (official viewer) or markmap .html to verify it |
scripts/setup.sh | pip deps (cairosvg, pillow, diagrams for icons) |
examples/*.md | DevSecOps toolchain (logos/icons), AWS migration plan (Vietnamese, collapsed node) |
.html export only.mindmap renders inside Markdown hosts but has little layout control and no two-sided balance..mm is the interchange format
(Freeplane opens it, XMind and MindManager import it).bash scripts/setup.sh once..md). Keep labels short (≤ 6 words); 4–8 level-1 branches; ≤ 4 levels deep. Long labels
wrap at --max-width (default 300 px).python3 scripts/mindmap.py map.md out --formats svg,png,drawio,mm,htmlout.png (Read it). Check: no overlapping boxes, sides balanced, wrapped text OK, icons resolved.
Crop zoomed areas with PIL if the map is large.python3 scripts/preview.py out.drawio out_drawio.png..drawio, .mm or .html).# Root topic {icon:aws/compute/elastic-kubernetes-service}
## Branch A {color:#E07B00} <- heading level n => depth n-1
- child {icon:onprem/vcs/gitlab} <- bullets nest under the last heading (2- or 4-space indent)
- grandchild {logo:kyverno}
## Branch B
- big subtree {collapsed} <- children hidden, label gets "(+N)"; folded in .mm/.html too
- hidden child
# heading (or first bullet). ## = level 1, ### = level 2, then bullets continue deeper.
Pure bullet outlines work too (first bullet is the root).{icon:<path>} = any icon of the diagrams package without .png
(aws/compute/ec2, k8s/compute/pod, onprem/gitops/argocd, onprem/monitoring/grafana, …).
Find names: ls $(python3 -c "import diagrams,os;print(os.path.dirname(diagrams.__file__))")/../resources/onprem/*.{logo:<name>} = PNG from ./logos, $ARCHDIAG_LOGOS, or the sibling arch-diagram skill's logos/
(run its setup.sh to fetch 24 brand logos). Never draw a fake brand mark; leave the icon out instead.{color:#hex} on a branch overrides its palette colour (children inherit).**bold**, `code` and [links](…) are stripped to plain text.| CLI | Python | Notes |
|---|---|---|
--layout map | layout="map" | default; level-1 branches split into two balanced sides, read clockwise |
--layout right | layout="right" | all branches to the right (timelines, plans, few branches) |
--layout tree | layout="tree" | top-down org chart (shallow hierarchies; gets wide fast) |
--theme light/dark | theme= | dark = navy background, light root |
--max-width 300 | max_width= | wrap width for level ≥ 2 labels |
--formats svg,png,drawio,mm,html,md | m.save(stem, *formats) | md = normalised outline |
import sys; sys.path.insert(0, "<skill>/scripts")
from mindmap import MindMap
m = MindMap.from_markdown(open("map.md").read(), layout="map", theme="light")
m.save("out", "svg", "png", "drawio", "mm", "html")
{color:} when a branch has a meaning (red = risk, green = done).source/target, curved, no arrowheads;
level 3+ use shape=partialRectangle (bottom border = underline) with a separate image cell for icons.
Edit in draw.io / diagrams.net; drag a node and its edges follow..mm: topics, side (POSITION), colours, folded state. Opens in Freeplane, imports into XMind,
MindManager, MindMeister. Icons are not carried.[email protected] from jsDelivr; branch colours
match the PNG; collapsed nodes fold (<!-- markmap: fold -->); toolbar with zoom/fit. Needs internet to view.{collapsed} for detail.{icon:} path or logo not fetched; check with ls before rendering.assets/previews/aws_migration_plan.png (opens in a new tab)assets/previews/aws_migration_tree_dark.png (opens in a new tab)assets/previews/devsecops_toolchain.png (opens in a new tab)assets/previews/markmap_html.png (opens in a new tab)examples/aws_migration_plan.drawio (opens in a new tab)examples/aws_migration_plan.html (opens in a new tab)examples/aws_migration_plan.md (opens in a new tab)examples/aws_migration_plan.mm (opens in a new tab)examples/devsecops_toolchain.drawio (opens in a new tab)examples/devsecops_toolchain.html (opens in a new tab)examples/devsecops_toolchain.md (opens in a new tab)examples/devsecops_toolchain.mm (opens in a new tab)scripts/mindmap.py (opens in a new tab)scripts/preview.py (opens in a new tab)scripts/setup.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub vanlongme/skills --plugin mindmap