/explain-codebase:explain-codebasefrom explain-codebase
Explains an unfamiliar codebase to a newcomer: tech stack, entry points, directory/architecture map, key flows, and build/run/test commands. Accepts an optional path or topic to focus on.
Ships in explain-codebase. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Read the repository and produce a concise onboarding guide that lets a new developer become productive quickly. Explain what is actually there, grounded in files you read; never guess at behaviour you did not verify.
This skill is read-only. It prints the guide in the conversation. It does not create or modify any file in the target project.
Before doing any work, call TaskCreate for each phase below. Call TaskUpdate (status in_progress) when you begin a phase and TaskUpdate (status completed) when you finish it.
README*, CLAUDE.md, AGENTS.md, CONTRIBUTING*, docs/,
ARCHITECTURE*, and ADRs (adr/, docs/adr/).package.json, pom.xml, build.gradle*,
pyproject.toml, requirements*.txt, go.mod, Cargo.toml, *.csproj, Gemfile,
composer.json, Dockerfile, docker-compose*.packages/, apps/, services/).
If found, describe each package separately and how they depend on each other.Docs can be stale: when a doc claim is load-bearing, confirm it against the code or manifest, and flag any contradiction you find.
Glob/ls), skipping node_modules, .git,
dist, build, target, venv, and other generated or vendored folders.main functions, CLI bin entries, server bootstrap files,
scripts in manifests, route/controller registration, event handlers, CI workflows..github/workflows/). Prefer what CI actually runs.Pick the 2-4 most important flows (for example: a request from route to database, a CLI
command from argument parsing to output, the build pipeline from source to artifact).
For each, follow the call path across files, reading the code, and record the ordered
file:line hops. Keep it to the main path; skip error branches unless they matter.
For a small repo, fewer flows are fine. For a focused request, trace the flows that touch the named module.
Print the guide in this structure, omitting a section only when it truly does not apply:
# <Project name> - Codebase Guide
## What it is
One short paragraph: purpose, who uses it, what problem it solves.
## Tech stack
Languages, frameworks, runtime versions, key libraries, datastores.
## Repository map
Tree or table of the important directories/files and what each is for.
## Entry points
Where execution starts, with file paths.
## How it fits together
The architecture in a few sentences or a simple text diagram: components and how they talk.
## Key flows
For each traced flow: a title and the ordered `path/to/file:line` steps.
## Build, run and test
Exact commands, copy-pasteable, with prerequisites.
## Conventions and gotchas
Coding conventions, required checks, generated files, non-obvious pitfalls.
## Where to start
3-5 suggested first files to read, and what to look for in each.
Rules for the guide:
src/foo/bar.ts:42); every claim should be traceable to a file.What SKILL.md sets; muted values are Claude Code's defaults
sonnetnpx claudepluginhub dan323/easier-life-skills --plugin explain-codebaseOther plugins' skills for the same job