From agent-toolkit
Use when creating or updating token-saving source exploration files for any codebase, including SOURCE_MAP.md, CODEBASE_CONTEXT.md, route/schema/component maps, Codesight outputs, and agent instructions for reading less code while still verifying against real source files.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agent-toolkit:codebase-context-mapThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create compact, source-grounded navigation files that help coding agents find the right files before spending tokens on broad repository exploration.
Create compact, source-grounded navigation files that help coding agents find the right files before spending tokens on broad repository exploration.
Keep three layers separate:
| Layer | Purpose | Trust level |
|---|---|---|
docs/SOURCE_MAP.md | Curated routing map for where important code lives | High, but must be kept current |
docs/CODEBASE_CONTEXT.md | Agent reading policy and generated context inventory | Medium |
.codesight/ | Optional generated structural hints from Codesight | Navigation aid only |
Generated maps tell agents where to look. They do not replace reading source files before implementation.
python3 <skill>/scripts/build_context_map.py <project-root>
Use --run-codesight only when Node/npx is available and the project owner wants .codesight/ output refreshed:
python3 <skill>/scripts/build_context_map.py <project-root> --run-codesight
If the project owner wants Codesight installed or wired into MCP/watch/hook workflows, read references/codesight-install.md first.
docs/SOURCE_MAP.md and docs/CODEBASE_CONTEXT.md.## Manual Notes section, not generated sections.python3 <skill>/scripts/validate_context_map.py <project-root>
AGENTS.md or CLAUDE.md at the generated files and instruct agents to read SOURCE_MAP.md first.SOURCE_MAP.md should stay selective. Include files agents would otherwise waste time rediscovering:
Do not list every file. If a directory name already explains itself, prefer one directory row over many file rows.
Read references/codesight-policy.md before wiring Codesight into a project convention. In short:
.codesight/wiki/index.md before .codesight/CODESIGHT.md.codesight/CODESIGHT.md only for broad architecture explorationreferences/output-structure.md - target file layout and ownership boundariesreferences/source-map-rules.md - curation and update rules for SOURCE_MAP.mdreferences/codesight-policy.md - safe use of generated Codesight outputreferences/codesight-install.md - optional Codesight install, refresh, MCP, and CI setupCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub hsryuuu/agent-toolkit --plugin agent-toolkit