mindmapper
Collapsible read-only mind maps on the canvas from .mindmap.ts files kept with the docs: each map is code returning m.map(centre, [m.b(text, children, { fold…
от hyper-code-harness★ 22 звезды на GitHub
Установить mindmapper в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Mindmapper
A map is a .mindmap.ts file anywhere in the project next to the docs it belongs to (e.g. docs/hyper.mindmap.ts),
committed and pushed with them. It is not a runtime function: it is imported anonymously when opened.
A map is executed when it is opened (with full ctx). Before opening a map you did not write — pulled from git, sent by someone, found in another project — read its .mindmap.ts first, like any other code you are about to run. A plain map is only m.map / m.b calls with string literals; anything else (imports, ctx.fns calls, fetch, Bun.*, file or shell access) deserves a careful look before opening.
export default function (ctx: Context, m: types.mindmapper.Scope) {
return m.map("Hyper", [
m.b("Агенты", [m.b("delegate"), m.b("team")], { doc: "agent-handbook.md" }),
m.b("Данные", [m.b("Postgres")], { fold: true, doc: "architecture.md#database" }),
]);
}
- Open:
canvas.show({ kind: "mindmapper.map", args: { path: "docs/hyper.mindmap.ts" } }). The tab follows the file. - Read:
mindmapper.load({ path })→{ root, version, error? };versionis the sha-256 of the file. - Write a plain tree:
mindmapper.write({ path, root, baseVersion })— refused if the file changed sincebaseVersion(omit it only to create a new file); atomic. Saving is not committing: commit and push with the docs. - Computed maps (loops, data, other
ctx.fns) are fine: write the file by hand. - Articles:
docis a.md/.htmlpath relative to the map, optional#heading. Paths must stay inside the project, never through hidden files orsrc//node_modules.mindmapper.doc({ map, doc })returns the text and the safe html: Markdown is rendered without fence renderers and all html is sanitized, so an article never runs code. - Find maps:
mindmapper.list({})→[{ path, bytes, mtime }](does not run them). - On the canvas the map is read-only: click selects, the dot or Space folds (Shift — the whole subtree),
1–3/∞in the bar (or keys 1–9) show that many levels,⤵toggles one-level unfolding; fold state stays in the browser./searches branches (hits ringed, folded parents open, Enter/Shift+Enter walk them). The article icon, a double click or Enter opens the article in a popup over the page:‹ ›or ←/→ step through articles in map order, links to other .md/.html open in the same popup, relative images are served from the project (/mindmapper/asset), a missing .md offers "Создать" (writes# <branch>). Esc or a click outside closes. - Addresses: the page keeps
#node=<texts from the centre, " / ">&doc=1in its URL; 🔗 copies a link to the selected branch. The canvas tab gets the same as its state (node,doc), so the agent sees what is selected. Every branch hasdata-widget-id="<map>.b<path>".
Design: maps as documents (proposed, under review)
Status: implemented with the decision at the end (maps stay code; the canvas became read-only, so there is no canvas save).
Why
A mind map is content, not platform code. Today maps live in one directory (mindmapper.root, default
mindmaps/ in the repo) and are addressed by bare name. They should behave like Markdown: live anywhere next to
the docs they belong to (docs/, a plugin, project memory), be committed and pushed with them, have versions, and
link to longer articles.
1. Address by path, not by name
- A map is any file ending in
.mindmap.ts, addressed as{ path }(relative to the workspace/project root, or absolute), optionally{ path, host }later.{ name }stays as a shortcut that resolves insidemindmapper.root. - Canvas:
canvas.show({ kind: "mindmapper.map", args: { path: "docs/hyper.mindmap.ts" } }); page routeGET /mindmapper/map?path=…, savePOST /mindmapper/map?path=…. - Allowed roots: the project root and
~/.hyper/memory/**levels the agent can see. Paths outside are refused;..and symlink escapes are resolved and checked (realpath must stay inside an allowed root). mindmaps/hyper.mindmap.tsmoves todocs/hyper.mindmap.ts.
2. Maps are not functions
.mindmap.tsis not picked up by the procs scanner (already true: it is not undersrc/), not bycode.index, genTypes orcode.quality. The name suffix is the marker; docs folders are never scanned as code.- The file keeps its TS shape —
export default function (ctx, m) { return m.map(…) }— so it type-checks in an editor and reads like an outline.
3. Two ways to load: data or code ("anonymous" load)
- Plain map — the file is exactly what
mindmapper.formatwould write (onlym.map/m.bcalls with string literals and{ fold, doc }options). It is parsed as data, never executed: a small parser over the TypeScript AST (Bun.Transpiler/TS compiler API) accepts only that grammar. This is the case for everything edited on the canvas and for maps that arrive throughgit pullfrom other people.editable: true.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- assets/client.js
- assets/map.css
- package.json
- src/mindmapper/$canvas_map.ts
- src/mindmapper/$route_asset_GET.ts
- src/mindmapper/$route_doc_GET.ts
- src/mindmapper/$route_doc_POST.ts
- src/mindmapper/$route_map_GET.ts
- src/mindmapper/Node.ts
- src/mindmapper/Scope.ts
- src/mindmapper/doc.ts
- src/mindmapper/file.ts
- src/mindmapper/format.ts
- src/mindmapper/list.ts
- src/mindmapper/load.ts
- src/mindmapper/mindmapper.test.ts
- src/mindmapper/page.ts
- src/mindmapper/write.ts
FAQ
Что делает скилл mindmapper?
Collapsible read-only mind maps on the canvas from .mindmap.ts files kept with the docs: each map is code returning m.map(centre, [m.b(text, children, { fold, doc })]); branches open their .md/.html article in a popup.
Как установить скилл mindmapper?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mindmapper запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…