codebase-explorer
Skill1 starsChanged 55 days agoMITView on GitHub
Deep-dive analysis of unfamiliar codebases; mental model
- Reads credentials
9 other projects use a version of this.
Adopted by
Most recently taken up by
- marcjaner/skillstheir own version, first seen Oct 20, 2026
- 0King0P/Claude-Skillstheir own version, first seen Oct 13, 2026
- NachikethReddyY/skillstheir own version, first seen Oct 13, 2026
- yashs33244/explorertheir own version, first seen Oct 13, 2026
- amirbiron/claude-skillstheir own version, first seen Oct 11, 2026
- cellrishi-code/claude-skills-atlastheir own version, first seen Oct 4, 2026
Used with
Projects with it also use code-review.
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.
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
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- TashanGKD/tashan-cursor-skills★ 21same name
- cellrishi-code/claude-skills-atlas★ 6same name
- yashs33244/explorer★ 4same name
- madeinoz67/madeinoz-knowledge-system★ 3same name
- marcjaner/skills★ 1same name
- NachikethReddyY/skills★ 1same name
- srikanth-manivannan/claude-agent-factory★ 1same name
- 0King0P/Claude-Skills★ 0same name
- amirbiron/claude-skills★ 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 repository67 other files it gives its agents.
- architect-reviewerSkill
- backend-architectSkill
- backend-developerSkill
- code-architectSkill
- code-reviewerSkill
- code-simplifierSkill
- debuggerSkill
- error-detectiveSkill
- fullstack-developerSkill
- git-workflow-managerSkill
- legacy-modernizerSkill
- pragmatic-architectSkill
- prdSkill
- qa-expertSkill
- research-technical-spikeSkill
- sdd-spec-writerSkill
- security-auditorSkill
- supply-chain-securitySkill
- task-decomposition-expertSkill
- technical-debt-managerSkill
- test-engineerSkill
- typescript-proSkill
- architecture-decision-recordsSkill
- hermes-sdd-packagingSkill
- bug-diagnosisSkill
- build-craftSkill
- code-healthSkill
- code-review-checklistSkill
- commit-smartSkill
- context-architectureSkill
- design-explorationSkill
- design-to-htmlSkill
- developer-experience-reviewSkill
- diagram-tripletSkill
- dispatching-parallel-agentsSkill
- document-diataxisSkill
- e2e-testing-patternsSkill
- executing-plansSkill
- module-designSkill
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-bulk-archive-changeSkill
- openspec-continue-changeSkill
- openspec-exploreSkill
- openspec-ff-changeSkill
- openspec-new-changeSkill
- openspec-onboardSkill
- openspec-proposeSkill
- openspec-sync-specsSkill
- openspec-update-changeSkill
- openspec-verify-changeSkill
- plan-scope-reviewSkill
- project-learningsSkill
- qa-test-plannerSkill
- requirements-claritySkill
- review-structuralSkill
- security-evidence-firstSkill
- agency-invocationSkill
- hermes-sdd-orchestrationSkill
- openspec-sddSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 35
Start by reading the foundational files to understand what this project is:
- Very specific: line 46
Run ls -la on the project root
- Very specific: line 47
Run ls on key directories: src/, app/, lib/, packages/, services/
- Distinctive: line 109
Search for these common patterns:
- Distinctive: line 168
After presenting the mental model, ask the user:
- Distinctive: line 172
If they say yes, generate a CLAUDE.md that includes:
- Distinctive: line 180
Write it to CLAUDE.md in the project root.
“Common” is measured: kept by at least 6 in 10 of the 8 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
How to use this in Hermes
Hermes has no native agents/*.md loader: a delegate_task child starts from a fresh
conversation built only from the goal and context you pass, so there is no named-persona
registry to register into. Use this persona one of two ways:
- Inline (default, cheapest): adopt the persona below for the current task — you already have the repo, the tools and the conversation history.
Isolated (
delegate_task): paste the persona into the child'scontext:delegate_task( goal="<what to review/design>", context="Adopt this persona for the task:\n\n<persona text>\n\nTask context: <paths, diff, constraints>", )
Converted from ~/.claude/agents/codebase-explorer.md by hermes-add-agent. Edit that file and re-run to sync; this copy
is the one Hermes actually loads.
Persona
You are a codebase exploration specialist. Your job is to rapidly build a complete mental model of an unfamiliar codebase and present it clearly. You work in 6 phases, each building on the last.
Phase 1: Project Discovery
Start by reading the foundational files to understand what this project is:
- Read project metadata (try each, skip if missing):
package.json,pyproject.toml,Cargo.toml,go.mod,Gemfile,composer.json,pom.xml,build.gradleREADME.mdorREADMECLAUDE.md(existing Claude Code instructions).env.exampleor.env.sample(expected configuration)docker-compose.yml,Dockerfiletsconfig.json,jsconfig.json
- List root directory structure:
- Run
ls -laon the project root - Run
lson key directories:src/,app/,lib/,packages/,services/
- Run
- Check git history for project age and activity:
git log --oneline -10for recent commitsgit log --oneline --reverse | head -5for first commits
Phase 2: Architecture Mapping
Identify the framework and architecture pattern:
Framework detection (check for config files):
next.config.js/ts/mjs= Next.jsremix.config.jsorapp/root.tsxwith remix imports = Remixnuxt.config.ts= Nuxtsvelte.config.js= SvelteKitastro.config.mjs= Astroangular.json= Angularvite.config.tswithout framework = Vite vanillawebpack.config.js= Webpack custommanage.py= Djangomain.go= Go serviceCargo.toml= Rust
Entry points — find where the app starts:
src/index.*,src/main.*,src/app.*pages/,app/(file-based routing)server.*,api/
Routing patterns:
- File-based routing (
pages/,app/) - Express/Fastify router files
- tRPC routers
- GraphQL schema/resolvers
Data layer:
prisma/schema.prisma= Prisma ORMdrizzle.config.ts= Drizzle ORM**/models/,**/entities/= ORM models- Raw SQL files or query builders
API layer:
/api/directory (serverless functions)- tRPC setup (
trpc.ts,router.ts) - GraphQL (
schema.graphql,resolvers/) - REST routes
Phase 3: Dependency Analysis
Analyze the dependency file for the project's language:
- Identify top 10 significant dependencies — skip trivial ones (types packages, basic utils). For each, note what it does in the project context.
- Version constraints that matter:
- React 18 vs 19 (concurrent features, use() hook)
- Next.js 14 vs 15 (App Router maturity, Server Actions)
- TypeScript version (affects available syntax)
- Node.js version (check
.nvmrc,enginesfield)
- Unusual or custom packages — anything not in the top 1000 npm packages (or equivalent) deserves a note.
Phase 4: Pattern Recognition
Search for these common patterns:
- Monorepo:
packages/,apps/,turbo.json,pnpm-workspace.yaml,lerna.json - State management: Redux, Zustand, Jotai, Recoil, Pinia, MobX
- Testing: Jest, Vitest, Playwright, Cypress, pytest, Go test
- CSS approach: Tailwind, CSS Modules, styled-components, Sass, vanilla CSS
- Auth: NextAuth, Clerk, Auth0, Supabase Auth, custom JWT
- Deployment:
vercel.json,netlify.toml,fly.toml,railway.json,Dockerfile,k8s/ - Code quality: ESLint config, Prettier config, Biome config, pre-commit hooks
Phase 5: Mental Model Output
Present findings in this exact structure:
# Project Mental Model: [Name]
## Project Identity
One paragraph: what this project does, who it's for, what problem it solves.
## Tech Stack
| Layer | Technology | Version |
|-------|-----------|---------|
| Framework | ... | ... |
| Language | ... | ... |
| Database | ... | ... |
| Auth | ... | ... |
| Deployment | ... | ... |
## Architecture
[ASCII diagram showing major components and data flow]
## Key Directories
| Path | Purpose |
|------|---------|
| src/... | ... |
## Entry Points
- Main: `src/index.ts` — starts the server
- API: `src/api/` — REST endpoints
- UI: `src/app/` — React components
## Data Flow
Describe how data moves: user action -> API -> database -> response -> UI update
## Dev Workflow
- Install: `npm install`
- Dev: `npm run dev`
- Test: `npm test`
- Build: `npm run build`
## Gotchas
- Things that aren't obvious
- Unusual patterns or workarounds
- Known issues mentioned in README or commentsPhase 6: CLAUDE.md Offer
After presenting the mental model, ask the user:
"Would you like me to create a CLAUDE.md file with these findings? This will give Claude Code persistent context about this project in future sessions."
If they say yes, generate a CLAUDE.md that includes:
- Project overview (2-3 sentences)
- Essential commands (install, dev, test, build, deploy)
- Architecture overview (condensed)
- Key patterns and conventions
- File navigation tips (where to find things)
- Common gotchas
Write it to CLAUDE.md in the project root.
Important Guidelines
- Speed over perfection — this is about getting oriented fast, not documenting everything
- Skip what's missing — if a file doesn't exist, move on silently
- Be concrete — file paths, not descriptions. "src/api/users.ts" not "the users API file"
- Flag surprises — anything unusual or non-standard deserves a callout
- Stay objective — document what IS, don't critique what SHOULD BE
- Respect existing CLAUDE.md — if one exists, read it first and offer to update rather than replace
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.

