exploring-codebases
Skill1 starsChanged 4 months agoMITView on GitHub
Use when starting work in an unfamiliar repository, onboarding to a codebase, doing repository reconnaissance, or needing project-wide context before planning, editing, debugging, refactoring, or review.
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
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 12
Check repo state: branch/status, README/docs, package/build files, recent commits if relevant.
- Very specific: line 15
If tree is unavailable: find .
- Distinctive: line 27
Stop expanding when another scan is unlikely to change the next decision.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Exploring Codebases
Principle: map first, edit later. Spend enough context to avoid blind patches; do not read everything line by line.
Workflow
- Check repo state: branch/status, README/docs, package/build files, recent commits if relevant.
- Visualize the tree before detailed reading: run a bounded tree command to see structure, naming, generated/vendor dirs, app boundaries, and test layout.
- Prefer:
tree -L 3 -I 'node_modules|.git|dist|build|target|vendor|coverage' . - If
treeis unavailable:find . -maxdepth 3 -type d.
- Prefer:
- Identify purpose: app/lib/service, users/domain, main entrypoints.
- Map architecture: top-level dirs, core modules, boundaries, data/control flow.
- Find hot paths: entrypoints, handlers, commands, shared utilities, large/high-churn files, tests around likely changes.
- Note external surfaces: APIs, database, auth, queues, files, env/config, network, trust boundaries.
- Map verification: build/test/lint commands, test layout, fastest relevant checks.
- Report before acting: context map, important files, risks, unknowns, recommended next step.
Depth
- Tiny targeted change: short pass over README/config, touched file, neighbors/callers/tests.
- New feature, bug hunt, refactor, review, unfamiliar repo: full workflow.
- Stop expanding when another scan is unlikely to change the next decision.
Output
Return:
- what the project does
- architecture map
- hot paths/hotspots
- verification commands
- risks/unknowns
Common mistakes
- Editing the first obvious file.
- Trusting "tiny change" without checking callers/tests.
- Skipping the tree view and losing project-shape context.
- Producing a directory tour instead of decision-useful context.
- Hiding uncertainty.
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- oaustegard/claude-skills★ 158same name
- tmcfarlane/team-avatar★ 111same 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 repository22 other files it gives its agents.
- pi/AGENTS.mdAGENTS.md
- agent-workflowsSkill
- architecture-securitySkill
- code-review-releaseSkill
- documentation-passSkill
- find-skillsSkill
- frontend-webSkill
- githubSkill
- grill-meSkill
- grill-with-docsSkill
- improve-codebase-architectureSkill
- improveSkill
- product-design-writingSkill
- project-backlogSkill
- prototypeSkill
- red-teaming-decisionsSkill
- systems-backendSkill
- tddSkill
- testing-debugging-verificationSkill
- to-issuesSkill
- to-prdSkill
- triageSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

