mindmap-zh

mindmap-zh is a skill for Claude Code from galiacheng/mindmap-skills. It costs 32 tokens per session (1,915 once invoked), scanned A, original, MIT.

A Chinese-language skill that creates interactive Markmap mind maps from files, web pages, pasted text, notes, or a topic. Markmap is a format that turns Markdown outlines into expandable mind maps.

In plain words
What is it for?
Use it to fetch a URL, read a local file, or process text and produce a Markdown mind map, with an optional standalone interactive HTML file.
Why use it?
It turns source material or a short subject into a visual outline, making relationships and hierarchy easier to inspect.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

Part of the mindmap plugin — 2 skills shipped together

Good fit Use it to fetch a URL, read a local file, or process text and produce a Markdown mind map, with an optional standalone interactive HTML file.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/galiacheng/mindmap-skills/mindmap-zh
Install

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.

Any agent
npx skills add galiacheng/mindmap-skills --skill mindmap-zh
Clone the repo
git clone --depth 1 https://github.com/galiacheng/mindmap-skills

Made for: Claude Code.

Or install mindmap, the plugin that ships this one along with the rest of its 2 skills.

Wrote 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.

agentmods badge for mindmap-zh

README.md
[![agentmods](https://agentmods.dev/badge/skills/galiacheng/mindmap-skills/mindmap-zh/github.svg)](https://agentmods.dev/skills/galiacheng/mindmap-skills/mindmap-zh)
Your own site
<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.

agentmods 80×15 button for mindmap-zh

Your own site · 80×15
<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>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,915 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 9d ago against content hash b242a4c7cbbe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/render.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/mindmap-zh/SKILL.md · 141 lines

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 <路径>]

<输入> 为以下之一:

  • 文件路径 — 读取该文件并生成导图
  • URLhttp://https://)— 抓取页面内容并生成导图
  • 粘贴的文本 / 笔记 — 直接对文本生成导图
  • 一个简短的主题 — 基于模型自身知识生成导图

参数:

  • --render — 写出 .md 后,额外生成一个独立的可交互 .html
  • --output <路径> — 将 .md 写到指定路径,而非默认路径

跨平台说明: 本技能使用 Claude Code 的工具名(ReadWriteGlobBashWebFetch)。在 GitHub Copilot CLI 上请使用对应工具(viewcreateglobbashweb_fetch)——见 references/copilot-tools.md。两个平台上的工作流完全一致。

工作流

第 1 步:判定输入类型

先去除参数,再对剩余部分分类并加载内容:

  1. 若是 URL(以 http://https:// 开头),用 WebFetch 抓取(要求其返回页面正文)。抓取到的内容即为内容。优先判断此项,先于文件/文本/主题规则。
  2. 否则,若是一个已存在文件的路径,用 Read 读取。其内容即为内容。
  3. 否则,若是较长或多行的文本(大致 > 12 个词,或包含换行),按原始文本处理。该文本即为内容。
  4. 否则按主题处理:基于模型自身知识生成内容。

遇到以下情况,停下来询问用户(切勿擅自猜测):

  • URL 抓取失败(网络错误、被拦截、或页面为空)→ 报告情况并询问:是否改为基于自身知识对该页面主题生成导图,或换一个 URL?不要凭空编造页面内容。
  • 看起来像文件路径(以 .md/.txt 结尾,或包含 /\)但文件不存在 → 报告 未找到文件:<路径>,并询问:改为按主题生成,还是修正路径?
  • 输入为空或仅有空白字符 → 请用户提供内容或主题。
  • 输入确实有歧义(一个既可能是文本、也可能是主题的短语)→ 默认按主题生成,并用一句话说明你的假设,以便用户纠正。

第 2 步:构建层级结构(混合策略)

将内容转化为节点层级:

  • 若内容本身已有结构(清晰的标题 / 项目符号大纲):沿用其大纲,但把每个节点压缩为简短短语(≤ 约 8 个字词)。不要逐句照抄。
  • 若内容是无结构的文本或一个主题:提取关键概念,归纳为 4–7 个主分支,每个分支配简洁的子要点。

规则:

  • 深度: 目标 3–4 层。
  • 用短语而非句子: 每个节点都是简短标签。
  • 可读性优先于完整性: 对篇幅很大的来源,映射其结构与要点——而非每一行。对无结构/主题/大型来源,目标 4–7 个主分支;当来源本身已有结构时,则沿用其自身大纲。大胆精简。

第 3 步:写出 Markmap .md

按下文 Markmap 格式 所示的样式写出文件。

输出路径:

  • 文件输入 foo.mdfoo.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” 扩展。

Read the full file on GitHub · 141 lines

Files

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.

Changes

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.

  1. 9d ago First seen · 141 lines · 32 tokens per session scan A b242a4c7cbbe

Subscribe to this mod's changes

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.

Related

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)…

sd0xdev/sd0x-harness · 124 tokens

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…

sd0xdev/sd0x-harness · 78 tokens

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…

sd0xdev/sd0x-harness · 92 tokens

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…

arch3rPro/ark-space · 103 tokens

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.

arch3rPro/ark-space · 63 tokens

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…

arch3rPro/ark-space · 102 tokens