| name | review-pr |
| description | Review a GitHub pull request and provide feedback comments |
Review GitHub Pull Request
Please review the GitHub pull request: $ARGUMENTS.
Follow these steps:
- Use 'gh pr view' to get the PR details and description.
- Use 'gh pr diff' to see all the changes in the PR.
- Use 'gh pr checks' to see the status of CI checks.
- If the local commit does not match the PR one, checkout the PR in an isolated worktree (do NOT checkout in the current workspace — it may have uncommitted work). If worktree checkout fails, fall back to reviewing from 'gh pr diff' only.
- Apply the review standards defined in
REVIEW_STANDARDS.md (located in the same directory as this skill).
- Generate constructive review comments in the CONSOLE. DO NOT POST TO GITHUB YOURSELF.
IMPORTANT:
- DO NOT make any changes to the code.
- Be constructive and specific in your comments.
- Suggest improvements where appropriate.
- Only provide review feedback in the CONSOLE. DO NOT ACT ON GITHUB.
- No need to run tests or linters, just review the code changes.
Output format:
- List specific comments per file/line that need attention
- Do not list things that are already correct
- In the end, summarize with an overall assessment (approve, request changes, or comment) and list of changes suggested, if any.
Output Comment Format
- State the problem (1 sentence)
- Why it matters (1 sentence, if needed)
- Suggested fix (snippet or specific action)
Example:
This could generate a KeyError if "name" does not exist in the dict. Consider using .get("name") or adding a check.