Community写作与编辑github.com

fengyunzaidushi/markmap-skill

生成先整体后局部、每层最多 7 个分支的内容优先 Markmap 思维导图

markmap-skill 是什么?

markmap-skill is a Claude Code agent skill that 生成先整体后局部、每层最多 7 个分支的内容优先 Markmap 思维导图.

兼容平台Claude CodeCodex CLI~Cursor
npx skills add fengyunzaidushi/markmap-skill

Installed? Explore more 写作与编辑 skills: steipete/notion, affaan-m/seo, affaan-m/brand-voice · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

内容优先 Markmap 思维导图

把项目、文档、代码库或概念整理成可以用 Markmap 渲染的 Markdown,并在需要时校验结构、生成 HTML。

核心规则

  • 先整体后局部:根主题说明对象和目的,再展开真实主概念、流程、模块和细节。
  • 用材料本身组织导图。不要为了照顾小白阅读而发明空泛分类标题。
  • 去掉只起分类作用的标题,例如“项目定位”“运行机制”“开发版图”“核心概念”“主要模块”“使用场景”等,除非这些词本来就是原文的一部分。
  • 每个节点的直接子节点最多 7 个;优先控制在 5 个左右,只有内容确实需要时才扩展到 6-7 个。
  • 不要因为真实内容很多就平铺超过 7 个分支;应按材料里的真实子主题继续分组。
  • 如果某个层级看起来需要超过 7 个分支,先合并相近内容,再按“整体 -> 分组 -> 局部细节”重排。
  • 类比是可选的。只有确实帮助记忆时才使用,并放在内容标签之后;不能让类比变成节点主体。
  • 不要编造确定性。总结仓库前先看 README、文档、包配置、测试、源码目录和本地脚本。
  • 保持导图简洁。节点用短内容标签,必要时补一句有依据的说明。

处理复杂仓库或长文档时,先读 references/analogy-structure.md

工作流程

  1. 先检查材料。
    • 仓库:先看 READMEAGENTS.md/CLAUDE.md、包配置、文档和顶层目录。
    • 文档:先找主题、主张、章节、重复概念和需要记忆的术语。
  2. 从整体到局部起草 Markdown。
    • 使用一个 H1 根标题说明对象。
    • 使用 ## 展开真实内容主干,不使用“给读者看的分类桶”。
    • 每个节点优先写材料中的真实概念、系统、流程、文件路径、API、主张或职责。
    • 只在细节能帮助理解时继续展开,不强行凑分支。
    • 每个父节点的直接子节点最多 7 个,优先 5 个左右;超过 7 个时按真实子主题重新分组。
  3. 用脚本校验 Markdown:
python3 ~/.codex/skills/markmap-analogy-mindmap/scripts/validate_and_render.py input.md --validate-only
  1. 需要交付 HTML 时,渲染 Markmap:
python3 ~/.codex/skills/markmap-analogy-mindmap/scripts/validate_and_render.py input.md -o output.html
  1. 如果校验失败,先修导图结构。除非用户明确要求非标准导图,否则不要绕过“空泛分类”和“层级分支过多”检查。

Markmap 渲染

脚本会按顺序尝试:

  1. markmap
  2. npx --yes markmap-cli
  3. 本机 /root/markmap 里的已构建 CLI

如果没有可用渲染器,就把已通过校验的 Markdown 作为交付物,并说明 HTML 未生成。

输出要求

  • 创建文件后,返回 .md.html 路径。
  • 说明检查过哪些来源,以及校验/渲染命令结果。
  • 除非用户要求修改源仓库,否则只读源材料。
  • 中文用户默认输出中文导图;只有命令、路径、API、包名、术语必须保留英文时才用英文。

相关技能

steipete/notion

Notion CLI/API for pages, Markdown content, data sources, files, comments, search, Workers, and raw API calls.

community

affaan-m/seo

Audit, plan, and implement SEO improvements across technical SEO, on-page optimization, structured data, Core Web Vitals, and content strategy. Use when the user wants better search visibility, SEO remediation, schema markup, sitemap/robots work, or keyword mapping.

community

affaan-m/brand-voice

Build a source-derived writing style profile from real posts, essays, launch notes, docs, or site copy, then reuse that profile across content, outreach, and social workflows. Use when the user wants voice consistency without generic AI writing tropes.

community

affaan-m/crosspost

Multi-platform content distribution across X, LinkedIn, Threads, and Bluesky. Adapts content per platform using content-engine patterns. Never posts identical content cross-platform. Use when the user wants to distribute content across social platforms.

community

affaan-m/x-api

X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.

community

affaan-m/content-engine

Create platform-native content systems for X, LinkedIn, TikTok, YouTube, newsletters, and repurposed multi-platform campaigns. Use when the user wants social posts, threads, scripts, content calendars, or one source asset adapted cleanly across platforms.

community