| name | review-pr |
| description | Review pull requests against project standards. Use when reviewing PRs, checking code quality, or providing feedback on changes. |
| user-invocable | true |
| argument-hint | [PR number or URL] |
| allowed-tools | Bash(gh *), Bash(git diff *), Bash(git log *), Bash(cargo test *), Bash(cargo clippy *), Read, Grep, Glob |
Reviewing Pull Requests
Follow this checklist when reviewing PRs for this project.
Usage
/review-pr 123
Or just ask: "Review PR #123"
Review Process
1. Fetch PR Information
gh pr view <number> --repo trevor-scheer/graphql-analyzer
gh pr diff <number> --repo trevor-scheer/graphql-analyzer
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 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 `crates/graphql-analysis/src/validation.rs`
- New tests in `tests/validation_test.rs`
- PR description and commit history
### Checklist Results
- [x] Architecture: Correct layer, 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 `if let` instead of `match` for single-arm case
2. **Tests**: Could add test for empty input case
### Questions
None - ready to merge after addressing suggestions.
SME Agents to Consult
When reviewing specific areas:
- graphql.md: GraphQL spec compliance in validation logic
- rust.md: Idiomatic Rust patterns
- salsa.md: Incremental computation correctness
- lsp.md: Protocol compliance