- commands/gsd/map-codebase.md: slash command entry point - get-shit-done/workflows/map-codebase.md: workflow with 6 process steps - Documents 4 parallel Explore agents and 7 output files - Agent orchestration to be implemented in plan 02-02
3.3 KiB
description, argument-hint, allowed-tools
| description | argument-hint | allowed-tools | ||||||
|---|---|---|---|---|---|---|---|---|
| Analyze codebase with parallel Explore agents to produce .planning/codebase/ documents | [optional: specific area to map, e.g., 'api' or 'auth'] |
|
This command spawns multiple Explore agents to analyze different aspects of the codebase in parallel, each with fresh context. Each agent produces focused documentation under 100 lines.
Output: .planning/codebase/ folder with 7 structured documents about the codebase state.
<execution_context>
@/.claude/get-shit-done/workflows/map-codebase.md
@/.claude/get-shit-done/templates/codebase/stack.md
@/.claude/get-shit-done/templates/codebase/architecture.md
@/.claude/get-shit-done/templates/codebase/structure.md
@/.claude/get-shit-done/templates/codebase/conventions.md
@/.claude/get-shit-done/templates/codebase/testing.md
@/.claude/get-shit-done/templates/codebase/integrations.md
@/.claude/get-shit-done/templates/codebase/concerns.md
</execution_context>
Load project state if exists: Check for .planning/STATE.md - loads context if project already initialized
This command can run:
- Before /gsd:new-project (brownfield codebases) - creates codebase map first
- After /gsd:new-project (greenfield codebases) - updates codebase map as code evolves
- Anytime to refresh codebase understanding
<when_to_use> Use map-codebase for:
- Brownfield projects before initialization (understand existing code first)
- Refreshing codebase map after significant changes
- Onboarding to an unfamiliar codebase
- Before major refactoring (understand current state)
- When STATE.md references outdated codebase info
Skip map-codebase for:
- Greenfield projects with no code yet (nothing to map)
- Trivial codebases (<5 files) </when_to_use>
<success_criteria>
- .planning/codebase/ directory created
- All 7 codebase documents written
- Each document under 100 lines
- Documents follow template structure
- Parallel agents completed without errors
- User knows next steps </success_criteria>