codemap
БесплатноБез исполняемых скриптовНе проверенAnalyze codebase structure, dependencies, changes, cross-agent handoffs, and get code-aware intelligence. Use when user asks about project structure, where…
Об этом скилле
Codemap
Codemap gives you instant architectural context about any codebase. It classifies your intent, detects risk, matches relevant skills, and tracks your working set, all automatically via hooks.
Codemap should also keep its own per-project config healthy. On first use in a repo, or when output is obviously noisy, tune .codemap/config.json before doing deeper analysis so future calls stay code-first instead of asset-first.
Commands
codemap . # Project structure and top files
codemap --deps # Dependency flow (imports/functions/hubs)
codemap --diff # Changes vs main branch
codemap --diff --ref <branch> # Changes vs specific branch
codemap --importers <file> # Who imports this file? Is it a hub?
codemap find "<query>" # Where is X defined (names first, then body text); grep exact symptoms
codemap handoff . # Build + save handoff artifact
codemap handoff --latest . # Read latest saved handoff
codemap handoff --json . # Machine-readable handoff payload
codemap skill list # Show available skills with descriptions
codemap skill show <name> # Get full skill instructions
codemap skill init # Create custom skill template
codemap skill export <dir> # Write every builtin as <dir>/<name>/SKILL.md for a host
codemap config show # Show current project config
codemap context # Universal JSON context envelope
codemap context --for "prompt" # With pre-classified intent + matched skills
codemap context --compact # Minimal for token-constrained agents
codemap serve --port 9471 # HTTP API for non-MCP integrations
First-Use Setup
Before deeper Codemap analysis in a repo:
- Check
.codemap/config.json. A repo with no.codemap/folder was never set up: leave it that way unless the user asks (codemap keeps its state outside the repo). - If it is missing, clearly boilerplate, or obviously too noisy for the stack, run
codemap skill show config-setupand follow it. - After writing or improving config, rerun
codemap .andcodemap --deps.
Treat config as repo memory. Once tuned, future Codemap calls should benefit automatically.
Signals that config needs setup or tuning:
.codemap/config.jsonis missing- config only contains generic auto-detected
onlyvalues with no real project shaping - large non-code directories dominate the tree output
- stack-specific noise is overwhelming source structure (
.xcassets, screenshots, PDFs, training-data, fixtures, generated files, models, vendor directories) - the repo stack is obvious, but the config does not reflect it
When to Use
ALWAYS run codemap . when:
- Starting any new task or feature
- User asks "where is X?" or "what files handle Y?"
- User asks about project structure or organization
- You need to understand the codebase before making changes
ALWAYS run codemap --deps when:
- User asks "how does X work?" or "what uses Y?"
- Refactoring or moving code
- Need to trace imports or dependencies
- Finding hub files (most-imported)
ALWAYS run codemap --diff when:
- User asks "what changed?" or "what did I modify?"
- Reviewing changes before commit
- Summarizing work done on a branch
ALWAYS run codemap --importers <file> when:
- About to edit a file: check if it's a hub
- Need to know the blast radius of a change
- Deciding whether to refactor or leave alone
Run codemap skill show <name> when:
- The prompt-submit hook shows matched skills in
<!-- codemap:skills [...] --> - You need guidance for a specific task (hub editing, refactoring, testing)
- Risk level is medium or high
Run codemap skill show config-setup when:
- The repo has no
.codemap/config.json - The config looks like a bare bootstrap and not a real project policy
- Codemap output is cluttered by large non-code directories
- You want Codemap to make better future decisions for this specific repo
Run codemap context when:
- Piping codemap intelligence to another tool
- Need a structured JSON summary of the project state
- Building automation that consumes code-aware context
Run codemap handoff when:
- Switching between agents (Claude, Codex, Cursor)
- Resuming work after a break
- User asks "what should the next agent know?"
Hook Output
The prompt-submit hook fires on every message and provides:
<!-- codemap:intent {"category":"refactor","risk":"high",...} -->
<!-- codemap:skills [{"name":"hub-safety","score":5},...] -->
Skills matched: hub-safety, refactor - run `codemap skill show <name>` for guidance
- Intent categories: refactor, bugfix, feature, explore, test, docs
- Risk levels: low (no hubs), medium (1 hub), high (2+ hubs or 8+ importers)
- Skills are pull-based: only names are shown, run
codemap skill showfor full body - Suggestions print only for a named file with dependency evidence; otherwise the marker
Установить codemap в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл codemap?
Analyze codebase structure, dependencies, changes, cross-agent handoffs, and get code-aware intelligence. Use when user asks about project structure, where code is located, how files connect, what changed, how to resume work, before starting any coding task, when you need risk analysis and skill guidance, or when Codemap should tune project config before analysis.
Как установить скилл codemap?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл codemap запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic