agentleFS
Avr8Avr8/claude-skills/skills/pr-explainer-quiz/SKILL.md

pr-explainer-quiz

Skill0 starsChanged 21 days agoMITView on GitHub

Explain a pull request, diff, commit range or branch to a human reviewer — what changed, why, how data/control flows now, with a Mermaid diagram — then run a short interactive quiz to check they actually understood it before approving. Use whenever someone asks "explain this PR", "walk me through this diff", "help me review", "what does this change do", wants to onboard onto a teammate's change, or worries they're rubber-stamping AI-written code they don't understand.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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 PR description and linked issue if any.

    line 18
  2. Distinctive:

    Ask 3–5 questions, one at a time, waiting for the answer before the next.

    line 28
  3. Distinctive:

    Avoid trivia ("what's the new function called?").

    line 34
  4. Distinctive:

    After each answer: say whether it's right, and give the correct explanation in 1–3 sentences with a code reference.

    line 36

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

PR explainer + comprehension quiz

AI-assisted coding makes it easy to approve code you never really understood. This skill explains a change at the level a reviewer needs, then checks understanding with a few pointed questions — so "LGTM" means something.

1. Gather the change

Pick whichever applies:

gh pr view <num> --json title,body,baseRefName,headRefName,files   # GitHub PR
gh pr diff <num>
git diff <base>...<head>                                            # branch
git show <sha>                                                     # single commit

Read the PR description and linked issue if any. Then read the surrounding code of changed functions (callers, callees, tests) — a diff alone hides the context that matters.

2. Explain — in this order

  1. One-paragraph summary: what behaviour changes for a user or caller. Not a list of files.
  2. Why: the problem being solved, from the description/issue/commit messages. If the reason isn't stated anywhere, say so — that's a review finding.
  3. Diagram: a Mermaid sequenceDiagram or flowchart of the new flow, highlighting what's new/changed (use a note or :::changed class). Keep it under ~15 nodes; diagram the core path, not everything.
  4. Walkthrough by concept, not by file: group related hunks ("the retry logic", "the new config flag"). For each: what it does, and anything non-obvious (concurrency, error handling, edge cases, performance).
  5. Risk notes: things a reviewer should look at hardest — changed public interfaces, migrations, deleted tests, error paths swallowed, security-sensitive code, missing tests for new branches. Be specific with file:line.

3. Quiz

Ask 3–5 questions, one at a time, waiting for the answer before the next. Good questions require understanding, not recall:

  • "What happens now if <dependency> times out during <operation>?"
  • "Which existing caller is affected by the signature change, and how?"
  • "Why does <line> need to come before <line>?"
  • "If we roll this back after the migration ran, what breaks?"

Avoid trivia ("what's the new function called?"). Mix: at least one about failure/edge behaviour, one about why a design choice was made.

After each answer: say whether it's right, and give the correct explanation in 1–3 sentences with a code reference. If they're wrong on something important, suggest which part of the diff to re-read.

4. Wrap up

Score (e.g. 4/5) and a short verdict: "ready to review", or "re-read X before approving". Offer to draft review comments for any risks found.

Scope to the request

The full flow (summary → why → diagram → walkthrough → risks → quiz) is the default for "walk me through this" or "help me review". When the user narrows the request, respect it:

  • "no quiz" / "skip the quiz": steps 1–2 without step 3.
  • "just the summary and risks": the one-paragraph summary and the risk notes, nothing else: no diagram, no walkthrough. Offer the rest in one closing line.
  • "just the diagram": the diagram plus a two-sentence caption.

The first risk listed should be the one that changes behaviour for users or money (like a silent wrong charge), not the most technically interesting one.

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.