maplisted
Install: claude install-skill duthaho/skillhub
# map — orient the agent to an unfamiliar codebase
`/map` — map the whole repo into a lean AGENTS.md at its root
`/map <subsystem>` — deep-map one area, into a scoped section
`/map refresh` — re-check an existing map and update only what went stale
Answer one question: **what would a competent engineer need to know before
touching this repo — and nothing more?** The strongest lever in agentic coding
isn't a smarter model, it's better orientation: an agent that knows the entry
points, the build commands, and the load-bearing conventions makes the right
change; one that guesses edits the wrong layer.
## Step 0 — Scope, and respect what exists
First, look before generating:
- **Existing agent files?** Check for `AGENTS.md`, `CLAUDE.md`, `.cursor/rules`,
`.github/copilot-instructions.md`. If one exists, this is a **REFRESH**, not a
fresh write — read it, and update in place rather than duplicating. If a
`CLAUDE.md` already carries the knowledge, offer to have `AGENTS.md` `@import`
it instead of restating it. If the existing map carries a stamp and HEAD has
moved past it, state the drift in one line when naming the mode — "map is N
commits behind (touched: X, Y)" via `git rev-list --count` +
`git diff --stat` over `<stamped-commit>..HEAD` — and offer the refresh
unless this run already is one. A stamp that no longer resolves (rebase,
shallow clone) is itself the staleness signal: report it and offer a fresh
map. Staleness surfaces at every touch, never onl