Review Pr skill for Claude
The Claude review pr skill by trailofbits: Reviews the current branch's changes against its base branch as a pull request: correctness of new and modified code, test coverage for it, and documentation accuracy.
When Claude uses it
Use when asked to review a branch, a diff, or a pull request.
Review Pr SKILL.md
The full skill file from trailofbits/skills (CC-BY-SA-4.0).
PR Review
Review the branch's change surface, not the whole repository.
- Establish the diff:
git diff <base>...HEAD(andgit diff <base>when the working tree carries uncommitted changes that belong to the branch). The base branch is named by the caller; fall back tomain. - Review every changed hunk for correctness: wrong results on edge inputs, unhandled error paths, and behavior that contradicts the function's name or callers.
- Check test coverage for the changed behavior: new logic without a test exercising its edge cases is a finding.
- Check documentation the diff made stale: statements in README or docs that were true on the base branch and are false after the change.
- Report every defect found, each with a severity; include minor and informational findings. Do not report defects in files the branch did not touch — they are outside the pull request.
How to install the Claude review pr skill
Claude Code
Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):
npx degit trailofbits/skills/plugins/code-improver/tests/fixtures/pr-review-toolkit/skills/review-pr#main ~/.claude/skills/review-prCodex
npx degit trailofbits/skills/plugins/code-improver/tests/fixtures/pr-review-toolkit/skills/review-pr#main ~/.codex/skills/review-prClaude.ai and Claude Desktop
Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.
Frequently asked questions
+What is the Claude review pr skill?
Reviews the current branch's changes against its base branch as a pull request: correctness of new and modified code, test coverage for it, and documentation accuracy. Use when asked to review a branch, a diff, or a pull request.
+How do I install Review Pr in Claude Code?
Copy the skill folder into ~/.claude/skills/review-pr, for example with "npx degit trailofbits/skills/plugins/code-improver/tests/fixtures/pr-review-toolkit/skills/review-pr#main ~/.claude/skills/review-pr". Claude Code loads it automatically and uses it when a task matches.
+Does Review Pr work with ChatGPT or Codex?
Yes. Review Pr uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/review-pr. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.
+Is Review Pr free?
Review Pr is published on GitHub by trailofbits under the CC-BY-SA-4.0 license, which allows free use.