Map Corpus
Verified, classified map of a multi-resource documentation corpus (a docs site, several URLs, a spec repository), ending in an approved queue for…
от melodic-software★ 34 звезды на GitHub
Установить Map Corpus в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Map Corpus
Arguments. <topic> <seed-url> [more-seed-urls...] [--epic <slug>] [--max-resources N]. Full form: <topic> <seed-url> [more-seed-urls...] [--epic <slug>] [--max-resources N] [--granularity deep|section] [--include <glob>...] [--exclude <glob>...]
Turn a topic plus seed URLs into a corpus slice that proves what was read: every discovered URL
classified, every in-corpus resource decomposed by a deterministic script into a node manifest,
every node carrying a relevance verdict backed by a byte-verified quote. The mapper supplies
the layer docpage-digest names as its own non-goal ("Does not crawl. One page per run")
without reimplementing, renaming, or modifying it.
The failure this skill exists to prevent: an agent handed a multi-page corpus glosses content and asserts it read everything. Here the denominators are never the agent's. Scripts emit the URL set from discovery snapshots and the node set from resource snapshots, and script gates diff the agent's classifications and verdicts against both.
Prerequisite (declared at point of use): python3 (3.9+) on PATH for the bundled scripts
under this skill's discovery/, extraction/, and verification/ directories. Missing Python
means say so and stop. There is no agent-judgment fallback for a deterministic denominator.
Arguments
<topic>: short phrase naming the corpus; slugified into the slice name.<seed-url>...: one or more starting URLs.--epic <slug>, the epic under the work root (default: the topic slug).--max-resources N, the in-corpus bound declared in the link map (default 30). A breach stops the run and re-asks; it never silently proceeds.--granularity deep|section. Judgment granularity, never row granularity: the inventory always carries exactly one row per manifest node (the gate's coverage invariant).deep(default) judges each node independently;sectionlets child rows inherit their top-level section's verdict/rationale (viaparent_id), each keeping its own in-node evidence quote. Granularity and depth are per-invocation arguments by design, notuserConfig.--include <glob>/--exclude <glob>(repeatable): the repository paths a repository seed enumerates. A repository seed needs at least one--include.**spans directories;*and?stay inside one path segment.
Work root
The work root follows the knowledge plugin's one rule, ${CLAUDE_PLUGIN_ROOT}/reference/work-root.md
(not memory_dir, not .claude/, not ${CLAUDE_PLUGIN_DATA}), so this skill and
/knowledge:docpage-digest write under one root. Resolve it once, before the first write, from the
session's working directory, and record the printed absolute path in the checklist; a non-zero exit
(an unset variable in the value) fails the run:
node "${CLAUDE_PLUGIN_ROOT}/scripts/work-root.mjs" --library-dir '${user_config.library_dir}'
The slice lands at <resolved-root>/.work/<epic>/<slug>/, and every corpus artifact this skill
writes stays inside the library_dir seam: nothing lands under the consuming repo's memory_dir,
and topic slices hold pointers to corpus content, never the corpus itself. Exactly two levels below .work/, never deeper: the
artifact protocol's slice tree recurses freely, but the two-level <epic>/<slug>/ shape is this skill's
own contract, because the seed-hash slug needs one stable home per topic and seed set. Inside the
seam the tree is shape-unified to the artifact protocol's slice and INDEX.md rules. The root self-ignores
(a .gitignore containing *); nothing this skill writes is ever committed. Graduating any artifact to a
tracked repo is a separate, human-gated act. <slug> is the slugified topic plus -<hash8>, the
first 8 hex of the SHA-256 of seeds.txt: the sorted, normalized seed list, followed, when a
repository seed is present, by one include <glob> line per sorted --include and one
exclude <glob> line per sorted --exclude. A repository seed's globs decide its URL set as much
as the seed does, so the same topic, seeds and globs resume one slice, and different seed sets or
different globs never share one.
Collision check, before the first write. If the slice directory exists, read the Seeds
line, and for a repository seed the Include and Exclude lines, from its
map-corpus-checklist.md: same normalized seed set and same sorted globs → resume from the first
unticked phase; different seeds, different globs, or no checklist → refuse and stop, naming both. Existing
discovery/ and resources/*/source.* snapshots are immutable originals, never re-fetch over.
Slice layout:
<slice>/
map-corpus-checklist.md # canonical seeds, repo globs, resolved root, phase ticks
seeds.txt # sorted normalized seeds + repo globs (the slug-hash input)
discovery/ # rung snapshots + parse_discovery outputs
link-map.json # classified map (gate-checked, user-appr
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Workflow(knowledge:docpage-digest-batch)
Вложенные файлы
- discovery/check_linkmap.py
- discovery/link-map-format.md
- discovery/parse_discovery.py
- discovery/repo_tree_adapters.py
- discovery/test_discovery.py
- evals/evals.json
- extraction/extract_nodes.py
- extraction/node-manifest-format.md
- extraction/test_extract_nodes.py
- lib/gate_common.py
- verification/check_inventory.py
- verification/inventory-format.md
- verification/test_check_inventory.py
FAQ
Что делает скилл Map Corpus?
Verified, classified map of a multi-resource documentation corpus (a docs site, several URLs, a spec repository), ending in an approved queue for /knowledge:docpage-digest. Use when the user gives a topic with seed URLs spanning more than one page, or asks to map or digest a whole docs site. One page goes to /knowledge:docpage-digest.
Как установить скилл Map Corpus?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Map Corpus запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…