pr-review
Review Github pull requests
When & Why to Use This Skill
This Claude skill automates the GitHub pull request review process by fetching and analyzing PR descriptions and code diffs. It helps developers identify bugs, logic errors, and unexpected behaviors, ensuring high code quality and streamlining the peer review workflow through intelligent diff analysis.
Use Cases
- Automated Bug Detection: Analyzing code diffs to identify potential logic errors, edge cases, or regressions before code is merged into the main branch.
- Intent Alignment Verification: Comparing the author's stated goals in the PR description against the actual implementation in the diff to ensure the code meets the requirements.
- Initial Review Pass: Providing a rapid, automated first-pass review to catch common issues, allowing human maintainers to focus on high-level architectural decisions and complex logic.
- Efficiency Improvement: Speeding up the development lifecycle by reducing the time code spends waiting in the review queue through instant AI-driven feedback.
| name | "pr-review" |
|---|---|
| description | "Review Github pull requests" |
To load a Github pull request, run the fetch tool twice:
First fetch
First, load the URL for the PR to understand the author's intent.
Your fetch tool does not execute JavaScript. Note that parts of the Github UI may fail without JS; for example, loading comments might say:
UH OH!
There was an error while loading"
This is okay and expected. Don't worry about that.
Second fetch: load the diff
To load the diff for the PR, fetch the PR URL with a .diff
attached to the end. For example, to review
https://github.com/synthetic-lab/octofriend/pull/66, you should fetch:
https://github.com/synthetic-lab/octofriend/pull/66.diff
The diff is the most important part. The author may be incorrect, or have the right idea but the wrong implementation. Focus on whether there are any bugs or unexpected behavior.