pull-request-code-review
Installation
SKILL.md
Review Steps
1. Confirm the reviewer
If the user is not an assigned reviewer, ask whether to continue. Review only an open pull request or merge request.
2. Prepare the review
- On GitHub, use
gh pr diffandgh pr viewwhen the pull request number is known. On GitLab, useglab mr diffandglab mr viewwhen the merge request number is known. - The working directory must be the target repository. If it is not, ask the user to clone it.
- Update the local base branch and head branch.
- Skip the review when this skill already reviewed the current head commit. Review again when that commit has changed.
- Read changed files and the code they call or that calls them. Leave the rest of the repository unread.
- Do not modify code.
- Do not open credential or secret files.
3. Verify the changed behavior
When the pull request or merge request states its intent, find where the change misses that intent: a stated case left unhandled, or behavior that contradicts the intent. Trace the new path for wrong results, dropped errors, and broken callers. Follow a call outside the diff when the diff can trigger a bug there.