pr-review
Review GitHub pull requests
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Review GitHub pull requests
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
| name | pr-review |
| description | Review GitHub pull requests |
This skill helps you conduct comprehensive reviews of GitHub pull requests.
Supporting files:
scripts/summarize-pr.py - Comprehensive PR summary script (uses GraphQL)scripts/prepare-worktree.py - Create git worktree for PR reviewImportant: All scripts use uv for automatic dependency management. Run them directly (e.g., scripts/summarize-pr.py). If uv is not available, fall back to python scripts/summarize-pr.py but you'll need to install dependencies manually.
Use this skill when the user asks you to review a GitHub pull request. The user will typically provide a PR URL or PR number.
Start by generating a comprehensive summary of the PR. This gives you the complete picture before diving deep:
scripts/summarize-pr.py <OWNER> <REPO> <PR_NUMBER>
This script provides:
Read and analyze this output carefully:
IMPORTANT: The unresolved comments are known blockers. Don't duplicate these in your review - focus on finding NEW issues.
Create a clean worktree for reviewing the PR and initialize review tracking:
WORKTREE_PATH=$(scripts/prepare-worktree.py <repository_directory> <PR_NUMBER>)
cd "$WORKTREE_PATH"
What this does:
<repository>/git-worktrees/<branch-name><repository>/review-notes/<branch-name>README.md template in the review notes directory for tracking progressBenefits:
Use the review notes file:
<repository>/review-notes/<branch-name>/README.mdThis is the critical step that goes beyond mechanical checking. Based on the PR type and files changed, use the Task tool with subagent_type=Explore to gather additional context:
For code PRs:
For design/documentation PRs (SDPs, RFCs, etc.):
How to gather context:
gh pr view to see linked issuesExample context gathering:
# Use the Task tool with subagent_type=Explore to find:
# - "Find all files that import X module"
# - "Find test files related to Y feature"
# - "Find architecture docs about Z pattern"
Now review the PR comprehensively:
Does it solve the stated problem?
Are unresolved comments blocking?
What NEW issues exist?
Context and design concerns
Review criteria by PR type:
For code PRs:
For design/documentation PRs:
As you work through the review, systematically fill in the review notes at <repository>/review-notes/<branch-name>/README.md:
Step 1 - PR Summary Analysis
Step 3 - Context Gathering
Step 4 - Code Review
file:line referencesStep 5 - Final Recommendation
Review notes structure:
file:line references for all code-specific feedbackYour review output should be written in the review notes file at <repository>/review-notes/<branch-name>/README.md.
The template provides sections for:
Use code references in the format file_path:line_number when pointing to specific locations.
review-notes/<branch-name>/README.mdgh CLI tool via Bash, never try to construct GitHub URLs manuallypython only if uv is unavailable.# Step 1: Generate comprehensive PR summary
scripts/summarize-pr.py <OWNER> <REPO> <PR_NUMBER>
# Read and analyze the output:
# - What's the PR about?
# - What's the discussion history?
# - What unresolved issues exist?
# Step 2: Prepare git worktree
WORKTREE_PATH=$(scripts/prepare-worktree.py /path/to/repo <PR_NUMBER>)
cd "$WORKTREE_PATH"
# Step 3: Gather context using Task tool
# Use Task tool with subagent_type=Explore to find:
# - Related architecture docs
# - Similar implementations
# - Test coverage
# - Integration points
# Step 4: Analyze the PR
# - Read changed files
# - Check for issues not in unresolved threads
# - Verify alignment with context found
# Step 5: Provide structured review
# Follow the 5-section format above