/review-walkthrough:review-walkthrough <file or diff spec to walk through>from review-walkthrough
Runs an interactive, one-unit-per-exchange walkthrough of a file or diff, paced by the user, with progress persisted in a checklist file. Not for automated code review.
Ships in review-walkthrough. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
An interactive, one-unit-at-a-time walkthrough of a file or a diff, paced by the user. Claude presents each function, annotates it, and flags findings; the user reads along and interrogates. Progress lives in a checklist file in the repo, so the walkthrough survives /clear and spans sessions.
This is a teaching/interrogation protocol, not an automated review. The human is in the loop on every unit. Never batch units, never run ahead, never summarize the file wholesale.
Trigger on: "walk me through this file", "walk me through this diff/branch/these changes", "guided review of X", "explain this file function by function", "let's go through auth.go together", "review walkthrough".
Do not use for: "review this PR", "code review", "review my changes", or any request for an automated verdict on a diff. Those go to code-review tooling. If ambiguous, ask.
The target is either a file (or a small, tightly-coupled set of files) or a diff (a branch range, staged changes, a commit, a PR).
Language-agnostic: nothing in the protocol depends on the language.
REVIEW.md at the repo root. If that name is taken or the repo has a docs convention, propose an alternative (e.g. docs/review-<file>.md) and confirm. If a checklist for this target already exists, resume instead (see below).The template below is the file-target variant. For a diff target, adapt it: the header names the pinned diff spec (with SHAs) instead of a target file, the protocol steps incorporate the "Diff targets" rules (grouping, size cap, presentation choice, completeness verdict, re-diff on resume), and checklist items are named change groups, with sub-items where the size cap forced a split.
# <target file> Review Walkthrough Checklist
## Walkthrough protocol (for the Claude session driving this)
Target file: `<path>`. Work through the checklist below one <unit> per
exchange, in order unless the user redirects. For each:
1. **Show the code.** Quote the <unit> verbatim, split into stanzas at
natural seams (guard clauses, lock sections, network calls). Short
<unit>s can be one stanza. Do not elide lines.
2. **Comment per stanza:** what it does, why it's written this way, and any
subtlety or coupling to code outside this <unit> (callers, config,
other packages, deployment assumptions). Name the coupled file/symbol
so the user can chase it. Read the coupled code when a claim depends
on it; do not speculate.
3. **Don't paraphrase the file's own comments.** Add value by verifying
their claims against the code, or by stating what they omit. If a
comment and the code disagree, that is a finding.
4. **End with a verdict:** either "no findings" or concrete flags --
bugs, questionable trade-offs, missing tests, or design choices worth
challenging. Give the user something to dispute, not just a summary.
Do not pad with generic observations.
5. Wait for the user's questions; make edits only if they direct. When
they're done with the <unit>, check it off in this file with a
one-line parenthetical note of what was found or changed, then
proceed.
One <unit> per exchange, always. If the user asks about a later item,
answer, but return to checklist order unless they redirect. Never batch
items, "briefly cover the rest," or produce a bulk findings report --
findings surface item by item and live in the checklist notes.
Related files for coupling checks: <list>.
## Checklist
- [ ] `<unit 1>`
- [ ] `<unit 2>`
...
When the target is a diff, the protocol is unchanged except as noted here. The checklist protocol section written at setup must be the diff variant, including these rules.
Pin the diff spec. Record the exact spec in the checklist header (e.g. main...feature with the base and tip SHAs at setup time, or a commit SHA, or "staged as of "). On resume, re-diff and compare: if the diff changed, reconcile the group list first and tell the user.
Build change groups. Raw hunks are byte-window artifacts -- one hunk can straddle two functions, one function can be split across hunks. Cluster in two passes:
Name each group by its meaning, not its location: validateToken signature change (auth.go, handlers.go ×3 call sites), not a hunk header.
Size cap: about a screenful. A group whose quoted presentation would run well past ~50 lines is too big for one exchange. Split it into sub-items under a parent heading in the checklist (e.g. the anchor change as one item, its fallout as another), each independently checkable.
Confirm the grouping. The proposed group list is part of the setup agenda; present it and let the user merge, split, reorder, or drop groups before the first exchange. A bad grouping makes every later exchange harder to follow -- do not skip this.
Ordering. File order is arbitrary for a diff. Default to dependency order: core/anchor changes first, mechanical fallout after. Propose the order with the agenda.
Presentation per group. Pick per item:
Verdict adds a completeness dimension. Beyond "is this code right?", ask "is this change complete and consistent?" -- missed call sites, callers whose assumptions the change breaks, tests not updated, comments/docs now stale.
The checklist file's protocol section is the single source of truth for the exchange loop -- follow it as written there (it is the template above, adapted to the target). After setup, the walkthrough is driven from the file, not from this skill. Check-off notes are one-line parentheticals, e.g. (CSRF check assumes proxy sets Origin; flagged missing test).
When invoked and a checklist for the target exists (or the user points at one): read it, report progress in a line or two (N of M done, last note), and present the first unchecked unit. The file's own protocol section governs; do not re-explain the process to the user. Do not redo checked items unless asked.
If the target changed since the checklist was written (units added, removed, renamed; for a diff, re-diff against the pinned spec), reconcile the checklist first -- add/remove items in place, note the change -- and tell the user.
Run-time discipline (pacing, quoting, verdicts, check-offs) lives in the checklist's protocol section; these are mistakes made while creating it:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub xdg/xdg-claude --plugin review-walkthroughOther plugins' skills for the same job