repository-exploration
Skill33 starsChanged 22 days agoMITView on GitHub
Use when orienting in an unfamiliar codebase. Produces a map of the architecture, entry points, data flow, conventions, and the parts most likely to surprise you — before any code is changed. Trigger on "help me understand this codebase", "where do i start in this repo", "how is this project structured", "i just inherited this service". Do not use for writing the CLAUDE.md itself — see the agent-instructions skill.
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Before making a first change to a repository you do not know.
- Distinctive: line 56
Do not read the code alphabetically.
- Distinctive: line 59
Look for the seams — where the codebase changes style abruptly is usually where a rewrite, an acquisition, or a departed engineer left a …
- Distinctive: line 101
If the repository has a CLAUDE.md or equivalent agent instructions file, read it first — and update it with what you learn.
≈ “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
Repository Exploration
Purpose
Build an accurate mental model of an unfamiliar codebase quickly, so the first change you make fits the system instead of fighting it.
When to Use
- Joining a project or inheriting a service.
- Before making a first change to a repository you do not know.
- Auditing a codebase before acquisition, handover, or a major decision.
- Writing or refreshing a
CLAUDE.md/ onboarding document.
Capabilities
- Entry-point discovery and request-path tracing.
- Dependency and module mapping.
- Convention detection: how this codebase does errors, config, tests, logging.
- Identification of hotspots: files with the highest churn and the most authors.
- Detection of dead code, duplicated logic, and abandoned migrations.
Inputs
- The repository, with full git history.
- Build and run instructions, if they exist.
- Any existing documentation, treated as a hypothesis rather than fact.
Outputs
- A map: entry points, layers, data stores, external dependencies.
- The conventions a new change must follow.
- A list of the riskiest areas and why.
- Concrete questions that the code cannot answer.
Workflow
- Read the boundaries first —
README, build files, CI config,Dockerfile, deployment manifests. These tell you what runs, how, and against what. - Find the entry points — HTTP routes, CLI commands, queue consumers, cron entries,
mainfunctions. Everything else is reachable from one of them. - Trace one request end to end — Pick the most representative operation and follow it from entry to data store and back. This single trace teaches you the layering, the error convention, and the persistence pattern at once.
- Detect the conventions — Read three files from the same layer. What is common is the convention; what is unique is either newer, older, or a mistake.
- Find the churn —
git log --format=%an --name-onlyaggregated by file. High churn plus many authors marks the code that will be hardest and most important to understand. - Run the tests — What they cover tells you what the team is afraid of breaking.
- Write it down — A map that lives in the repository, so nobody has to do this again.
Best Practices
- Do not read the code alphabetically. Read it along the path of a real request.
- Existing documentation is a claim, not evidence. Verify it against the code before repeating it.
- The test suite is the most honest documentation in most repositories.
- Look for the seams — where the codebase changes style abruptly is usually where a rewrite, an acquisition, or a departed engineer left a boundary.
- Note what is missing: no tests around payments, no timeouts on outbound calls, no migrations directory. Absences are findings.
Examples
Churn analysis to find the load-bearing files:
# Files changed most often in the last year, with author counts.
git log --since="1 year ago" --name-only --format="%an" \
| awk 'NF' \
| paste - - \
| sort -k2 \
| awk '{files[$2]++; authors[$2 " " $1]=1} END {for (f in files) print files[f], f}' \
| sort -rn | head -20A useful output map:
## Entry points
- `cmd/api/main.go` — HTTP API, 41 routes, chi router
- `cmd/worker/main.go` — consumes 4 SQS queues
- `cmd/migrate/main.go` — goose migrations
## Request path (POST /orders)
handler -> validation (go-playground/validator) -> service.OrderService
-> repo.OrderRepo (pgx) -> outbox table -> worker publishes to SQS
## Conventions
- Errors wrapped with fmt.Errorf("...: %w", err); sentinel errors in errs/
- Config via envconfig struct in internal/config; no config files
- Tests: table-driven, testcontainers for repo tests
## Risks
- internal/pricing: 3,100 lines, 9 authors, 140 commits this year, no tests
- No timeouts on the calls to the tax vendor in internal/tax/client.goNotes
- Aim to produce the map before making the first change, and to have it reviewed by someone who knows the system. Their corrections are the fastest onboarding available.
- If the repository has a
CLAUDE.mdor equivalent agent instructions file, read it first — and update it with what you learn.
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- eugenelim/agent-ready-repo★ 27same name
- ChloeVPin/open-agent-skills★ 2same 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 repository137 other files it gives its agents.
- agent-instructionsSkill
- agent-memorySkill
- hooksSkill
- plugin-developmentSkill
- skill-authoringSkill
- skill-reviewSkill
- slash-commandsSkill
- subagentsSkill
- agent-designSkill
- context-engineeringSkill
- fine-tuningSkill
- llm-cost-optimizationSkill
- llm-evaluationSkill
- llm-integrationSkill
- mcp-serverSkill
- ml-pipelineSkill
- model-selectionSkill
- prompt-engineeringSkill
- ragSkill
- structured-outputSkill
- api-designSkill
- background-jobsSkill
- cachingSkill
- djangoSkill
- event-driven-architectureSkill
- fastapiSkill
- graphqlSkill
- microservicesSkill
- nestjsSkill
- realtime-websocketsSkill
- spring-bootSkill
- competitive-analysisSkill
- lead-researchSkill
- product-analysisSkill
- resumeSkill
- user-researchSkill
- database-performanceSkill
- data-modelingSkill
- data-qualitySkill
- pandasSkill
- postgresSkill
- sparkSkill
- brand-guidelinesSkill
- generative-artSkill
- themingSkill
- ui-reviewSkill
- visual-designSkill
- architecture-decisionsSkill
- bug-fix-protocolSkill
- cli-developmentSkill
- code-reviewSkill
- debuggingSkill
- design-patternsSkill
- domain-modelingSkill
- git-workflowSkill
- legacy-modernizationSkill
- refactoringSkill
- simple-designSkill
- system-designSkill
- aws-cdkSkill
- The first 60 shown.
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.

