From GSD Core
Analyzes codebase structure with parallel mapper agents to produce .planning/codebase/ documents covering tech stack, architecture, quality, and concerns. Supports fast scans and query modes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/gsd-core:gsd-map-codebase [--fast [--focus tech|arch|quality|concerns]] [--query <term>|status|diff|refresh] [area][--fast [--focus tech|arch|quality|concerns]] [--query <term>|status|diff|refresh] [area]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
<objective>
Each mapper agent explores a focus area and writes documents directly to .planning/codebase/. The orchestrator only receives confirmations, keeping context usage minimal.
Output: .planning/codebase/ folder with 7 structured documents about the codebase state.
<execution_context> @~/.claude/gsd-core/workflows/map-codebase.md </execution_context>
- **--fast**: Lightweight scan mode — spawns one mapper agent instead of four. Accepts an optional `--focus` value: `tech`, `arch`, `quality`, `concerns`, or `tech+arch` (default). Faster and lower-context than the full map. - **--query**: Codebase intelligence query mode. Sub-commands: `query `, `status`, `diff`, `refresh`. Requires intel to be enabled in config (`intel.enabled: true`). Runs inline for query/status/diff; spawns an agent for refresh. - **(no flag)**: Full parallel map — spawns 4 mapper agents to produce all 7 codebase documents. Arguments: $ARGUMENTSParse the first token of $ARGUMENTS:
--fast: strip the flag, run the scan workflow (passing remaining args including optional --focus).--query: strip the flag, run the intel workflow (passing remaining args as the subcommand).Load project state if exists: Check for .planning/STATE.md - loads context if project already initialized
This command can run:
<when_to_use> Use map-codebase for:
Skip map-codebase for:
<success_criteria>
npx claudepluginhub open-gsd/gsd-coreOrchestrates parallel subagents to map any codebase, creating docs/CODEBASE_MAP.md with architecture, file roles, dependencies, and navigation. Updates incrementally via git or scans.
Analyzes existing codebases from a given directory (or project root) and generates context documents (architecture, requirements, test plan) for downstream skills.