codebase-analysis
Skill3 starsChanged 7 days agoMITView on GitHub
End-to-end source code analysis of any repository, any language or size — architecture map (modules, layers, data flow, dependencies), code quality and technical-debt report, security review (vulnerabilities, leaked secrets, risky dependencies) and onboarding guide ("how does this project work"). Token-efficient recon first, then deep dives only where needed; every finding cites file:line evidence. Use when the user says "analyze this repo/codebase", "explain this project", "audit the code", "tech debt", "security scan", "how does X work here", or opens an unfamiliar project.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- NomadicDaddy/aiddtheir own version, first seen Nov 15, 2026
- mahdy-gribkov/arcanatheir own version, first seen Nov 8, 2026
- medy-gribkov/arcanatheir own version, first seen Nov 1, 2026
- monsefchafik/claude-code-skillstheir own version, first seen Oct 20, 2026
- ArduPilot/MethodicConfiguratortheir own version, first seen Oct 8, 2026
- tony-adamson/groundworktheir own version, first seen Jul 15, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- ArduPilot/MethodicConfigurator★ 175same name
- Ycsyyds/codebase-analysis-skill★ 34same name
- ptsilivis/autonomousguy★ 33same name
- tony-adamson/groundwork★ 4same name
- mahdy-gribkov/arcana★ 1same name
- medy-gribkov/arcana★ 1same name
- NomadicDaddy/aidd★ 1same name
- enzowyf/codebase-analysis★ 0same name
- monsefchafik/claude-code-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 repository26 other files it gives its agents.
- skills/ai-integration/references/agents.mdAGENTS.md
- agent-behaviorSkill
- agent-orchestraSkill
- ai-integrationSkill
- analysisSkill
- autonomous-loopSkill
- brand-ipSkill
- commerce-integrationsSkill
- company-setupSkill
- content-socialSkill
- daily-assistantSkill
- diagrams-mappingSkill
- growth-operationsSkill
- guided-discoverySkill
- infrastructure-planningSkill
- market-researchSkill
- memorySkill
- plannerSkill
- product-buildSkill
- researchSkill
- root-cause-analysisSkill
- security-operationsSkill
- software-engineeringSkill
- token-economySkill
- visual-designSkill
- workflow-automationSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
5
Distinctive
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 29
Write a 10-line recon summary before going deeper.
- Distinctive: line 32
Follow the 2–3 most important flows end to end (e.g.
- Distinctive: line 33
Read hotspots and boundaries (API, DB, external calls, auth) — not every file.
- Distinctive: line 36
Prefer real tools over reading: linters, type checkers, test runners, dependency auditors, secret scanners, complexity tools — run what's …
- Distinctive: line 46
Use the report template inside each mode file.
“Common” is measured: kept by at least 6 in 10 of the 7 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 Analysis
Rule: every claim cites evidence (path/file.ext:line or a command output). No evidence → mark it as an assumption.
1. Pick the mode(s), load only those guides
| User wants | Mode file |
| How it is built: modules, layers, data flow, dependencies | references/modes/architecture.md |
| Code health: complexity, duplication, dead code, tests, debt | references/modes/quality.md |
| Security: vulnerabilities, secrets, dependencies, config | references/modes/security.md |
| Learning the project: setup, key flows, where to change things | references/modes/onboarding.md |
"Full analysis" = all four, in that order (architecture feeds the others). Recon is always first.
2. Phase 1 — Recon (cheap, always)
Goal: a mental model in a few thousand tokens. Commands: references/recon.md.
- Shape: file tree (excluding vendored/generated), languages, size per directory.
- Identity: README, manifests (package.json, pyproject, go.mod, Cargo.toml, pom.xml, …), build/CI config, Dockerfiles.
- Project type: classify (web, mobile, embedded, …) and use the matching layer guide from the
software-engineeringskill if installed (its per-type reference files). - Entry points: main functions, servers/routes, CLI commands, app bootstrap, job schedulers.
- Activity: recent commits, most-changed files (churn), contributors — churn × complexity marks hotspots. Write a 10-line recon summary before going deeper.
3. Phase 2 — Targeted deep dives
- Follow the 2–3 most important flows end to end (e.g. a request, a job, a user action) from entry point to storage.
- Read hotspots and boundaries (API, DB, external calls, auth) — not every file.
- Large repos (> ~2k files): analyze per top-level module; delegate broad searches to sub-agents or cheaper models and keep only their conclusions; sample representative files instead of reading all.
- Prefer real tools over reading: linters, type checkers, test runners, dependency auditors, secret scanners, complexity tools — run what's available and cite their output.
4. Phase 3 — Synthesize
- Group findings; rank by impact × likelihood (security/quality) or importance (architecture/onboarding).
- Each finding: what, where (file:line), why it matters, recommended action, effort (S/M/L).
- Separate facts from opinions. Note what was not analyzed (scope limits).
- Diagrams: Mermaid for structure and flows (see
diagrams-mappingskill if installed).
5. Output
Use the report template inside each mode file. Combined analysis = one document:
- Executive summary (5 bullets max) → 2. Architecture → 3. Quality → 4. Security → 5. Onboarding → 6. Prioritized action list. Save as a file in the repo or scratch area when long; give the user the summary in chat.
6. Anti-patterns
Reading the whole repo file by file · generic advice not tied to this code ("add more tests") · findings without locations · reporting linter noise as insights · guessing behavior instead of running it · judging style choices that are consistent within the project.
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.

