Reviewing Pull Requests
Review pull requests against issue requirements and good coding practices.
Workflow
- Auto-detect tracking system -- GitHub PR (gh CLI) or Linear-linked PR (linear-cli)
- Read the pull request -- changes, scope, implementation approach
- Find related issue/ticket for acceptance criteria and original requirements
- Ensure latest code context -- pull changes and verify working directory state
- Review project documentation -- check
docs/,spec.md,requirements.md,CLAUDE.md - Analyze implementation quality -- code structure, patterns, maintainability
- Verify test coverage -- ensure complete testing of new functionality
- Check style compliance -- validate against project guidelines
- Assess scope adherence -- confirm changes are minimal and focused
- Determine review action -- self-authored (comment) vs external (formal review)
- Submit structured feedback
Review Framework
Requirements Alignment
- All acceptance criteria met
- No scope creep beyond original ticket
- Edge cases and error handling covered
Code Quality
- Follows established patterns from codebase
- Single Responsibility, DRY compliance
- Adequate comments for complex logic
- No obvious performance bottlenecks
Test Coverage
- All new functionality has corresponding tests
- Error scenarios and edge cases tested
- Integration with existing system validated
Implementation Standards
- Clean commit history
- Smallest necessary changes
- No breaking changes without justification
- Input validation, no credentials exposure
Review Output
Requirements Coverage
- What criteria are met, partially met, or missing
Code Quality
- Architecture adherence, pattern consistency, docs, performance
Test Assessment
- Coverage verification, edge case testing, integration validation
Final Recommendation
- Approve: Ready for merge
- Request Changes: Specific issues listed
- Comment: Self-authored PR feedback
Command Reference
# View PR with full details
gh pr view <number> --json title,body,author,commits,files,comments,reviews
# Get diff
gh pr diff <number>
# View related issue
gh issue view <number> --json title,body,labels,assignees
# Submit review
gh pr review <number> --approve|--request-changes|--comment
# Linear integration
linear-cli issues
linear-cli issue <team-id>