CommunityRédaction et éditiongithub.com

fengyunzaidushi/markmap-skill

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

Compatible avecClaude CodeCodex CLI~Cursor
npx skills add fengyunzaidushi/markmap-skill

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

内容优先 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、包名、术语必须保留英文时才用英文。

Skills associés

forcedotcom/implementing-ui-bundle-file-upload

MUST activate when the project contains a uiBundles/*/src/ directory and the task involves uploading, attaching, or dropping files. Use this skill when adding file upload functionality to a UI bundle app. Provides progress tracking and Salesforce ContentVersion integration. This feature provides programmatic APIs ONLY — build custom UI using the upload() API. ALWAYS use this instead of building file upload from scratch with FormData or XHR.

community

EndlessGr1ef/skill-link

Skill Link — Link your AI agent skills. Browse, preview, and install from skill.sh, official directories, or GitHub — all from one desktop app.

community

Washhouselynchmob496/ai-research-digest

Fetches, ranks, and summarizes the latest AI research papers into clear daily newsletters from trusted sources like arXiv and HuggingFace Papers.

community

joaocarlos/writing-context-rtfm

A MCP extension built on top of rtfm-ai that it acts as a gatekeeper by taking the agent's task, queries the underlying RTFM index, filters out background noise, and packs only the essential and supporting source chunks into a tight contextualized prompt.

community

cromum/human-writing-skill

A Claude Skill that humanises long-form prose by restoring selectivity, risk, and friction — not by adding typos.

community

coreyhaines31/referral-program

When the user wants to create, optimize, or analyze a referral program, affiliate program, or word-of-mouth strategy. Also use when the user mentions 'referral,' 'affiliate,' 'ambassador,' 'word of mouth,' 'viral loop,' 'refer a friend,' 'partner program,' 'referral incentive,' 'how to get referrals,' 'customers referring customers,' or 'affiliate payout.' Use this whenever someone wants existing users or partners to bring in new customers. For launch-specific virality, see launch-strategy.

community