1.5 KiB
1.5 KiB
name, description, disable-model-invocation, argument-hint, context, agent, allowed-tools
| name | description | disable-model-invocation | argument-hint | context | agent | allowed-tools |
|---|---|---|---|---|---|---|
| review-pr | Review a specific GitHub pull request by number — fetches PR diff and comments via gh CLI, then provides structured review. | true | [pr-number] | fork | code-reviewer | Bash(gh:*), Read, Grep, Glob |
Review Pull Request
Review GitHub PR #$ARGUMENTS.
Context
PR details:
!gh pr view $ARGUMENTS
PR diff:
!gh pr diff $ARGUMENTS
PR comments:
!gh pr view $ARGUMENTS --comments 2>/dev/null || echo "No comments"
Changed files:
!gh pr diff $ARGUMENTS --name-only
Steps
-
Understand the PR — read title, description, and comments for context
-
Analyze all changed files — not just the latest commit, ALL changes in the PR
-
Read relevant source files for full context (not just the diff)
-
Verify dependencies — check new packages for CVEs via context7
-
Check against project rules — read
RULES.md -
Review in priority order: Security → Reliability → Performance → Maintainability → Testing
-
Report:
# PR Review: #[number] — [title]
## Summary
[What this PR does, overall assessment]
**Verdict**: APPROVE / APPROVE WITH COMMENTS / REQUEST CHANGES
## Critical Issues
[Security vulnerabilities, data loss risks — with fixes]
## High Priority
[Significant issues — with fixes]
## Medium Priority
[Improvements — grouped]
## What's Done Well
- [Specific praise]
## Recommendations
1. [Prioritized next steps]