config-setup
Set up or tune .codemap/config.json so Codemap focuses on code-relevant parts of the repo. Use when config is missing,…
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
Claude Code
$ npx -y skills add JordanCoin/codemap --skill codemap --agent claude-code
Codex
$ npx skills add JordanCoin/codemap --skill codemap -a codex -y
Cursor
$ npx skills add JordanCoin/codemap --skill codemap -a cursor -y
Gemini CLI
$ npx skills add JordanCoin/codemap --skill codemap -a gemini-cli -y
GitHub Copilot
$ npx skills add JordanCoin/codemap --skill codemap -a github-copilot -y
OpenCode
$ npx skills add JordanCoin/codemap --skill codemap -a opencode -y
Windsurf
$ npx skills add JordanCoin/codemap --skill codemap -a windsurf -y
name: codemap description: 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 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.
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
Before deeper Codemap analysis in a repo:
1. Check `.codemap/config.json`. 2. If it is missing, clearly boilerplate, or obviously too noisy for the stack, run `codemap skill show config-setup` and follow it. 3. After writing or improving config, rerun `codemap .` and `codemap --deps`.
Treat config as repo memory. Once tuned, future Codemap calls should benefit automatically.
Signals that config needs setup or tuning:
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| Skill | When to Pull | |-------|-------------| | `config-setup` | Missing, boilerplate, or noisy `.codemap/config.json` | | `hub-safety` | Editing files imported by 3+ others | | `refactor` | Restructuring, renaming, moving code | | `test-first` | Writing tests, TDD workflows | | `explore` | Understanding how code works | | `handoff` | Switching between AI agents |
codemap — structural ground truth for coding agents. Resolves what your code actually imports, tells you what breaks if you change it, and is explicit about what it couldn't figure out.
Set up or tune .codemap/config.json so Codemap focuses on code-relevant parts of the repo. Use when config is missing,…
Systematic codebase exploration using codemap's analysis tools. Use when understanding how code works, tracing dependencies, or…
Build and consume handoff artifacts for multi-agent work. Use when switching between Claude, Codex, Cursor, or other AI agents.
Safety checks and procedures when modifying hub files (files imported by 3+ others). Activated when editing files with high…
Safe refactoring with dependency awareness. Use when restructuring, renaming, moving, extracting, or consolidating code.
TDD workflow using codemap's impact analysis. Write tests before implementation, verify with dependency awareness.
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.