πΊοΈ codebase-explainer
Onboarding guide for any repo, with Mermaid architecture diagrams. A free, open-source Agent Skill for Claude Code, Cline, Cursor, Codex and 75+ AI agents.
Install codebase-explainer
# Claude Code (all 51 skills)
/plugin install all-skills --marketplace milad-ahmd/agent-skills
# Cursor, Codex, Cline, Windsurf, Copilot + 75 more agents
npx skills add milad-ahmd/agent-skills --skill codebase-explainer
# Shell installer
curl -fsSL https://raw.githubusercontent.com/milad-ahmd/agent-skills/main/install.sh | bash -s -- codebase-explainerIncluded in packs: startup-cto-pack, developer-pack
What to say to your agent
Explain this codebaseWhere do I start in this repo?
When it triggers
Produces an onboarding guide for an unfamiliar repository with an architecture overview, Mermaid diagrams, entry points, data flow, key modules, and the "dangerous" files to touch carefully. Use when the user asks to explain a codebase, onboard to a repo, map the architecture, or "where do I start?".
Full skill instructions (SKILL.md)
Codebase Explainer
Turn "I just cloned this and I'm lost" into "I know where everything lives" in 10 minutes.
1. Explore (breadth first, read-only)
- Folder tree (2β3 levels, ignoring
node_modules,.git,dist,vendor,.venv). - Manifests, README, docs, CI workflows, Dockerfiles, env examples.
- Entry points:
main,index,app,server, CLI bins, route definitions,cmd/, mobileApp/main.dart. - Data layer: ORM models, schema or migrations, API clients.
- Hotspots:
git log --since=1.year --name-only --pretty=format: | sort | uniq -c | sort -rn | head -20.
2. Write ARCHITECTURE.md (or show it inline if the user prefers)
# Architecture of <project>
## TL;DR
3 sentences: what it does, main tech, how it's deployed.
## Map
| Path | Responsibility |
## How a request flows
β```mermaid
sequenceDiagram
Client->>API: POST /orders
API->>Service: createOrder()
Service->>DB: insert
β```
## Components
β```mermaid
flowchart LR
web[Web app] --> api[API] --> db[(Postgres)]
β```
## Key concepts & glossary
Domain terms and what they mean in code.
## β οΈ Handle with care
Files that are complex, central, frequently changed, or poorly tested β and why.
## Getting started
Run, test, debug commands (verified from the repo).
## Where to make common changes
"Add an API endpoint β ...", "Add a screen β ...", "Add a DB column β ..."
Rules
- Every claim must point to real paths. Never guess at structure you haven't read.
- Diagrams must be valid Mermaid and stay small (around 12 nodes or fewer). Use several small diagrams rather than one huge one.
- Explain why things are structured this way when the code or commit history shows it.
- List open questions you couldn't answer instead of making things up.
View source on GitHub β Star the collection