learn-codebase
Skill3 starsChanged 4 months agoMITView on GitHub
Learn and explain an unfamiliar codebase by first discovering which agent skills are installed, then applying the ones relevant to this repo's stack to map its architecture, modules, data flow, conventions, and how to build/run/test it. Produces an in-conversation briefing and a saved docs/CODEBASE_OVERVIEW.md, and creates a README.md and AGENTS.md/CLAUDE.md when the repo has none. Use when the user asks to "understand/learn/explain this repo", "onboard me to this codebase", "give me an overview of the project", "how does this codebase work", "this repo has no README/AGENTS.md", or when starting work in a repo you have not seen before.
15 other projects use a version of this.
Adopted by
Most recently taken up by
- ashrafha-cyber/Skillstheir own version, first seen Nov 22, 2026
- MMACABRE/SKILLStheir own version, first seen Nov 8, 2026
- siostechlabs/brainygym-skillstheir own version, first seen Oct 25, 2026
- susantedit/claude-skillstheir own version, first seen Oct 20, 2026
- oivanfelipe/claude-skillstheir own version, first seen Oct 13, 2026
- rikilamadrid/lorekeepertheir own version, first seen Oct 13, 2026
Used with
Projects with it also use oh-my-issues, what-the and 10 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.
tuliosalustiano27Skilloh-my-issues
Cluster a GitHub issue backlog by root cause into a small set of plan-master issues, redirect children with a standardized comment, and bundle architectural-fix PRs that close clusters atomically. Use when an issue tracker has accumulated dozens of reports that share underlying defects, when asked to triage / consolidate / cluster / dedupe issues, when asked to build a plan series or roadmap from open issues, or when routing a new incoming bug into an existing plan.
Also in 4 projects that use this
tuliosalustiano27Skillwhat-the
What the? Use when the user wants a plain-English breakdown of something technical — the who, what, where, why, and when.
Also in 4 projects that use this
thedotmackSkillpathfinder
Map a codebase into feature-grouped flowcharts, identify duplicated concerns across features, and propose a unified architecture. Use when asked to "find the ideal path," unify duplicated systems, or audit architecture before a refactor. Emits a proposed unified flowchart plus per-system /make-plan prompts.
Also in 6 projects that use this
vikas8520-coderSkillcli-health
Check server health, component status, and live metrics from the CLI. Run `health`, `health components`, and `health watch` for a real-time dashboard of circuit breakers and provider status.
Also in 3 projects that use this
tunnckoCoreSkillhow-it-works
Use for 'how does X work', code walkthroughs before changing something, and placement / ownership / layering questions ('where should this live', 'which package owns this', 'is this the right layer'). Explains subsystem architecture, runtime flow, onboarding mental models. Can critique architecture. Use why for motivation.
Also in 4 projects that use this
TrecekSkillmake-plan
Create implementation plans through deep codebase understanding. Use when user asks to create, devise, or write a plan. Leverages subagents to explore approaches, understand systems, and design aligned solutions.
Also in 4 projects that use this
- +1 more from tuliosalustiano27
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- ktaletsk/learn-codebase★ 98same name
- magnusrodseth/dotfiles★ 3same name
- ashrafha-cyber/Skills★ 1same name
- gcapodeferro02/my-agent-skills★ 1same name
- lyh843/AgentSkills★ 1same name
- madeehahassan/plsbuild-os★ 1same name
- MMACABRE/SKILLS★ 1same name
- rikilamadrid/lorekeeper★ 1same name
- rikilamadrid/pathfinder★ 1same name
- Thingscorp/skills★ 1same name
5 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.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- app-idea-researchSkill
- apple-app-shipSkill
- apple-designSkill
- docs-update-expertSkill
- hugo-expertSkill
- hugo-write-postSkill
- podman-browserSkill
- terminal-screenshotsSkill
- template-skillSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 6 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 39
Do not hardcode a skill catalog — always read the live list, since installed skills change.
- Very specific: line 43
Read only what's cheap and decisive before committing to skills:
- Very specific: line 52
Monorepo?: check for workspaces (pnpm/yarn/npm workspaces, packages/*, apps/*, Cargo/Go workspaces) and analyze each package, not just the …
- Very specific: line 77
When a skill fits, read its SKILL.md and apply its guidance during analysis.
- Distinctive: line 107
Check the repo root (and, in a monorepo, only the root unless the user asks for per-package docs).
- Distinctive: line 108
Use the templates in references/bootstrap-docs.md.
- Very specific: line 110
README: if no README* file exists (any case or extension, e.g.
- Very specific: line 112
Agent guidance: if none of these exist, create AGENTS.md plus a CLAUDE.md that imports it: AGENTS.md, CLAUDE.md, GEMINI.md, …
- Distinctive: line 115
If only some exist, leave them alone.
- Distinctive: line 119
Only create files that are missing.
- Distinctive: line 120
If an existing one looks stale or thin, say so in the briefing and don't edit it.
- Distinctive: line 126
Write the report and any bootstrapped files but do not commit them automatically — leave that to the user.
“Common” is measured: kept by at least 6 in 10 of the 15 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
Learn Codebase
Overview
Orchestrate the other installed skills to understand a codebase. First find out what
skills exist, pick the ones that fit this repo, then use them to produce a briefing plus a
saved docs/CODEBASE_OVERVIEW.md. If the repo has no README or no agent guidance file, create
them from the same analysis.
Workflow
- Discover skills — see what's available.
- Detect the stack — cheap signals reveal languages/frameworks/tooling.
- Select relevant skills — match stack + task to skills.
- Analyze — apply the selected skills to learn the repo.
- Output — deliver a briefing and write
docs/CODEBASE_OVERVIEW.md. - Bootstrap missing docs — create
README.mdandAGENTS.md+CLAUDE.mdif absent.
1. Discover available skills
The agent's injected <available_skills> list is the primary source — read it first.
It is frequently truncated ("Additional skills available…"), so when full descriptions
are needed for selection, run the bundled scanner to recover complete name: description
pairs:
scripts/list_skills.py # scans ~/.agents/skills, ~/.claude/skills, ./.claude/skills, ./skills
scripts/list_skills.py /path/to/skills # add a non-standard locationInvoke it by its full path in this skill's directory — your cwd is usually the target repo, not the skill folder.
Do not hardcode a skill catalog — always read the live list, since installed skills change.
2. Detect the stack
Read only what's cheap and decisive before committing to skills:
- Docs first:
README,AGENTS.md/CLAUDE.md,CONTRIBUTING,docs/— the highest-signal source for purpose, conventions, and the real build/run/test commands. Note which of these are missing. Step 6 needs that list. - Manifests / lockfiles:
package.json,pyproject.toml,go.mod,Cargo.toml,*.csproj,Gemfile,pom.xml,Package.swift,*.xcodeproj. - Config: framework configs (next.config, vite, tailwind, astro),
Dockerfile, compose files, CI under.github/,Makefile. - Monorepo?: check for workspaces (pnpm/yarn/npm
workspaces,packages/*,apps/*, Cargo/Go workspaces) and analyze each package, not just the root. - Shape: top-level dirs, file-extension histogram, entry points, test dirs.
Skip vendored/generated dirs (node_modules, .git, dist, build, target, vendor,
.venv) — they skew signals and waste effort.
3. Select relevant skills
Match stack signals and the user's goal to skills from step 1. Selection is category-based — map signals to the kind of skill, then pick whatever concrete skills in the live list fit. Only pick skills that clearly apply; ignore the rest.
| Signal / goal | Skill category to look for | Examples often present |
| Any codebase | Structure & design comprehension | codebase-design, code-review |
| Understanding tests / adding them | Testing practice | tdd, swift-testing-pro |
| Bug or unclear failure | Debugging | diagnosing-bugs |
| TypeScript / JS | Language deep-dives | typescript-advanced-types |
| React / Next / Vercel | Framework guidance | vercel-react-best-practices |
| Swift / Apple platforms | Framework guidance | swiftui-pro, swiftui-expert-skill, apple-design |
| Frontend / UI | Design & UX | frontend-design |
| Docs to read/produce | Summarization & writing | summarize, writing-for-agents |
| "Find a skill for X" gap | Skill discovery | find-skills |
When a skill fits, read its SKILL.md and apply its guidance during analysis. Prefer one or two high-leverage skills over loading many.
4. Analyze
Apply the selected skills to trace the repo end to end and capture:
- Purpose — what the project does and who uses it.
- Architecture — major components/modules and their responsibilities and boundaries.
- Data & control flow — request/render/job lifecycles; where state lives.
- Entry points — how execution starts (main, server, CLI, routes).
- Build / run / test — the exact commands, from manifests and CI.
- Conventions — patterns, naming, error handling, folder structure the repo follows.
- Risks / rough edges — TODOs, dead code, fragile spots, missing tests.
For large repos, dispatch parallel explore sub-agents on independent areas (e.g. backend,
frontend, infra) and merge findings. Verify claims against the code — don't infer from names.
5. Output
Deliver both:
- A concise briefing in the conversation (lead with purpose + architecture).
- A written report at
docs/CODEBASE_OVERVIEW.mdin the analyzed repo, following references/report-template.md. Create thedocs/folder if it doesn't exist. Anchor the report with the current date and commit SHA. If the file already exists, reconcile/update it rather than blindly overwriting.
6. Bootstrap missing docs
Check the repo root (and, in a monorepo, only the root unless the user asks for per-package docs). Use the templates in references/bootstrap-docs.md.
- README: if no
README*file exists (any case or extension, e.g.readme.md,README.rst,README.txt), createREADME.md. - Agent guidance: if none of these exist, create
AGENTS.mdplus aCLAUDE.mdthat imports it:AGENTS.md,CLAUDE.md,GEMINI.md,.github/copilot-instructions.md,.github/instructions/,.cursorrules,.cursor/rules/,.windsurfrules,.clinerules. If only some exist, leave them alone. Don't add a second, parallel set.
Rules:
- Only create files that are missing. Never overwrite, rename, or restructure an existing file. If an existing one looks stale or thin, say so in the briefing and don't edit it.
- Build the content from the step 4 analysis, not from assumptions. Take commands from manifests and CI. Leave out any section you couldn't verify.
- Link both new files to
docs/CODEBASE_OVERVIEW.mdinstead of copying the architecture into them. - In the briefing, list which files were created and which already existed.
Write the report and any bootstrapped files but do not commit them automatically — leave that to the user.
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.

