explore-codebase
Skill1 starsChanged 7 months agoMITView on GitHub
This skill should be used when the user asks to "explore this codebase", "understand this project", "give me an overview", "how does this work", "onboard me", "walk me through the architecture", "map the codebase", or any request to understand a codebase's structure, architecture, or design.
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 64
When the user asks about a specific area:
- Very specific: line 95
Read the symbol → get_symbol(name)
- Distinctive: line 106
When summarizing a codebase to the user, organize by:
“Common” is measured: kept by at least 6 in 10 of the 11 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
Codebase Exploration with Srclight
Systematic approach to understanding a codebase using structural analysis rather than reading files sequentially.
Level 1: Project Overview (30 seconds)
codebase_map() → languages, file counts, symbol counts, directory structure
list_projects() → all repos in workspace (if multi-repo)Summarize: what languages, how big, how the directories are organized.
Level 2: Key Symbols (2 minutes)
hybrid_search("main entry point") → find entry points
hybrid_search("config setup init") → find initialization code
symbols_in_file("src/main.*") → entry point symbolsIdentify the top-level functions/classes that organize the application.
Level 3: Architecture Mapping (5 minutes)
For each key symbol identified:
get_callees(symbol, project) → what it depends on
get_callers(symbol, project) → what depends on it
get_type_hierarchy(symbol, project) → inheritance structure
get_implementors(interface, project) → concrete implementationsBuild a mental model: entry points → core logic → data layer → external interfaces.
Level 4: Subsystem Deep Dive
When the user asks about a specific area:
hybrid_search("topic keywords") → find relevant symbols
get_symbol(name) → read the full source
get_callees(symbol, project) → trace the flow downward
get_callers(symbol, project) → trace usage upward
find_imports(path, project) → understand dependenciesLevel 5: History and Health
git_hotspots(project=project) → most-changed files (complexity magnets)
recent_changes(project=project) → what's been worked on lately
find_dead_code(project) → unused code to ignoreHotspots indicate where most development effort goes. Dead code can be ignored during exploration.
Exploration Strategies
Top-Down (recommended for new codebases)
codebase_map()→ directory overview- Find entry points →
hybrid_search("main app server") - Trace outward from entry points →
get_callees() - Dive into interesting subsystems
Bottom-Up (when investigating a specific feature)
hybrid_search("feature keywords")→ find relevant code- Read the symbol →
get_symbol(name) - Trace upward →
get_callers()to find who uses it - Trace downward →
get_callees()to find what it uses
Change-Driven (when onboarding to active development)
recent_changes()→ what's being worked ongit_hotspots()→ where most effort goes- Focus exploration on active areas
Presenting Findings
When summarizing a codebase to the user, organize by:
- Purpose: What the project does (from README/entry points)
- Architecture: Major subsystems and how they connect
- Key Files: The most important files to understand
- Entry Points: Where execution starts
- Hot Areas: Where active development happens
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- tirth8205/code-review-graph★ 32ksame name
- Arasz/ai-badger★ 3same name
- iadr-dev/colab★ 2same name
- imMamdouhaboammar/get-things-done★ 2same name
- johanolofsson72/Claude★ 2same name
- aprameyak/coding-skills★ 1same name
- ashvin-to/BaseMem★ 1same name
- exactbee/claude-code-workflow★ 1same name
- KMaruthi2002/universal-llm-skills★ 1same name
- rpraharaj/ai-engineer★ 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.
Used alongsideProjects with it also use debug-issue, review-changes and 1 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.
NVIDIASkilldebug-issue
Use when the user asks to debug, investigate, or fix a GitHub issue or supplies a repository bug report.
Also in 5 projects that use this
DockerSkillreview-changes
Review uncommitted or recently committed documentation changes for correctness, coherence, and style compliance. Use before creating a PR to catch issues. "review my changes", "review the diff", "check the fix before submitting", "does this look right".
Also in 4 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 3 projects that use this
In this repository3 other files it gives its agents.
- codebase-indexingSkill
- refactor-safelySkill
- setupSkill
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.

