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.
Codemap is designed for repository understanding and hierarchical codemap generation:
.slim/codemap.json for change trackingcodemap.md templates (per folder) for fixers to fill in.slim/cartography.json state to .slim/codemap.jsonCodemap is installed automatically by the oh-my-opencode-slim installer when custom skills are enabled.
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
.slim/codemap.jsonA 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:
The existing screenshot lives in img/cartography.png.
src/skills/codemap/README.md and src/skills/codemap/SKILL.md contain the skill’s internal docs.codemap.md at the repo root is an example output/starting point.