| name | review-pr |
| description | Review a pull request and post structured feedback as a comment. |
| argument-hint | <PR-number> |
| allowed-tools | Read, Glob, Bash(grep:*), Bash(gh pr view:*), Bash(gh pr diff:*), Bash(gh pr comment:*) |
Review the pull request and provide structured feedback.
How to fetch the PR
If given a PR number or URL, use gh pr diff <number> to get the diff and gh pr view <number> to get the description. Read any referenced issues for context.
Review structure
Return feedback in this order:
- Summary — one paragraph: what the PR does, why it exists, whether the approach is sound.
- Must fix — blocking issues; the PR should not merge until these are resolved.
- Should fix — non-blocking but important (correctness risks, API design concerns, missing tests).
- Nits — style, naming, minor clarity improvements. Prefix each with
nit:.
- Verdict — one of:
Approve, Request changes, or Needs discussion.
If a section has no items, omit it.
Checklist
Work through each category before writing the review.
Correctness
API design — easy to use correctly, hard to use incorrectly
Go idioms
Tests
Performance & protocol
Documentation