一键导入
pr-review
Comprehensive PR review with detailed explanations and constructive feedback
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Comprehensive PR review with detailed explanations and constructive feedback
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | pr-review |
| description | Comprehensive PR review with detailed explanations and constructive feedback |
| triggers | ["pr-review","pr review","review pr","review pull request","detailed pr review"] |
Use this skill to perform thorough, educational PR reviews with detailed explanations and constructive feedback.
Goal: Provide detailed, constructive feedback that improves code quality and helps engineers grow.
Approach:
Get the PR number from the user's command. If not provided, ask for it.
Option A: Using GitHub CLI (preferred)
gh pr view <PR_NUMBER> --json title,body,author,baseRefName,headRefName,additions,deletions,changedFiles,commits,files
gh pr diff <PR_NUMBER>
gh pr view <PR_NUMBER> --json comments,reviews
Option B: Using git diff (fallback)
git fetch origin main
git diff origin/main...HEAD --stat
git log origin/main..HEAD --oneline
git diff origin/main...HEAD
Present a brief summary:
## PR Overview
**Title**: [PR title]
**Author**: [author]
**Type**: [Bug Fix | Feature | Refactor | Docs | Test | Other]
**Scope**: [N files changed, +X/-Y lines]
**Summary of Intent**:
[1-2 sentences explaining what this PR is trying to do]
For EVERY file in the PR, provide detailed analysis. Read each file to understand the full context (not just the diff).
For each file changed, explain:
Rate each criterion with: Pass | Needs Work | Fail
Rating: [Pass | Needs Work | Fail]
What We're Checking:
| Location | Issue | Explanation | Suggested Fix |
|---|
Rating: [Pass | Needs Work | Fail]
What We're Checking:
Rating: [Pass | Needs Work | Fail]
What We're Checking:
Rating: [Pass | Needs Work | Fail]
What We're Checking:
Rating: [Pass | Needs Work | Fail]
What We're Checking:
Rating: [Pass | Needs Work | Fail]
What We're Checking:
Verdict: [Approve | Request Changes | Needs Discussion]
Strengths:
Priority Fixes Required (must fix before merge):
Suggested Improvements (nice to have):
Use AskUserQuestion with options:
# Review a specific PR
/pr-review 123
# Review PR with extra focus
/pr-review 123 --focus testing
/pr-review 123 --focus performance
Run CodeRabbit CLI code review and interactively fix issues
Write detailed commit messages and create commits
Run formatters and linters, then fix reported issues
Generate PR title and description from branch diff against origin/main
Analyze and resolve git merge conflicts with guided assistance
Split a bloated PR into a stack of small, reviewable PRs