Codemap Skill
April 20, 2026 · View on GitHub
Codemap is a custom skill bundled with this repo.
It helps agents quickly build a high-quality mental model of an unfamiliar codebase by generating a structured codemap and tracking changes over time.
What it does
Codemap is designed for repository understanding and hierarchical codemap generation:
- Selects relevant code/config files using LLM judgment
- Creates
.slim/codemap.jsonfor change tracking - Generates
codemap.mdtemplates (per folder) for fixers to fill in - Migrates legacy
.slim/cartography.jsonstate to.slim/codemap.json
How to use
Codemap is installed automatically by the oh-my-opencode-slim installer when custom skills are enabled.
Run it (manual / local)
From a repo root (or with an explicit --root):
# Initialize mapping
node codemap.mjs init --root /repo --include "src/**/*.ts" --exclude "node_modules/**"
# Check what changed
node codemap.mjs changes --root /repo
# Update hashes
node codemap.mjs update --root /repo
Outputs
.slim/codemap.json
A change-tracking file with hashes for files/folders.
codemap.md (per folder)
Empty templates created in each folder so a Fixer-style agent can fill in:
- Responsibility
- Design patterns
- Data/control flow
- Integration points
Screenshot
The existing screenshot lives in img/cartography.png.

Related
src/skills/codemap/README.mdandsrc/skills/codemap/SKILL.mdcontain the skill’s internal docs.codemap.mdat the repo root is an example output/starting point.