Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add galiacheng/mindmap-skills --skill mindmap-zhgit clone --depth 1 https://github.com/galiacheng/mindmap-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/galiacheng/mindmap-skills/mindmap-zh)<a href="https://agentmods.dev/skills/galiacheng/mindmap-skills/mindmap-zh"><img src="https://agentmods.dev/badge/skills/galiacheng/mindmap-skills/mindmap-zh/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/galiacheng/mindmap-skills/mindmap-zh"><img src="https://agentmods.dev/badge/skills/galiacheng/mindmap-skills/mindmap-zh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00032 | $0.01915 |
| Opus 5 | $0.00016 | $0.00958 |
| Sonnet 5 | $0.00006 | $0.00383 |
| Haiku 4.5 | $0.00003 | $0.00192 |
Grade A, and why
mindmap-zh scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.
思维导图技能 — 生成可交互的 Markmap
触发方式
/mindmap-zh <输入> [--render] [--output <路径>]
<输入> 为以下之一:
- 文件路径 — 读取该文件并生成导图
- URL(
http://或https://)— 抓取页面内容并生成导图 - 粘贴的文本 / 笔记 — 直接对文本生成导图
- 一个简短的主题 — 基于模型自身知识生成导图
参数:
--render— 写出.md后,额外生成一个独立的可交互.html--output <路径>— 将.md写到指定路径,而非默认路径
跨平台说明: 本技能使用 Claude Code 的工具名(
Read、Write、Glob、Bash、WebFetch)。在 GitHub Copilot CLI 上请使用对应工具(view、create、glob、bash、web_fetch)——见references/copilot-tools.md。两个平台上的工作流完全一致。
工作流
第 1 步:判定输入类型
先去除参数,再对剩余部分分类并加载内容:
- 若是 URL(以
http://或https://开头),用 WebFetch 抓取(要求其返回页面正文)。抓取到的内容即为内容。优先判断此项,先于文件/文本/主题规则。 - 否则,若是一个已存在文件的路径,用 Read 读取。其内容即为内容。
- 否则,若是较长或多行的文本(大致 > 12 个词,或包含换行),按原始文本处理。该文本即为内容。
- 否则按主题处理:基于模型自身知识生成内容。
遇到以下情况,停下来询问用户(切勿擅自猜测):
- URL 抓取失败(网络错误、被拦截、或页面为空)→ 报告情况并询问:是否改为基于自身知识对该页面主题生成导图,或换一个 URL?不要凭空编造页面内容。
- 看起来像文件路径(以
.md/.txt结尾,或包含/或\)但文件不存在 → 报告未找到文件:<路径>,并询问:改为按主题生成,还是修正路径? - 输入为空或仅有空白字符 → 请用户提供内容或主题。
- 输入确实有歧义(一个既可能是文本、也可能是主题的短语)→ 默认按主题生成,并用一句话说明你的假设,以便用户纠正。
第 2 步:构建层级结构(混合策略)
将内容转化为节点层级:
- 若内容本身已有结构(清晰的标题 / 项目符号大纲):沿用其大纲,但把每个节点压缩为简短短语(≤ 约 8 个字词)。不要逐句照抄。
- 若内容是无结构的文本或一个主题:提取关键概念,归纳为 4–7 个主分支,每个分支配简洁的子要点。
规则:
- 深度: 目标 3–4 层。
- 用短语而非句子: 每个节点都是简短标签。
- 可读性优先于完整性: 对篇幅很大的来源,映射其结构与要点——而非每一行。对无结构/主题/大型来源,目标 4–7 个主分支;当来源本身已有结构时,则沿用其自身大纲。大胆精简。
第 3 步:写出 Markmap .md
按下文 Markmap 格式 所示的样式写出文件。
输出路径:
- 文件输入
foo.md→foo.mindmap.md(同目录)。 - URL 输入 → 取页面标题的 slug(或 URL 最后一段路径)→ 当前目录下的
<slug>.mindmap.md。 - 文本输入 → 取导图 H1 标题的 slug → 当前目录下的
<slug>.mindmap.md(slug 规则同主题)。 - 主题输入 → 当前目录下的
<主题-slug>.mindmap.md(slug = 小写,空格 →-)。 --output <路径>覆盖默认路径,按所给值写出。- 写入前,用 Glob 检查目标是否已存在。 若已存在,在
.mindmap.md前插入计数 —<名称>-2.mindmap.md、再<名称>-3.mindmap.md……取第一个未被占用的名称。显式--output路径同样适用此后缀规则。切勿静默覆盖已有文件。
写入后,告诉用户确切路径以及查看方式:在 https://markmap.js.org 打开,或使用 VS Code 的 “Markmap” 扩展。
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 141 lines · 32 tokens per session scan A b242a4c7cbbe
mindmap-zh is a skill published in the GitHub repository galiacheng/mindmap-skills (16 stars, last pushed 2mo ago), licensed MIT. It adds 32 tokens to every session and 1,915 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
post-dev-recap
Post-development recap wrapper. Use when: AI/Codex just finished implementing a feature and the user wants a guided walkthrough with scope detection + doc generation + follow-up Q&A. Not for: generating only a doc (use /recap-doc), Q&A over an existing recap (use /recap-ask), technical share-out (use /tech-brief)…
obsidian-cli
Obsidian vault integration via official CLI. Use when: capturing dev artifacts to Obsidian vault, searching vault for context, appending to daily note, managing tasks in vault. Not for: general note-taking without Obsidian (use regular files), browsing Obsidian docs (use agent-browser). Output: vault search results…
statusline-config
Customize Claude Code statusline. Use when: user says 'statusline', 'status line', 'customize statusline', 'modify statusline', 'statusline settings', 'statusline theme', 'change theme', 'color scheme', wants to add/remove/change segments (cost, git, model, context), switch color themes (catppuccin, dracula, nord), or…
drive-me
Diagnose personal execution friction and convert a vague, stalled, or over-scoped goal into one bounded next-action plan with explicit scope, non-goals, acceptance criteria, and a lightweight feedback loop. Use when the user asks for help restarting work, overcoming procrastination, choosing what to do next, reducing…
obsidian-bases
Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.
obsidian-cli
Interact with Obsidian vaults using the Obsidian CLI to read, create, search, and manage notes, tasks, properties, and more. Also supports plugin and theme development with commands to reload plugins, run JavaScript, capture errors, take screenshots, and inspect the DOM. Use when the user asks to interact with their…