explore-codebase
FreeNo executable scriptsNot checkedFind all files relevant to a query with orthogonal exploration for comprehensive coverage. Returns topic-specific overview + file list with line ranges. Uses…
by doodledood★ 40 GitHub starsAbout this skill
User request: $ARGUMENTS
Orchestrate codebase exploration agents to find all files relevant to a query, then synthesize into a unified reading list.
Loop: Determine thoroughness → [Quick/Medium: single agent → return] | [Thorough+: Create orchestration file → Decompose → Launch Wave 1 → Collect findings → Cross-reference → Evaluate gaps → [Gap-fill if needed] → Refresh context → Synthesize → Output]
Orchestration file (thorough+ only): /tmp/explore-orchestration-{topic-slug}-{YYYYMMDD-HHMMSS}.md
You do NOT read source files - you orchestrate agents and synthesize their findings into a unified reading list. The main agent reads the files after you return.
Thoroughness Level
FIRST: Determine thoroughness before exploring. Parse from natural language or auto-select.
Auto-selection:
- Single entity lookup ("where is X?") → quick
- Single bounded feature/bug → medium
- Multi-area feature, interaction queries → thorough
- "comprehensive"/"all"/"architecture"/"audit" → very-thorough
| Level | Exploration Strategy |
|---|---|
| quick | Single agent, no orchestration file, return agent output directly |
| medium | Single agent, no orchestration file, return agent output directly |
| thorough | Orchestration file, orthogonal agents (2-3), cross-reference, optional gap-fill |
| very-thorough | Orchestration file, orthogonal agents (3-4), cross-reference, gap-fill wave |
Topic-slug format: Extract 2-4 key terms, lowercase, replace spaces with hyphens. Example: "authentication flow" → authentication-flow
State: **Thoroughness**: [level] — [reason] then proceed.
Quick / Medium Flow
1. Launch single agent
Launch a vibe-extras:codebase-explorer agent with: "$ARGUMENTS"
2. Return agent output directly
When agent returns, its output becomes your output. No synthesis needed.
Thorough / Very-Thorough Flow
Phase 1: Initial Setup
1.1 Get timestamp & create todo list
Run: date +%Y%m%d-%H%M%S → for filename and timestamps
Starter todos (seeds - list grows during decomposition):
- [ ] Create orchestration file; done when file created
- [ ] Topic decomposition→log; done when angles identified
- [ ] (expand: agent assignments as decomposition reveals)
- [ ] Launch Wave 1 agents; done when all agents spawned
- [ ] Collect Agent 1→log; done when findings written
- [ ] Collect Agent 2→log; done when findings written
- [ ] (expand: more agents as needed)
- [ ] Cross-reference→log; done when duplicates/conflicts resolved
- [ ] Evaluate gaps→log; done when gaps classified
- [ ] (expand: gap-fill if continuing)
- [ ] Refresh: read full orchestration file
- [ ] Synthesize→unified reading list; done when all files deduplicated + prioritized
Critical todos (never skip):
→logafter EACH agent completionRefresh:ALWAYS before synthesis
1.2 Create orchestration file
Path: /tmp/explore-orchestration-{topic-slug}-{YYYYMMDD-HHMMSS}.md
# Codebase Exploration Orchestration: {topic}
Timestamp: {YYYYMMDD-HHMMSS}
Thoroughness: {level}
## Exploration Query
{Original query}
## Topic Decomposition
- Core topic: {main thing to find}
- Angles to explore: (populated in Phase 2)
- Expected agent count: {based on level}
## Agent Assignments
(populated in Phase 2)
## Agent Status
(updated as agents complete)
## Collected Findings
(populated as agents return - includes OVERVIEW and FILES TO READ from each)
## Cross-Reference Analysis
(populated after all agents return)
## Gap Evaluation
(populated after cross-reference)
## Unified Reading List
(populated in synthesis)
Phase 2: Decompose & Assign
2.1 Decompose into orthogonal angles
Standard angles for codebase exploration:
| Angle | Focus | Example Scope |
|---|---|---|
| Implementation | Core logic files | "Files that implement {topic} behavior" |
| Usage | Callers, integration points | "Files that call/use {topic}" |
| Tests | Test files, fixtures | "Test files for {topic}" |
| Config | Configuration, environment | "Config files affecting {topic}" |
Decomposition rules:
- thorough: 2-3 angles (usually Implementation + Usage + Tests)
- very-thorough: 3-4 angles (all four)
- Each angle gets explicit boundaries to prevent overlap
Orthogonality check: Before assigning agents, verify no two angles would naturally search the same files.
2.2 Plan agent assignments with boundaries
| Angle | Focus | Explicitly EXCLUDE |
|---|---|---|
| Implementation | Core {topic} files | callers, tests, config |
| Usage | Files that call {topic} | core implementation, tests, config |
| Tests | Test files for {topic} | implementation, callers, config |
| Config | Config affecting {topic} | implementation, callers, tests |
2.3 Expand todos for each agent
- [x] Topic decomposition→log; angles identified
- [ ] Agent 1: implementation angle; d
Install explore-codebase in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the explore-codebase skill do?
Find all files relevant to a query with orthogonal exploration for comprehensive coverage. Returns topic-specific overview + file list with line ranges. Uses parallel agents for thorough+ levels to ensure nothing is missed.
How do I install the explore-codebase skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the explore-codebase skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
by GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
by GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
by GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
by GitHub