PR Review Summarizer
When to invoke
- "Summarize this PR for me before I review."
- "What's the risk in this diff?"
- "Generate reviewer questions for PR #482."
Inputs needed
- Diff source — local unified diff file, GitHub PR URL, or GitLab MR URL.
- Context (optional) — service name, runtime, test framework.
Workflow
- Fetch / read the diff.
- Classify changes: code, tests, docs, config, dependencies.
- Score risk per file using heuristics: lines changed, security-sensitive paths, lack of tests, schema changes.
- Summarize intent in plain language.
- Produce a review brief: TL;DR, risk hotspots, missing test coverage, suggested questions.
Output format
## TL;DR
## Risk hotspots (ranked)
## Files changed (summary)
## Missing test coverage
## Reviewer questions
## Suggested follow-ups
Guardrails
- Never approve or merge — the skill produces a review, not a verdict.
- Flag schema, auth, crypto, and migration changes as High by default.
- Cite exact file + line numbers from the diff for every risk claim.
Reference code
review.py reads a unified diff file or fetches via gh pr diff / glab mr diff and produces the brief.