Map codebase

From protoconf/protoconf · View interactive version

Map codebase is an AI agent skill from the GitHub repository protoconf/protoconf. Analyze codebase with parallel mapper agents to produce .planning/codebase/ documents

How to use this skill

Skill file

<augment_skill_adapter>

A. Skill Invocation

B. User Prompting

When the workflow needs user input, prompt the user conversationally:

C. Tool Usage

Use these Augment tools when executing GSD workflows:

D. Subagent Spawning

When the workflow needs to spawn a subagent:

</augment_skill_adapter>

<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>

@/Users/smintz/go/src/github.com/protoconf/protoconf/.augment/gsd-core/workflows/map-codebase.md

</execution_context>

<flags>

</flags>

<context>

Arguments: {{GSD_ARGS}}

Parse the first token of {{GSD_ARGS}}:

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-onboard, /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.