agentleFS
lintangknittolintangknitto/agent-skills/skills/codebase-explain/SKILL.md

codebase-explain

Skill0 starsChanged 2 months agoMITView on GitHub

Explain a repo, a feature, or how something works in plain, non-technical language, grounded in the actual code (not assumption), and write it out as a markdown file the reader can keep/share — not just a chat answer. Use when a non-developer (PM, stakeholder, new hire, support) needs to understand a codebase or a specific flow, or when the user asks to "explain this repo/feature in simple terms" and wants a document out of it. Not for API/developer-facing reference docs (those need precision and technical vocabulary, the opposite goal of this skill) and not for CLAUDE.md/AGENTS.md (that's agent-facing operational instructions, see project-bootstrap — this is human-facing comprehension).

1 other project uses 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. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    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
  1. Distinctive:

    Read the actual code before writing anything: Every claim in the output must trace back to something actually read — entry points, the main …

    line 50
  2. Distinctive:

    If something is genuinely unclear from the code (e.g.

    line 53
  3. Distinctive:

    No unexplained jargon, no assuming the reader knows what a "queue" or an "API" is — but also don't oversimplify to the point of being …

    line 58

≈ “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.

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

Codebase Explain

Turns "read the code and explain it to me like I'm not a developer" into an actual markdown file, not just a chat response that scrolls away. Grounded in code that was actually read for this — a plausible-sounding explanation that wasn't checked against the real implementation is worse than no explanation, because it reads as authoritative.

When to use

  • A non-developer (PM, stakeholder, support person, new hire) needs to understand what a repo or a specific feature does.
  • The user asks to "explain this repo/feature in simple terms" and wants something written down, not just a spoken-in-chat answer.
  • Onboarding someone non-technical who'll be working alongside the engineering team and needs the mental model without needing to read code.

When NOT to use

  • Developer/API reference documentation — that needs precision and technical terms exactly, which is the opposite goal of this skill's plain-language approach.
  • CLAUDE.md/AGENTS.md — those are operational instructions for an agent, not comprehension docs for a human; see project-bootstrap for that instead.
  • Architecture Decision Records or other docs meant for engineers who already know the codebase — this skill's whole point is removing the need for that background knowledge.

Steps

  1. Clarify scope and audience before reading anything — a whole-repo overview and a single-feature walkthrough produce very different documents, and "explain to a PM" vs "explain to a brand-new junior engineer" calibrate differently (how much jargon can stay, how much detail on the how vs just the what). Ask if it isn't already clear from the request; don't default to over-explaining or under-explaining.
  2. Read the actual code before writing anything. Every claim in the output must trace back to something actually read — entry points, the main flow, key files — not to what a project typically looks like. If something is genuinely unclear from the code (e.g. business logic that only makes sense with domain context not in the repo), say so in the output rather than guessing confidently.
  3. Write in plain language, but don't dumb down what's actually true. No unexplained jargon, no assuming the reader knows what a "queue" or an "API" is — but also don't oversimplify to the point of being inaccurate. When a technical term is genuinely necessary, use it and define it once, rather than avoiding it awkwardly.
  4. Use assets/explain-template.md as the skeleton — plain-language title, one-paragraph summary, a walkthrough of how it actually works (referencing real file/function names so a developer reading the same doc can jump to the code), repo layout (for whole-repo scope only), and a short terms list (only for terms actually used above — don't pad it with a generic glossary). Delete sections that don't apply to the scope from step 1 rather than leaving them empty.
  5. An analogy earns its place only if it adds real clarity — skip it if it doesn't, don't force one into every section.
  6. Ask where to save it before writing the file. Suggest a sensible location (e.g. docs/explained/<topic>.md) but confirm with the user — this is a new file in their repo, don't create it silently.
  7. Note the "as of" date in the output (the template has a line for this) and mention to the user that this is a snapshot — if the code changes meaningfully, the right move is regenerating the doc from current code, not hand-patching a stale one.

Reference

  • assets/explain-template.md — the markdown skeleton every output follows; delete sections that don't apply rather than leaving them empty.

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.