| name | review-pr |
|---|---|
| description | Review a pull request by fetching PR comments, running a comprehensive code review, evaluating findings, and dispatching to implementation. Use when the user asks to "review PR", "review pull request", "review this PR", "check PR before merging", or "full PR review". |
Fetch PR context, run a comprehensive code review, evaluate findings, and dispatch accepted findings to implementation.
At the start, use TaskCreate to create a task for each step:
- Run
/fetch-pr-commentsskill - Detect base branch
- Run
/review-codeskill - Run
/evaluate-findingsskill - Run
/resolve-findingsskill
Run the /fetch-pr-comments skill to get unresolved review comments.
Detect the PR's base branch via gh pr view --json baseRefName --jq '.baseRefName'.
Run the /review-code skill. The diff command is git diff <base-branch>...HEAD.
Run the /evaluate-findings skill on the combined results from Step 3. Include any unresolved PR comments from Step 1 as additional findings for evaluation.
If zero actionable findings survive evaluation, report that the code looks clean and stop.
Otherwise, run the /resolve-findings skill on the accepted findings from Step 4.
- If fetching PR comments fails, proceed with code review only.