Gsd map codebase

From coco-research/coco · View interactive version

Gsd map codebase is an AI agent skill from the GitHub repository coco-research/coco. Use when onboarding to an unfamiliar codebase, before a major refactor, on a brownfield project before /gsd-new-project, or to refresh .planning/codebase/. Spawns up to 4 parallel mapper agents that write 7 documents.

How to use this skill

Skill file

<objective>

Analyze existing codebase using parallel gsd-codebase-mapper agents to produce structured codebase documents.

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.

</objective>

<execution_context>

@$HOME/.claude/get-shit-done/workflows/map-codebase.md

</execution_context>

<context>

Focus area: $ARGUMENTS (optional - if provided, tells agents to focus on specific subsystem)

Load project state if exists:

Check for .planning/STATE.md - loads context if project already initialized

This command can run:

</context>

<when_to_use>

Use map-codebase for:

Skip map-codebase for:

</when_to_use>

<process>

  1. Check if .planning/codebase/ already exists (offer to refresh or skip)
  2. Create .planning/codebase/ directory structure
  3. Spawn 4 parallel gsd-codebase-mapper agents:
  1. Wait for agents to complete, collect confirmations (NOT document contents)
  2. Verify all 7 documents exist with line counts
  3. Commit codebase map
  4. Offer next steps (typically: /gsd-new-project or /gsd-plan-phase)

</process>

<success_criteria>

</success_criteria>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.