mindmap
Skill1 starsChanged 3 months agoMITView on GitHub
Use when the user wants to turn content (architecture, processes, knowledge frameworks, meeting conclusions, notes) into a mind map / 脑图 / 思维导图, rendered as a single self-contained HTML page with the established dark radial style, fixed-size canvas, wheel-zoom and drag-pan interactions.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- 0x-man/mindmap-skilltheir own version, first seen Sep 28, 2026
- galiacheng/mindmap-skillstheir own version, first seen Sep 22, 2026
- ZJU-REAL/Easeltheir own version, first seen Sep 20, 2026
- guoliang1114-boop/AriaAItheir own version, first seen Aug 22, 2026
- jack1415926/claude-skillstheir own version, first seen Aug 14, 2026
- gitByEOS/open-part-skillstheir own version, first seen Jul 27, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- ZJU-REAL/Easel★ 3.1ksame name
- H-mmer/pentest-agents★ 984same name
- serenakeyitan/open-exam-skills★ 141same name
- gitByEOS/open-part-skills★ 40same name
- guoliang1114-boop/AriaAI★ 38same name
- galiacheng/mindmap-skills★ 20same name
- 0x-man/mindmap-skill★ 16same name
- clearsmog/claude-skills★ 2same name
- jack1415926/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository2 other files it gives its agents.
- channel-pickupSkill
- design-handoffSkill
The file
Files
mindmap
把任意内容提炼成「中心主题 + 左右分支」的脑图,输出单文件 HTML:深色主题、SVG 贝塞尔曲线连接、画布固定窗口大小、滚轮缩放、拖拽平移。所有脑图共用同一套视觉语言,样式与交互只在 scripts/generate_mindmap.py 里维护。
When to Use
触发:
- 用户说「画个脑图 / 思维导图 / mind map」
- 用户想把架构、流程、知识体系整理成「看一眼就记住」的结构图
- 已有成块内容(代码理解、文档、会议结论)需要框架化呈现
不适用:
- 内容以先后时序为主(一步一步的流程关系)→ 时序长页 / 流程图更合适,脑图会丢掉流向
- 内容归纳不出单一中心主题(说明还没想清楚,先和用户讨论结构)
Iron Rules
- 不手改生成的 HTML。样式、布局、交互只改
scripts/generate_mindmap.py,改完重新生成。直接在产物 HTML 上打补丁会让不同脑图之间样式漂移。 - 先归纳,再画图。JSON 里每个节点都必须来自对源材料的真实理解;不允许为了对称或填满分支编造节点。源材料不够就先读够再画。
- 一张图一个中心。中心主题 ≤ 12 个字说清本质,副标题一行补充。
- 控制容量:分支总数 ≤ 7,每个分支 3–8 个子节点,子节点 ≤ 28 字(推荐「关键词 · 说明」格式)。塞不下就向上归纳合并,不要缩字号、不要堆二级子节点。
- 输出路径先问用户。用户没有明确说产物生成到哪里时,先询问输出路径,不要默认写进当前目录或临时目录。
- 必须截图验证。生成后用无头浏览器截图并亲眼看一遍:连线交叉、节点遮挡、文字溢出、JS 是否生效,都要确认。
Workflow
1. 提炼结构,写 JSON 定义
通读源材料后归纳成「中心 + 左右两侧分支」,写成一个 JSON 文件(schema 见文末,完整示例见 examples/http-request-lifecycle.json)。
内容设计要点:
- principle 一句话口诀:标题正下方放记忆框架,例如「一张快照、一条主线 → 3 模式 / 8 闸口 / 4 暂停」,让人先看口诀再看图。支持
**加粗**。 - 右侧放主线 / 流程,左侧放结构 / 分类;内容多的一侧放右边。
- 有顺序含义的分支设
"numbered": true:子节点自动带数字徽章,编号即阅读顺序(如「主链路 8 步」「协议 4 层」)。 - 颜色自动分配:按 右→左 顺序从调色板取色,通常不用显式指定;分支可写
"color": "#hex"覆盖。 - 图例名自动取 label 第一个
·前的部分,可用"legend"显式覆盖。
2. 确认输出路径,运行生成脚本
如果用户没有明确指定产物的输出路径,先询问用户再执行(见 Iron Rules 第 5 条)。
# 脚本位于本 skill 目录的 scripts/ 下,以 skill 目录为工作目录运行
python3 scripts/generate_mindmap.py input.json -o <用户确认的输出路径>.html脚本行为:
- 自动布局:画布高度按内容计算,左右分支各自垂直居中,根节点居中
- 输出前自检 HTML 标签配对,异常直接报错退出
- 对超长文本 / 分支过多打印 WARNING(不阻断,由你判断是否回去归纳改写 JSON)
3. 截图验证
CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
"$CHROME" --headless --disable-gpu --screenshot=/tmp/mindmap-check.png \
--window-size=1600,1000 --hide-scrollbars "file://$(pwd)/output.html"用 Read 看截图,逐项检查:
- 整图是否居中适配:正常说明 JS 生效;若看到未缩放的巨图被裁切,说明 JS 报错,检查生成日志
- 曲线与节点是否遮挡、文字是否溢出节点边框
- 分支颜色与图例是否一致
- 窗口换成更小尺寸(如
--window-size=1200,800)再截一张,确认自动适配
有问题改 JSON 或脚本后重新生成,不要改产物 HTML。
4. 交付
告知用户:输出路径 + 交互方式(滚轮缩放、拖拽平移、双击复位、右上角 +/−/适应 按钮)。
JSON Schema
{
"title": "页面大标题(h1,必填)",
"kicker": "顶部小字(可选,如英文领域标识)",
"principle": "标题下方的一句话记忆框架(可选,支持 **加粗**)",
"root": { "title": "中心主题 ≤ 12 字", "sub": "一行副标题" },
"footer": "底部注(可选,支持 **加粗**)",
"right": [
{
"label": "分支名(父节点,建议 ≤ 12 字)",
"legend": "图例短名(可选)",
"color": "#58a6ff(可选,默认按调色板顺序分配)",
"numbered": true,
"children": ["子节点,≤ 28 字,推荐「关键词 · 说明」"]
}
],
"left": [ "结构同 right,可为空数组" ]
}布局由脚本固定:子节点宽 320px、纵向间距 46px;分支父节点宽 200px;根节点居中。无需也不应手工指定坐标。
Files
scripts/generate_mindmap.py— 唯一的样式 / 布局 / 交互实现(纯标准库,零依赖)examples/http-request-lifecycle.json— 完整参考示例:一次 HTTP 请求的一生
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

