Cartography 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.
Cartography is designed for repository understanding and hierarchical codemap generation:
.slim/cartography.json for change trackingcodemap.md templates (per folder) for explorers to fill inCartography 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
python3 cartographer.py init --root /repo --include "src/**/*.ts" --exclude "node_modules/**"
# Check what changed
python3 cartographer.py changes --root /repo
# Update hashes
python3 cartographer.py update --root /repo
.slim/cartography.jsonA change-tracking file with hashes for files/folders.
codemap.md (per folder)Empty templates created in each folder so an Explorer-style agent can fill in:
The existing screenshot lives in img/cartography.png.
src/skills/cartography/README.md and src/skills/cartography/SKILL.md contain the skill’s internal docs.codemap.md at the repo root is an example output/starting point.