explore-codebase
Skill2 starsChanged 5 months agoMITView on GitHub
Efficient codebase exploration patterns for AI coding agents. Use when entering a new project, understanding unfamiliar code, or when the user asks to "explore", "understand", "find where X is implemented", or "how does Y work". Reduces token waste by using strategic search instead of sequential file reading.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- aprameyak/coding-skillstheir own version, first seen Oct 2, 2026
- imMamdouhaboammar/get-things-donetheir own version, first seen Sep 1, 2026
- leandrodslv/claude-skills-librarytheir own version, first seen Aug 14, 2026
- Sir-chawakorn/sanook-clitheir own version, first seen Jun 21, 2026
- tirth8205/code-review-graphtheir own version, first seen Jun 10, 2026
- olafgeibig/skillstheir own version, first seen May 16, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- tirth8205/code-review-graph★ 32ksame name
- Sir-chawakorn/sanook-cli★ 9same name
- imMamdouhaboammar/get-things-done★ 2same name
- aprameyak/coding-skills★ 1same name
- leandrodslv/claude-skills-library★ 0same name
- olafgeibig/skills★ 0same name
- ravichaudharylt/claude-fe-agent★ 0same name
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 repository6 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- ai-engineerSkill
- developerSkill
- git-workflowSkill
- powershell-patternsSkill
- skill-creatorSkill
The file
Files
Codebase Exploration Playbook
Golden Rules
- First: check for errors —
get_errors()before anything else. Fixing compile errors is priority zero. - NEVER read files one by one —
grep_searchwith regex alternation first semantic_searchfor concepts,grep_searchfor exact symbolsfile_searchfor globs to discover structure instantly- Read 100+ lines at a time — fewer reads = fewer tokens
- Parallel reads — read 2-3 key files in one turn
- Avoid the "grep tax" — use familiar formats (Markdown/YAML), not obscure ones
Progressive Disclosure (Skill Pattern)
Top coding agents (Codex, Claude Code) use this — do the same:
- Metadata (~100 tokens): name + description loaded for ALL files
- Instructions (< 500 lines): body loaded when triggered
- Resources (on-demand): only files referenced via Markdown links
Strategy by Goal
| Goal | Approach |
| "Where is X?" | grep_search → vscode_listCodeUsages → read defining file |
| "How does this work?" | file_search("**/*.{ts,js}") → semantic_search("architecture") → read ONE key file deeply |
| "Find tests for Y" | file_search("**/Y*.spec.ts") — glob is instant |
| "What deps?" | read_file("package.json", 1, 100) — one read |
| "Are there errors?" | get_errors() FIRST — then grep for error symbols |
| "Find all imports of X" | grep_search("import.*X", isRegexp=true) across **/*.ts |
Tool Quick Reference
| Tool | Best for | ||
get_errors(filePaths) | Always first — compile/lint errors | ||
grep_search(query, isRegexp, includePattern) | Text/regex: `function | class | interface` |
semantic_search(query) | Natural language: "how does auth work" | ||
file_search(query) | Glob: **/*.spec.ts, **/*.component.ts | ||
read_file(path, start, end) | Read 100+ line chunks (parallel when possible) | ||
vscode_listCodeUsages(symbol, lineContent) | All references of a symbol | ||
list_dir(path) | Directory listing |
Anti-Patterns
| Don't | Do |
| Read 15 files sequentially | Search first, read 2-3 key files in parallel |
| Read 20-line chunks | 100-200 lines at a time |
| Single-keyword searches | Regex alternation |
| Guess file locations | file_search with globs |
| Use obscure formats for context | Markdown/YAML — models know them best |
| Skip error checking | get_errors() as step 1 |
Token Economics
| Approach | Tokens |
| Sequential 15 files × 500 tokens | ~7,500 |
| With this playbook | ~700 |
| Savings | ~91% |
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.

