agentleFS
KhaledSaeed18KhaledSaeed18/dotclaude/skills/engineering/explain-codebase/SKILL.md

explain-codebase

Skill5 starsChanged 5 months agoMITView on GitHub

Onboard to an unfamiliar codebase by mapping its architecture, entry points, and data flow. Use when starting work in a new or unknown repository and you need a navigable mental model fast.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read the README, docs, and any CONTRIBUTING or architecture notes before reading code, but verify their claims against the tree rather than …

    line 12
  2. Distinctive:

    Call out where state lives (databases, caches, queues, external services) and how it's accessed.

    line 25
  3. Very specific:

    Prefer precise file:line references over prose.

    line 38

“Common” is measured: kept by at least 6 in 10 of the 4 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Build a navigable map of this repository so the reader can find their way around and start contributing. Work from evidence in the repo, not assumptions about the stack.

Orient first

  • Identify the project type and stack from manifests and config (e.g. package.json, pyproject.toml, go.mod, Cargo.toml, pom.xml, Gemfile, Dockerfiles, CI config). Note the build, test, and run commands.
  • Read the README, docs, and any CONTRIBUTING or architecture notes before reading code, but verify their claims against the tree rather than trusting them blindly.
  • Get the shape of the tree: the top-level directories and what each is responsible for.

Map the architecture

  • Find the entry points: CLI mains, server bootstraps, route registrations, scheduled jobs, queue consumers, lambda/handler exports, UI roots. List them with file:line.
  • Identify the layers / modules and how they depend on each other (e.g. interface → service/domain → data access → external integrations). Note the boundaries that matter.
  • Locate cross-cutting concerns: config/env loading, auth, logging, error handling, database/connection setup, feature flags.

Trace the data flow

  • Pick one or two representative operations (or whatever the user asked to focus on) and follow them end to end: input → validation → core logic → persistence/external calls → response.
  • Show each path as a short sequence of file:line hops the reader can click through.
  • Call out where state lives (databases, caches, queues, external services) and how it's accessed.

Report

Produce, concisely:

  1. Summary: one paragraph on what this project is and does.
  2. Architecture map: the layers/modules and their responsibilities.
  3. Entry points: where execution starts, with paths.
  4. Key flows: the traced paths.
  5. Conventions & gotchas: naming, patterns, where to add a new feature, anything surprising.
  6. Where to look next: the 3 to 5 files most worth reading first.

Prefer precise file:line references over prose. Flag anything you were unsure about rather than guessing.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.