Testing & Code ReviewOfficial · trailofbits

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.

  1. Establish the diff: git diff <base>...HEAD (and git diff <base> when the working tree carries uncommitted changes that belong to the branch). The base branch is named by the caller; fall back to main.
  2. Review every changed hunk for correctness: wrong results on edge inputs, unhandled error paths, and behavior that contradicts the function's name or callers.
  3. Check test coverage for the changed behavior: new logic without a test exercising its edge cases is a finding.
  4. Check documentation the diff made stale: statements in README or docs that were true on the base branch and are false after the change.
  5. 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-pr

Codex

npx degit trailofbits/skills/plugins/code-improver/tests/fixtures/pr-review-toolkit/skills/review-pr#main ~/.codex/skills/review-pr

Claude.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.

Related testing & code review skills

  1. Agent Browser

    Official

    Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms,…

    vercel-labs/agent-browser★ 53k
  2. Playwright

    Official

    Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction,…

    openai/skills★ 29k
  3. Playwright Skill

    Complete browser automation with Playwright. Auto-detects dev servers, writes reusable test scripts, and supports screenshots, responsive…

    lackeyjb/playwright-skill★ 3.3k
  4. Migrate To Shoehorn

    Migrate test files from `as` type assertions to @total-typescript/shoehorn.

    mattpocock/skills★ 327k
  5. Scaffold Exercises

    Create exercise directory structures with sections, problems, solutions, and explainers that pass linting.

    mattpocock/skills★ 327k
  6. Finishing A Development Branch

    Use when implementation is complete, all tests pass, and you need to decide how to integrate the work

    obra/superpowers★ 319k
  7. Verification Before Completion

    Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and…

    obra/superpowers★ 319k
  8. Cavecrew

    When to delegate to `cavecrew-investigator` (locate code), `cavecrew-builder` (1-2 file edit) or `cavecrew-reviewer` (diff review) instead…

    JuliusBrussee/caveman★ 121k
  9. Caveman Review

    Compressed code review - one line per finding with location, problem and fix.

    JuliusBrussee/caveman★ 121k

See all testing & code review skills →

More skills from trailofbits

  1. Semgrep

    Official

    Runs a Semgrep security scan over a codebase: detects languages, selects rulesets, presents the plan for explicit approval, then runs every…

    trailofbits/skills★ 8.3k
  2. Address Sanitizer

    Official

    Builds and runs code under AddressSanitizer to catch buffer overflows, use-after-free, and other memory errors during fuzzing or tests.

    trailofbits/skills★ 8.3k
  3. Adjudicate Regression

    Official

    Use when deciding whether source and live reproduction evidence establish a new regression or an exclusion.

    trailofbits/skills★ 8.3k

All skills by trailofbits →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.