Agent Skills: Map Codebase Structure

Generate a codebase structure map for the current project. Use during planning phases or when an agent needs to understand the overall project layout. Outputs function/class/constant signatures organized by file.

UncategorizedID: jclfocused/claude-agents/map-code

Install this agent skill to your local

pnpm dlx add-skill https://github.com/jclfocused/claude-agents/tree/HEAD/skills/map-code

Skill Files

Browse the full folder contents for map-code.

Download Skill

Loading file tree…

skills/map-code/SKILL.md

Skill Metadata

Name
map-code
Description
Generate a codebase structure map for the current project. Use during planning phases or when an agent needs to understand the overall project layout. Outputs function/class/constant signatures organized by file.

Map Codebase Structure

Run codebase-map format to generate a structural overview of the current project. This outputs function, class, and constant signatures organized by file — useful for understanding project layout during planning.

Usage

Run the map for the current working directory:

codebase-map format

Filtering (optional)

Pass arguments to scope the map to specific directories or exclude patterns:

  • --include src/services/** src/routes/** — Only map specific directories
  • --exclude **/*.test.ts docs/** — Exclude test files or docs

Examples with arguments:

codebase-map format $ARGUMENTS

When to Use

  • Planning phase — Run once at the start of research to understand project structure
  • Implementation agents — Run scoped to the directories you're working in (use --include)
  • On demand — When you need to understand unfamiliar parts of the codebase

Context Note

The output can be large for big projects. Prefer using --include to scope it to relevant directories rather than mapping the entire codebase.