codebase-summary
Skill1 starsChanged 6 months agoMITView on GitHub
Generate a structured summary of any codebase — architecture overview, tech stack, module map, and full API inventory with a Mermaid diagram. Use when asked to summarize a codebase, explain a project structure, map an API surface, generate architecture documentation, onboard onto a new repo, or produce a technical overview. Triggers on phrases like "summarize this codebase", "what does this project do", "map the architecture", "list all endpoints", "give me an overview", "document this repo", or any request to understand an unfamiliar codebase. Also use when someone uploads or points at a project directory and asks "what is this?" or "how is this structured?
1 other project uses a version of this.
Adopted by
Most recently taken up by
- smyrick/skillstheir own version, first seen Sep 2, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- smyrick/skills★ 1same 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 repository31 other files it gives its agents.
- skills/book-to-skill/AGENTS.mdAGENTS.md
- skills/book-to-skill/CLAUDE.mdCLAUDE.md
- ai-paper-digestSkill
- battery-statusSkill
- book-to-skillSkill
- codebase-mapSkill
- codebase-overviewSkill
- concept-wiki-htmlSkill
- frontend-designSkill
- gh-address-commentsSkill
- gh-fix-ciSkill
- githubSkill
- grounded-file-qaSkill
- imagegenSkill
- learn-codebaseSkill
- lecture-note-writerSkill
- ning-python-scientific-plottingSkill
- openai-docsSkill
- plugin-creatorSkill
- ponytail-auditSkill
- ponytail-debtSkill
- ponytail-gainSkill
- ponytail-helpSkill
- ponytail-reviewSkill
- ponytailSkill
- repo-quick-scanSkill
- review-agentSkill
- skill-creatorSkill
- skill-installerSkill
- use-code-wikiSkill
- yeetSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
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 18
Use the platform's equivalent capabilities while preserving the specified roles, parallelism, and prompts.
- Distinctive: line 22
Before starting, establish two paths:
- Distinctive: line 27
All files written during the analysis go in the output directory:
- Distinctive: line 54
Follow all three phases in order.
- Distinctive: line 64
Inventing architecture patterns: If the code doesn't have a clear MVC separation, don't impose one.
- Very specific: line 65
Missing the actual entry points: Every codebase has a "start here" — main(), app.listen(), if __name__, the CLI entrypoint.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Codebase Summary
You are a technical analyst. Your job is to produce a clear, accurate, structured summary of a codebase — the kind of document that lets a new engineer understand the project in 10 minutes.
Platform terminology
This skill is agent-neutral. In the methodology:
- Task tool means the coding agent's delegation or sub-agent mechanism.
researchagent means a delegated agent optimized for focused codebase exploration.subagent_typemeans the equivalent delegated-agent role supported by the current platform.
Use the platform's equivalent capabilities while preserving the specified roles, parallelism, and prompts.
Setup
Before starting, establish two paths:
- Target: the codebase to analyze (from the user's request or the current working directory)
- Output directory: where all artifacts go. Ask the user if not specified, or default to
~/codebase-summary/<repo-name>/run-<N>where<N>is the next unused integer. Create it if it doesn't exist.
All files written during the analysis go in the output directory:
SUMMARY.md— human-readable summary with architecture diagram (Phase 2)summary.json— machine-readable structured output (Phase 3)
Subagents do NOT write files — they return results to you via the Task tool. You write all files.
Core Principles
Accuracy over completeness
Report what you can verify by reading the code. If a module's purpose is unclear, say so — don't guess. An honest "purpose unclear from code inspection" is better than a plausible-sounding fabrication.
Follow the code, not the README
READMEs go stale. If the README says "supports PostgreSQL and MySQL" but the code only imports pg, report what the code shows and note the discrepancy. The README is a hypothesis; the source code is the truth.
Calibrate depth to the codebase
A 200-line CLI tool needs a paragraph, not a 10-page report. A monorepo with 15 services needs more. Match the output to the input. Padding a summary to look thorough is the same failure mode as padding a security report.
APIs mean all external interfaces
"API" isn't just REST endpoints. It includes CLI commands, exported library functions, gRPC services, WebSocket handlers, message queue consumers, scheduled jobs — anything an external caller or system interacts with. Inventory them all.
Workflow overview
Follow all three phases in order. Read the referenced files from this skill's directory before executing each phase.
- Scan — Run Phase 1 from ANALYSIS.md to explore the codebase with parallel research agents. Produces raw intelligence about the project.
- Synthesize — Run Phase 2 from ANALYSIS.md to combine agent outputs into
SUMMARY.mdwith a Mermaid architecture diagram. - Structure & Validate — Run Phase 3 from ANALYSIS.md to produce
summary.jsonconforming tosummary-schema.json, validated byvalidate-summary.cjs.
Anti-Patterns to Avoid
- Listing files without explaining purpose. A directory tree is not a summary. Every module mentioned needs a one-sentence explanation of what it does and why it exists.
- Copying the README as the summary. The README is an input, not the output. Your job is to verify claims against the actual code.
- Inventing architecture patterns. If the code doesn't have a clear MVC separation, don't impose one. Describe what's there, not what should be there.
- Missing the actual entry points. Every codebase has a "start here" —
main(),app.listen(),if __name__, the CLI entrypoint. Find it. If you can't find it, that's a finding worth reporting. - Ignoring configuration and environment. What env vars does it need? What config files does it read? What external services does it connect to? These are part of the architecture.
- Over-documenting trivial code. A
utils/formatDate.jsdoesn't need its own section. Group utilities and mention them in aggregate. - Generating a Mermaid diagram that doesn't match the prose. The diagram and the written summary must describe the same architecture. If they disagree, one of them is wrong.
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.

