| name | review-pr |
| description | Review pull requests against best practices. Use when reviewing PRs, checking code quality, or providing feedback on changes. |
| user-invocable | true |
Reviewing Pull Requests
Follow this checklist when reviewing PRs.
Usage
/review-pr 123
Or just ask: "Review PR #123"
Review Process
1. Fetch PR Information
gh pr view <number>
gh pr diff <number>
2. Understand the Changes
- What problem does this PR solve?
- What approach was taken?
- Are there alternative approaches?
3. Run the Checklist
Code Quality Checklist
Architecture & Design
Correctness
Testing
Performance
Code Style
Security
PR Description Checklist
Bug Fix PRs
Bug fixes should ideally use two-commit structure:
- First commit: Failing test reproducing the bug
- Second commit: Fix + any test updates
Verify:
Review Comments
Approve When
- All checklist items pass
- No blocking issues found
- Minor suggestions can be addressed in follow-up
Request Changes When
- Missing tests for new functionality
- Correctness issues or bugs
- Security vulnerabilities
- Significant architecture concerns
Comment (No Decision) When
- Questions need answers before deciding
- Want discussion on approach
- Minor suggestions only
Example Review Comment
## Review Summary
**Overall**: Approve with minor suggestions
### What I Reviewed
- Changes to `src/auth/validator.js`
- New tests in `tests/auth.test.js`
- PR description and commit history
### Checklist Results
- [x] Architecture: Follows patterns
- [x] Correctness: Logic looks sound
- [x] Testing: Good coverage
- [x] Performance: No concerns
- [ ] Code style: Minor suggestion below
### Suggestions
1. **Line 45**: Consider using early return to reduce nesting
2. **Tests**: Could add test for empty input case
### Questions
None - ready to merge after addressing suggestions.
Providing Feedback
Be constructive:
- Explain why something should change, not just what
- Offer alternatives when suggesting changes
- Distinguish between blocking issues and suggestions
Be specific:
- Reference line numbers
- Quote the relevant code
- Provide examples of preferred approach
Be kind:
- Assume good intent
- Phrase as questions when unsure
- Acknowledge good work