PR Review Summary
Turn a raw diff or pull request into a structured first-pass review with a merge recommendation, ranked risk callouts, and test-coverage gaps. Use when asked to review this PR, summarize this diff, flag what's risky, or when a unified diff is pasted.
Copy the file into your agent runtime. Cursor loads personal skills from ~/.cursor/skills/pr-review-summary/SKILL.md and project skills from .cursor/skills/pr-review-summary/SKILL.md. Claude Code looks in .claude/skills/pr-review-summary/SKILL.md.
PR Review Summary
When to use
A diff or pull request needs a fast, consistent first-pass review before a human signs off. Triggers: review this PR, summarize this diff, what's risky here, or a pasted unified diff.
What it does
Reads the diff, groups changes by concern, and produces:
- A one-line merge recommendation (approve / approve-with-nits / request-changes).
- Risk callouts ranked high → low, each tied to a file and line range.
- Test coverage gaps — behavior introduced without a matching test.
- A short reviewer checklist a human can tick through.
Steps
- Parse the diff into hunks. Ignore pure formatting churn.
- For each hunk, classify: behavior change, refactor, config, docs, or test.
- Flag any behavior change without an accompanying test hunk.
- Scan for common risks: unvalidated input, broadened permissions, swallowed errors, N+1 queries, missing null checks, auth/billing/migration edits.
- Emit the merge recommendation last, justified by the highest-severity finding.
Output
Recommendation: request-changes Risks: - [high] path:line — finding Test gaps: - path — untested behavior Checklist: - [ ] item
Guardrails
Never claim a test exists that you did not see in the diff. If the diff is truncated, say so and scope the review to what is visible. Do not approve changes that touch auth, billing, or migrations without an explicit human-review flag.
Extra files in this package: examples.md