agentleFS
ZunoSmartLabsZunoSmartLabs/zsl-superpowers/skills/engineering/teach-me-the-codebase/SKILL.md

teach-me-the-codebase

Skill2 starsChanged 52 days agoMITView on GitHub

On-the-fly conversational tutor that teaches you an unfamiliar repo's domain, architecture, and conventions interactively — reading the canonical docs and code, never writing them. Use when onboarding to a new codebase, when you ask to be taught or walked through how a repo works, or when you want to understand a project's structure before changing it.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    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:

    Get your bearings from the canonical docs first: Read CONTEXT.md, the ADRs, and CLAUDE.md/AGENTS.md before diving into code — they're the …

    line 41
  2. Very specific:

    If the user wants something to refer back to, offer to render a one-page summary of what you covered as a self-contained HTML cheat-sheet …

    line 59

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Teach Me The Codebase

An interactive onboarding tutor. You're new to this repo (or returning to a corner of it you've forgotten) and want to understand it — the domain it models, how it's put together, and the conventions it follows — before you touch anything. This skill teaches that, conversationally, in the session. It produces no persisted artefacts: there are no lessons/, no learning-records/, no progress files. The value is the understanding you walk away with, not a folder of notes.

Teacher-only boundary

This skill reads, it never writes the repo's canonical knowledge. It is a teacher, not an author:

  • It reads the existing CONTEXT.md (and CONTEXT-MAP.md if the repo is multi-context), the ADRs in docs/adr/, CLAUDE.md / AGENTS.md, and the code itself.
  • It never writes CONTEXT.md, never creates a parallel glossary, never edits ADRs. If, while teaching, you hit a term the docs don't define or a decision the ADRs don't record, that's a gap in the canonical docs — and authoring them is a different job. Hand it off:

    • An undocumented domain term → /grill-with-docs (it sharpens the term and writes it into CONTEXT.md using the domain-modeling CONTEXT format).
    • A load-bearing decision the code makes but no ADR explains → /grill-with-docs again, which offers an ADR via the domain-modeling ADR format when the decision is hard-to-reverse, surprising, and a real trade-off.

    Surface the gap to the user and offer the hand-off; don't silently paper over it with your own glossary.

How to teach

  1. Get your bearings from the canonical docs first. Read CONTEXT.md, the ADRs, and CLAUDE.md/AGENTS.md before diving into code — they're the repo's own account of its domain language, decisions, and conventions. Use that vocabulary when you explain, so the user learns the repo's real terms (not invented ones).
  2. Ask what they want to learn, and at what altitude. "The whole system at a glance", "how requests flow end-to-end", "this one module", "the domain model" — pick a starting altitude and zoom from there.
  3. Teach in a loop, one thread at a time. Explain a piece, ground it in the actual files (cite path:line), then check understanding and follow the user's questions. Prefer the code and docs as evidence over assertion. When the user uses a fuzzy term, reach for the canonical one from CONTEXT.md and say where it came from.
  4. Connect each piece back to the whole. Architecture is only useful in context — relate a module to the layer it sits in, the seam it lives behind, the ADR that shaped it.

Optional cheat-sheet (on demand, never persisted)

If the user wants something to refer back to, offer to render a one-page summary of what you covered as a self-contained HTML cheat-sheet via the md-to-html skill — handed to them as a file to keep or discard. This is opt-in and ephemeral: offer it, don't auto-generate it, and never commit it into the repo (no docs/onboarding/, no checked-in notes). The teaching lives in the conversation; the cheat-sheet is a convenience, not an artefact the repo carries.

When to reach for a different skill

  • The docs are missing the term/decision you needed → /grill-with-docs (author it properly; this skill won't).
  • You want to change the architecture, not just understand it → /improve-codebase-architecture.
  • You're about to build a slice and want to align on the plan → /grill-with-docs then /to-prd.

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.