This command helps you review GitHub Pull Requests using Claude Code. It will analyze a PR and provide a detailed review in the conversation.
/pr_review [PR_NUMBER]
Example: /pr_review 123
When this command is executed, I will:
- Gather PR information using the provided PR number
- Analyze the changes and context
- Provide a comprehensive review directly in our conversation
I'll use GitHub CLI to gather information about the PR:
gh pr view [PR_NUMBER] --json title,body,author,comments,files,commits,reviews,reviewRequests
gh pr diff [PR_NUMBER]
gh pr checks [PR_NUMBER]
gh pr view [PR_NUMBER] --comments
I'll examine:
- Modified files
- Related code context
- PR description and comments
- Commit history
- CI/CD check results
- Review comments and threads
- Requested reviewers
The review provided in our conversation will include:
-
Summary of Changes
- Brief overview of what the PR does
- Main files/components affected
-
Check Status
- CI/CD check results
- Build and test outcomes
- Status of required checks
-
Technical Assessment
- Code quality evaluation
- Potential bugs or issues
- Performance considerations
- Security implications
- Test coverage
-
Existing Review Comments
- Summary of feedback from other reviewers
- Unresolved threads or discussions
- Common themes in existing reviews
-
Improvement Suggestions
- Specific recommendations for code improvements
- Alternative approaches when relevant
- Suggestions to address existing review comments
-
Overall Recommendation
- Whether the PR should be approved, needs changes, or requires further discussion
The review will be:
- Constructive and specific
- Focused on important issues
- Clear about what needs improvement
- Balanced with positive feedback
No comments will be added to GitHub directly - all feedback will remain in our conversation for you to review and decide how to proceed.