agentleFS
ankitvashisht12ankitvashisht12/explain-it/SKILL.md

explain-it

Skill2 starsChanged 4 months agoMITView on GitHub

Generate beginner-calibrated, self-contained HTML explainer sites for any codebase change or subsystem — a root primer page plus one page per topic, all linked by a shared sidebar. Use whenever the user asks to "explain this code/PR/diff/bug/architecture in simple terms", wants an "explainer", "walkthrough", "guide for someone with no context", "onboarding doc", or says "I have no context of this, explain like I'm a beginner". Also use when a reviewer wants a visual before/after story of a change instead of raw diffs.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. sergeyklay/.agents★ 6same name
    2. TylerAkins/ai-agent-skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 3 are distinctive, and 4 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.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never explain code you have not read.

    line 23
  2. Very specific:

    Ask the user where to put the folder only if no location is obvious.

    line 41
  3. Very specific:

    Follow references/writing-guide.md for the method — read it before writing your first page.

    line 47
  4. Distinctive:

    Separate bugs from decisions: If something is a defensible product choice rather than a defect, present it as a decision with the …

    line 65
  5. Very specific:

    Keep each page fully self-contained (all CSS inline in the page).

    line 77
  6. Very specific:

    Follow references/design-system.md for tokens and component rules.

    line 80
  7. Distinctive:

    No external dependencies except the Google Fonts link already in the template (the font stack falls back cleanly offline) and no JS beyond …

    line 84

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

explain-it

Turn code you have investigated into a small static HTML site that a smart reader with zero context on this codebase can follow: a root page that builds the mental model, one page per topic, and a sidebar connecting them.

The bar to hit: "simple language that is not too simple and not too difficult." Never talk down; never assume repo knowledge.

Workflow

1. Investigate before you explain

Never explain code you have not read. For every topic, read the actual source: the changed lines, the enclosing function, and at least one caller, so you can answer "when does this code even run?" with a true story. If a claim came from someone else (a review comment, an issue), verify it against the code first and say so if it doesn't hold.

2. Plan the site

  • One root page (index.html): the primer. It builds the reader's mental model of the system in ~2 minutes and links to every topic page.
  • One page per topic (01-<slug>.html, 02-<slug>.html, …): each page explains one change, bug, decision, or subsystem. 3–7 pages is the sweet spot; merge topics rather than exceed ~9.
  • A shared sidebar on every page listing all pages in reading order, with the current page highlighted. Pages are plain files linked with relative <a href> — the site must work opened directly from disk (file://), so no routers, no build step, no external JS.

Ask the user where to put the folder only if no location is obvious; otherwise create a sensibly named folder next to the work (e.g. docs/explainers/<topic>/) and say where you put it.

3. Write each page

Follow references/writing-guide.md for the method — read it before writing your first page. The non-negotiables:

  • Primer first. The root page introduces every domain concept the topic pages need, each with one concrete metaphor (e.g. "a release is a photocopy; a running job pins one photocopy"). Introduce a metaphor once, then reuse it verbatim everywhere. Never stack two metaphors for one concept.
  • Ground every topic in runtime. Each topic page opens with a "When does this code even run?" story: 2–4 actor beats (User does X → System runs function Y → the tiny job inside it). Real function names in code font, alongside — never instead of — the plain-language story.
  • Show the change as a diff. Old vs new code in red/green diff blocks with the file path in the header, trimmed to the crux, with 1–3 inline comments pointing at why — not narrating what.
  • Quantify the "why". "Slow" is banned; "hundreds of KB per request, ~99% of the time for nothing" is the standard. Same for risk: name the concrete input/state and the wrong outcome.
  • Separate bugs from decisions. If something is a defensible product choice rather than a defect, present it as a decision with the trade-off, not as a mistake.
  • End the root page with a scoreboard: a status table of every item (done / proposed / parked) with its location in the codebase.

4. Build the HTML

Copy references/site-template.html as the starting point for every page — it contains the design tokens, the sidebar, and one working example of every component (story block, callout, diff block, status table, pills). Then:

  • Keep each page fully self-contained (all CSS inline in the page). The sidebar is duplicated into each page with the current item marked class="on".
  • Follow references/design-system.md for tokens and component rules. Keep the palette, spacing, and type scale as given so multi-page sites look like one system. The template ships a light/dark toggle and a collapsible sidebar — carry both into every page rather than dropping them.
  • No external dependencies except the Google Fonts link already in the template (the font stack falls back cleanly offline) and no JS beyond the template's theme-toggle snippet.

5. Verify before handing over

Open or render the root page and at least one topic page (or re-read them) and check: every sidebar link resolves, every code identifier mentioned in prose exists in the codebase with that exact spelling, every diff compiles conceptually against the real file, and the scoreboard statuses are current. Then tell the user the folder path and open the root page for them if the environment allows.

Common pitfalls

  • Explaining from memory of the conversation instead of the code — the explainer inherits every stale claim. Re-read the source.
  • Metaphor drift: calling it "photocopy" on one page and "frozen copy" on the next. One term, everywhere.
  • Diff blocks that paste 60 lines verbatim. Trim to the crux; keep 2–4 context lines around it.
  • Prose that narrates the diff line by line. The diff shows what; prose only carries why it matters and when it runs.
  • A sidebar that only exists on the index page. Every page carries the full sidebar.
  • Baby-talk ("the computer remembers things in a special box"). The reader is smart — they just don't know this codebase.

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.