Use when creating an approachable, self-contained HTML review aid for a pull request; explaining what changed, why it matters, how it works, and how it fits into the broader system; turning PR diffs, commits, tests, and architecture context into a local `.pr-review/` HTML page for reviewers; or helping reviewers understand complex code changes without dumping the full diff.
1k tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
26898
stars on the repo
on the repository, not the skill itself
Install
one command, takes just this skill from the repository
Create a local, self-contained HTML page that teaches a reviewer the PR story: what changed, why it matters, how it works, how it fits into the system, and how it was verified.
Required workflow
Understand the PR before writing HTML
Collect PR title/number, branch, link if available, base branch, commit range, changed files, and verification already performed.
Inspect the current state with git status --short.
Inspect recent commits with git log --oneline -n 10.
Inspect scope with git diff <base>...HEAD --stat and git diff <base>...HEAD.
If one commit carries the main change, inspect it with git show --stat <commit> and git show <commit>.
Find the explanation path
Do not explain files in raw diff order.
Teach the change in this order when possible:
problem,
system context,
before/after data or control flow,
key code changes,
proof from tests/builds/manual checks,
reviewer takeaway.
Classify changed files as core behavior, plumbing/integration, tests, release metadata, or incidental noise.
Highlight only files that help explain the PR.
Write for approachability
Use plain language, short sections, concrete before/after examples, small focused snippets, diagrams, tables, and callouts.
Explain the problem before implementation details.
Define acronyms or package-specific terms before using them.
Avoid dumping the full diff or assuming the reviewer already knows internal context.
Create a local self-contained HTML file
Put generated files in .pr-review/.
Use one HTML file containing all CSS and content.
Do not commit .pr-review/ by default.
Prefer repo ignore rules or .git/info/exclude so generated review pages stay out of commits.
Recommended HTML structure
Use this structure unless the PR clearly needs a different teaching order:
Small metrics: files changed, tests added, packages affected.
Problem
Previous behavior.
Why it was wrong, confusing, missing, or risky.
System Context
Where the change sits in the product or architecture.
Upstream callers, downstream behavior, and why this is the right layer.
Behavior intentionally not changed.
Before/After Flow
Visual old path vs. new path when the PR changes flow, state, ownership, permissions, request handling, data transformation, or component relationships.
Code Walkthrough
Step-by-step explanation path.
Focused diffs for important files only.
Explain what each snippet accomplishes and why it is necessary.
Tests / Verification
Tests added or updated.
Commands run for tests, build, typecheck, lint, or manual verification.
Known unrelated warnings or failures, if any.
Reviewer Takeaway
The shortest useful mental model of the PR.
What the reviewer should focus on while reviewing the actual diff.
Diagrams
Add diagrams when they reduce cognitive load. Prefer simple HTML/CSS diagrams over external dependencies.
Good diagram types:
Request flow: Client → Server → Handler → Service → Result