/do-it:map-codebasefrom do-it
Maps an existing codebase into 7 structured files (stack, integrations, architecture, structure, conventions, testing, concerns) using parallel subagents. Detects and migrates prior planning state. Run via /do-it:map.
Ships in do-it. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Build .do-it/codebase/ so every later command reads the project instead of re-discovering it.
The orchestrator never reads the mapped documents. Subagents write to disk and return only paths + line counts. That keeps the main session clean for the work that follows.
Exactly 7 files at .do-it/codebase/, grouped by the focus that owns them:
| Focus | Files |
|---|---|
| tech | STACK.md, INTEGRATIONS.md |
| arch | ARCHITECTURE.md, STRUCTURE.md |
| quality | CONVENTIONS.md, TESTING.md |
| concerns | CONCERNS.md |
Headings, content templates, and the required frontmatter live in ${CLAUDE_PLUGIN_ROOT}/references/map-templates.md. Pass that path to each subagent; do not read it yourself. The frontmatter carries last_mapped_commit, so --refresh detects drift cheaply.
| Found | Means |
|---|---|
.planning/codebase/*.md | GSD |
docs/superpowers/specs/*.md or .../plans/*.md | Superpowers |
.do-it/plan.json, no .do-it/specs/ or .do-it/changes/ | Ralph Loop v0.1 |
.do-it/specs/ or .do-it/changes/ | Current Do-it — this run is a refresh |
Prior state and --migrate (or the user's first /do-it:map on that project) → follow ${CLAUDE_PLUGIN_ROOT}/references/migrations.md, then continue.
Prior state, no --migrate → stop and say:
Prior planning state detected at {paths}. Run
/do-it:map --migrateto convert, or move/delete that directory first. Refusing to overwrite.
.do-it/codebase/ present with valid frontmatter → AskUserQuestion: Refresh (regenerate all 7), Update (only files changed since last_mapped_commit), Skip (exit).
Task tool available? If not, run the focus areas sequentially in this context — same output, no parallelism. Never substitute Explore or browser_subagent.--fast, --focus, --paths, --refresh.--paths value. Reject any containing .., a leading /, or any of ; ` $ & | < >. Resolve the rest relative to repo root.git rev-parse HEAD for frontmatter.subagent_concurrency from .do-it/specs/_meta.json (default 4) — it caps dispatch width.PATH_SCOPE_HINTPassed verbatim to every subagent. --paths:
Restrict Glob/Grep to these prefixes only: {p1}/ {p2}/ — files outside them are OUT OF SCOPE for this run.
--refresh:
Restrict to files changed since {last_mapped_commit}:
git diff --name-only {last_mapped_commit}..HEAD. Unchanged files are already mapped; do not re-map them.
Neither flag → empty.
Steps 1–3 above stay here regardless. They need a human — prior-state detection, the Refresh/Update/Skip question, the migration confirmation — and a background run cannot prompt.
Workflow branch. On a bare /do-it:map, when all five hold:
Workflow tool is available and workflows/probe.js has passed on this host;${CLAUDE_PLUGIN_ROOT} to a literal absolute path;Workflow({ scriptPath: "<PLUGIN_ROOT>/workflows/map-codebase.js",
args: { pluginRoot, headSha, mappedAt, scope, focus, pathScopeHint,
subagentConcurrency, knowledgeMaintenance, migrated, backup } })
Compute every value in args here, before the dispatch. The script has no clock and no filesystem. It buys two things the Task path cannot · a schema enforces the return shape, in place of a prose block · CONCERNS.md runs on a deeper tier than the manifest-reading focuses. The contract lives in ${CLAUDE_PLUGIN_ROOT}/references/workflow-dispatch.md.
Task branch (default, and the fallback for everything above).
One subagent per focus. Dispatch all four in ONE message so they run in parallel. If subagent_concurrency is below 4, dispatch in parallel bands of that width and wait for each band. Every prompt carries:
${CLAUDE_PLUGIN_ROOT}/references/briefs/map-focus.md — the procedure both paths share — with ${CLAUDE_PLUGIN_ROOT} already expanded. Subagents cannot expand it.PATH_SCOPE_HINT.references/map-templates.md, likewise expanded.last_mapped_commit, last_mapped_at, scope, focus.--fast with --focus → one subagent, one focus, same contract.
Validate the frontmatter each subagent reports; if one omitted it, add it from the captured HEAD + timestamp.
Resolve the effective knowledge_maintenance. When it is false, skip docs/ completely and report Wiki seed: deferred. .do-it/codebase/ is the build context cache. When it is true and docs/index.md already exists, skip. Otherwise seed from the map:
${CLAUDE_PLUGIN_ROOT}/references/docs-template/ into docs/.docs/overview.md from ARCHITECTURE.md + STACK.md — one paragraph plus links.docs/entities/<module>.md per top-level module in STRUCTURE.md: name, one-line role, key paths.bootstrap-from-map log entry.${CLAUDE_PLUGIN_ROOT}/scripts/wiki-check.sh reports zero findings.Mapped {N} files into .do-it/codebase/ — {file} {L} lines, … (all 7)
Mode: {full | fast --focus X}
Scope: {full | paths:… | refresh from {commit}}
Migrated: {none | GSD | Superpowers | Ralph v0.1} Backup: {path | n/a}
Wiki seed: {complete | existing | deferred}
Next: /do-it:prd to write the PRD against this map, or /do-it:do to route.
/do-it:loop or /do-it:ralph (references/workflow-dispatch.md § 6).Explore or browser_subagent for Task..do-it/migration-backup/ copy first.--refresh plus the drift markers would do.What SKILL.md sets; muted values are Claude Code's defaults
13 skills in this plugin
/build-loopExecute Do-it tasks. Reads .do-it/specs/ (current truth) and .do-it/changes/ (proposals), picks the next buildable band, builds under TDD discipline (software) or acceptance-driven (generic), respects the UI-first layer gate, and keeps the loop memo current. Product review runs per feature; optional knowledge maintenance never blocks code-first delivery. Triggered by /do-it:build or an autonomous loop each iteration.
/designEmit the compact design state the build loop consumes: tokens, the F0 foundation manifest, and per-entity contracts. Narrative design docs defer to --full.
/do-itRun the Do-it spec-driven MVP workflow in Codex. Use for PRD, brownfield mapping, config migration, grilling, design, preview, building, review, iteration, project status, retrospectives, or autonomous delivery./grillAdversarially challenge a spec-layer artifact — PRD, change proposal, or design system — before code exists. Hunts gaps, contradictions, ambiguity, scope creep. Triggered by /do-it:grill or "challenge the PRD", "poke holes".
/iterate-fixApply fixes after a REVISE verdict, or after a task's mechanical gate goes red. Root-cause discipline only — no symptom fixes, no test-softening. Triggered by /iterate, or by the Ralph loop on a red gate or a REVISE.
/llm-wikiMaintain docs/ as an optional LLM Wiki. Direct Pass/Query always work; automatic passes run only when project knowledge maintenance enables them.
npx claudepluginhub flyingwebie/skills --plugin do-itOther plugins' skills for the same job