map-it · git:20261020.30680b3 · 2026-10-20 · sha256 afe6bc5b016ae9c7
map-it git:20261020.30680b3A
Immutable. This exact content never changes and is served at /api/v1/blob/afe6bc5b016ae9c7.
No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_x7x2fpawbpnnznll/afe6bc5b016ae9c7dc99d5b91bff3b19e57958f33795f8d2c923c574bfc4351b.json
Then /plugin install map-it@markdownregistry-x7x2fpawbpnnznll in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.
---
name: map-it
description: Map an existing codebase or one area of it, as reference docs under docs/reference/ or as a map in chat, so later planning and review start from facts. Use when onboarding to an unfamiliar repo, when asked how something is structured or where something lives, before planning work in an area nobody has mapped, or when docs/reference/ is stale.
argument-hint: "[path or area] [--chat]"
---
# map-it
Read-only for code. Describes what is, not what should be: judgement
(debt, gaps, risks) belongs to `sweep-it`; structural proposals belong to
`deepen-it`.
## Modes
| Invocation | Writes | Use for |
|------------|--------|---------|
| `/map-it` | `docs/reference/` for the whole repo | First map of a repo, or a full refresh |
| `/map-it <path or area>` | The area's `CONTEXT.md` and map row, and only the pages and sections that area touches | Before planning in that area; after it changed |
| `/map-it <area> --chat` | Nothing; the map goes in chat | A quick zoom-out: how does this fit together |
A model-invoked run (someone asked "how does X work?") defaults to `--chat`.
Write files only when the user asked for docs or ran `/map-it` directly.
## 1. Scope
- Read the context map (`CONTEXT-MAP.md`), then the area's `CONTEXT.md`
(the area for a path is found as name-it's
[CONTEXT-FORMAT.md](../name-it/CONTEXT-FORMAT.md) says), then `docs/adr/`
and any existing `docs/reference/`. Refresh, do not rewrite, what is still
true.
- Huge repo with no area named: map the top level (module map, entry points)
and say which areas deserve their own `/map-it <area>` run.
## 2. Explore
With a host that has an exploring subagent, send it with the scope and
[LAYOUT.md](LAYOUT.md) as the brief, very thorough, and work from its
findings; otherwise explore in the main context. Find:
- modules and what each is responsible for, with paths;
- entry points: routes, CLIs, jobs, workers, public APIs, `main` paths;
- how data flows in, where it is stored, what goes out;
- where tests live, what kinds exist, how they are run;
- the build, lint, format, type-check and test commands: take them from the
`Commands:` line in `AGENTS.md` (setup-it writes it) and only discover
them when it is missing.
Confirm in the code anything a doc or comment claims. Mark what could not be
confirmed `*(unverified)*`.
## 3. Write
Follow [LAYOUT.md](LAYOUT.md). Use the terms in the area's context; list
domain words the code uses that it lacks under **Term gaps** in `domains.md`
(offer them to `name-it`, do not add them here). Write the index
(`docs/reference/README.md`) last, with the date and the scope mapped.
With an area named, also write the area's `CONTEXT.md` per
[CONTEXT-FORMAT.md](../name-it/CONTEXT-FORMAT.md): Identity, Key
relationships, Key files and Design notes, from what the explore pass
confirmed. Terms belong to `name-it`: keep that section as it is. An existing
file is refreshed section by section; a new one is created with its map row
(and the map itself when this is the first area below the root). Update the
row's Location and Scope when they changed.
### Drift
Every run, `--chat` included, compares the map with the files on disk: the
`CONTEXT.md` files the map does not list, and the rows whose file is
missing. A write-mode run adds the missing rows (Scope from the file's
Identity, else its first paragraph, after this run's writes); it never
deletes a row. Report both lists under Not checked.
`--chat`: the same content, condensed: a module table with paths, the main
flow in a few lines, where to start reading. No files.
## 4. Close
> Mapped <scope> (<N> pages). **Next:** `/sweep-it <scope>` to look for
> problems, or `/do-it "<change>"` to build in it.
Skipped / Not checked: the areas not read, anything marked unverified, and
the drift lists (rows added; rows whose file is missing, for the user to
decide).
## Rules
- `--chat` writes nothing, not even a context file or a map row.
- No code edits, no judgement words ("messy", "should"), no findings.
- Never paste secrets, tokens or `.env` values into a map.
- Every section that names a module gives at least one path.