codemap
Skill122 starsChanged 2 months agoMITView on GitHub
Create a seven-document architecture map when the user asks to map a codebase.
- Reads credentials
13 other projects use a version of this.
Adopted by
Most recently taken up by
- hmjBill/skillstheir own version, first seen Oct 5, 2026
- lglucas/ai-dev-operating-systemtheir own version, first seen Sep 28, 2026
- vladimirstempel/oh-my-claude-code-slimtheir own version, first seen Sep 20, 2026
- akitaonrails/my-skillstheir own version, first seen Sep 17, 2026
- mike22890/opencode-skills-cntheir own version, first seen Sep 13, 2026
- openyida/openyidatheir own version, first seen Sep 8, 2026
Used with
Projects with it also use clonedeps, deepwork and 2 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
hbollonSkillclonedeps
Clone important project dependency source code into an ignored local workspace so OpenCode can inspect library internals. Use when the user asks to clone dependencies, inspect dependency/source internals, understand SDK/framework behavior from source, debug library implementation details, or make core dependency repos locally readable. Do not use for ordinary API/docs questions where @librarian is enough.
Also in 4 projects that use this
hbollonSkilldeepwork
Orchestrator-only workflow for heavy coding sessions, multi-phase implementation, and risky refactors. Use for complex work that needs planning, review gates, and persistent progress tracking.
Also in 3 projects that use this
Hugging FaceSkillsimplify
Refactor code after tests pass. The "Refactor" phase of Red-Green-Refactor.
Also in 4 projects that use this
Microsoft AzureSkillreflect
Learning capture system that extracts HIGH/MED/LOW confidence patterns from conversations to prevent repeating mistakes. Use after user corrections ("no", "wrong"), praise ("perfect", "exactly"), or when discovering edge cases. Complements .squad/agents/{agent}/history.md and .squad/decisions.md.
Also in 3 projects that use this
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- JordanCoin/codemap★ 704same name
- huisezhiyin/sdd-riper★ 330same name
- openyida/openyida★ 219same name
- akitaonrails/my-skills★ 205same name
- lglucas/ai-dev-operating-system★ 12same name
- beadnall/codemap★ 9same name
- shalomb/agent-skills★ 3same name
- arkan/skills★ 1same name
- hbollon/opencode-config★ 1same name
- hmjBill/skills★ 1same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- wiki/AGENTS.mdAGENTS.md
- wiki/CLAUDE.mdCLAUDE.md
- accountable-engineeringSkill
- adrSkill
- blindspot-passSkill
- capability-experimentsSkill
- code-quality-reviewSkill
- code-reviewSkill
- commit-atomicSkill
- context-discoverySkill
- doc-searchSkill
- docs-updateSkill
- draft-pull-requestSkill
- git-contextSkill
- handoffsSkill
- implementation-loggerSkill
- llm-wikiSkill
- orchestrating-fusionSkill
- pickupSkill
- plannotator-setup-goalSkill
- portless-localSkill
- prdSkill
- pr-reviewSkill
- qmd-knowledgeSkill
- quiz-meSkill
- ralphSkill
- security-auditSkill
- slopSkill
- spec-interviewSkill
- tddSkill
- tmuxSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 7 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Use this skill when you need to:
- Very specific: line 65
If .planning/codebase/ already exists, prompt:
- Distinctive: line 76
Create the output directory:
- Very specific: line 84
Use the Task tool with agent_type="explore" and run_in_background=true for parallel execution.
- Distinctive: line 159
Check that all documents were created:
- Very specific: line 168
If .planning/ is not gitignored and the user wants to commit:
- Distinctive: line 221
When spawned as a mapper agent:
- Distinctive: line 281
Write documents directly: - Use the Write tool, don't return contents
- Distinctive: line 282
Always include file paths: - Every finding needs a file path in backticks
- Distinctive: line 284
Be thorough: - Read actual files, don't guess
“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Codemap
What I do
Analyze your entire codebase and create 7 comprehensive documentation files in .planning/codebase/:
- STACK.md - Technologies, dependencies, configuration
- INTEGRATIONS.md - 3rd party providers, APIs, databases, auth providers
- ARCHITECTURE.md - System patterns, layers, data flow
- STRUCTURE.md - Directory layout, key locations, naming conventions
- CONVENTIONS.md - Code style, patterns, error handling
- TESTING.md - Framework, structure, mocking, coverage
- CONCERNS.md - Tech debt, bugs, security, performance issues
When to use me
Use this skill when you need to:
- Onboard new developers to understand the codebase quickly
- Plan new features with full context of existing patterns
- Understand code conventions before making changes
- Identify technical debt and areas of concern
- Document the current state of the project
How it works
This skill orchestrates 4 parallel agents, each exploring a specific focus area:
- Tech Agent → Analyzes stack and integrations → STACK.md, INTEGRATIONS.md
- Architecture Agent → Analyzes patterns and structure → ARCHITECTURE.md, STRUCTURE.md
- Quality Agent → Analyzes conventions and testing → CONVENTIONS.md, TESTING.md
- Concerns Agent → Identifies tech debt and issues → CONCERNS.md
Each agent:
- Explores the codebase in a fresh context
- Uses templates from
$SKILL_PATH/templates/ - Writes documents directly to
.planning/codebase/ - Returns only confirmation (not document contents)
The orchestrator:
- Creates
.planning/codebase/directory - Spawns 4 parallel agents with
run_in_background=true - Collects confirmations
- Verifies all documents created
- Commits the codebase map (if configured)
Process
Step 1: Check Existing Map
If .planning/codebase/ already exists, prompt:
.planning/codebase/ already exists. What's next?
1. Refresh - Delete existing and remap codebase
2. Update - Keep existing, only update specific documents
3. Skip - Use existing codebase map as-isStep 2: Create Structure
Create the output directory:
mkdir -p .planning/codebaseStep 3: Spawn Parallel Agents
Use the Task tool with agent_type="explore" and run_in_background=true for parallel execution.
Tech Agent:
agent_type: explore
description: Map codebase tech stack
prompt: |
Focus: tech
Analyze this codebase for technology stack and external integrations.
Write these documents to .planning/codebase/:
- STACK.md - Languages, runtime, frameworks, dependencies, configuration
- INTEGRATIONS.md - External APIs, databases, auth providers, webhooks
Use the templates from map-codebase skill. Explore thoroughly.
Write documents directly. Return confirmation only.Architecture Agent:
agent_type: explore
description: Map codebase architecture
prompt: |
Focus: arch
Analyze this codebase architecture and directory structure.
Write these documents to .planning/codebase/:
- ARCHITECTURE.md - Pattern, layers, data flow, abstractions, entry points
- STRUCTURE.md - Directory layout, key locations, naming conventions
Use the templates from map-codebase skill. Explore thoroughly.
Write documents directly. Return confirmation only.Quality Agent:
agent_type: explore
description: Map codebase conventions
prompt: |
Focus: quality
Analyze this codebase for coding conventions and testing patterns.
Write these documents to .planning/codebase/:
- CONVENTIONS.md - Code style, naming, patterns, error handling
- TESTING.md - Framework, structure, mocking, coverage
Use the templates from map-codebase skill. Explore thoroughly.
Write documents directly. Return confirmation only.Concerns Agent:
agent_type: explore
description: Map codebase concerns
prompt: |
Focus: concerns
Analyze this codebase for technical debt, known issues, and areas of concern.
Write this document to .planning/codebase/:
- CONCERNS.md - Tech debt, bugs, security, performance, fragile areas
Use the templates from map-codebase skill. Explore thoroughly.
Write document directly. Return confirmation only.Step 4: Verify Output
Check that all documents were created:
ls -la .planning/codebase/
wc -l .planning/codebase/*.mdStep 5: Commit (Optional)
If .planning/ is not gitignored and the user wants to commit:
git add .planning/codebase/*.md
git commit -m "docs: map existing codebase
- STACK.md - Technologies and dependencies
- ARCHITECTURE.md - System design and patterns
- STRUCTURE.md - Directory layout
- CONVENTIONS.md - Code style and patterns
- TESTING.md - Test structure
- INTEGRATIONS.md - External services
- CONCERNS.md - Technical debt and issues"Step 6: Summary
Present completion summary:
Codebase mapping complete.
Created .planning/codebase/:
- STACK.md ([N] lines) - Technologies and dependencies
- ARCHITECTURE.md ([N] lines) - System design and patterns
- STRUCTURE.md ([N] lines) - Directory layout and organization
- CONVENTIONS.md ([N] lines) - Code style and patterns
- TESTING.md ([N] lines) - Test structure and practices
- INTEGRATIONS.md ([N] lines) - External services and APIs
- CONCERNS.md ([N] lines) - Technical debt and issues
Next steps:
- Review documents: cat .planning/codebase/STACK.md
- Use these as reference when planning features
- Update as codebase evolvesTemplates
Templates are located in $SKILL_PATH/templates/:
STACK.md.template- Technology stackINTEGRATIONS.md.template- External integrationsARCHITECTURE.md.template- System architectureSTRUCTURE.md.template- Directory structureCONVENTIONS.md.template- Coding conventionsTESTING.md.template- Testing patternsCONCERNS.md.template- Technical concerns
Each agent reads the appropriate template and fills it in based on codebase exploration.
Agent Guidelines
When spawned as a mapper agent:
Exploration Commands
Helper: Use fd if available, fall back to find
# Define finder helper (fd if available, otherwise find)
_finder() { command -v fd >/dev/null 2>&1 && fd "$@" || find "$@"; }
_rg() { command -v rg >/dev/null 2>&1 && rg "$@" || grep -r "$@"; }Tech Focus:
# Package manifests
cat package.json pyproject.toml Cargo.toml go.mod 2>/dev/null
# Config files
ls -la *.config.* .env* tsconfig.json 2>/dev/null
# Find SDK/API imports
_rg "import.*stripe|import.*supabase|import.*aws" src/ 2>/dev/null | head -50Architecture Focus:
# Directory structure (fd is faster and ignores node_modules/.git by default)
_finder -t d . | head -50
# Entry points
_finder -t f "index.*" "main.*" "app.*" src/ app/ 2>/dev/null | head -20
# Import patterns
_rg "^import" src/ 2>/dev/null | head -100Quality Focus:
# Linting/formatting config
cat .eslintrc* .prettierrc* biome.json 2>/dev/null
# Test files
_finder -t f "\.test\." "\.spec\." 2>/dev/null | head -30Concerns Focus:
# TODO/FIXME comments
_rg "TODO|FIXME|HACK|XXX" src/ 2>/dev/null | head -50
# Large files (potential complexity)
_finder -t f "\.ts$" -e "\.tsx$" src/ 2>/dev/null | xargs wc -l 2>/dev/null | sort -rn | head -20Critical Rules
- Write documents directly - Use the Write tool, don't return contents
- Always include file paths - Every finding needs a file path in backticks
- Use the templates - Fill in the template structure exactly
- Be thorough - Read actual files, don't guess
- Return only confirmation - Response should be ~10 lines with file paths and line counts
- Skip commits — orchestrator handles git operations
Inspiration
This skill is inspired by and adapted from glittercowboy/get-shit-done, specifically their map-codebase workflow and gsd-codebase-mapper agent.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

