SKILL·4853E3

review-pr

trailofbits
Updated Today
6,864
588
6,864
View on GitHub
Testingwordaitesting

About

This skill reviews pull requests by analyzing code diffs against a base branch for correctness, test coverage, and documentation accuracy. It automatically examines changed code for edge cases, error handling, and tests for new logic. Use it when asked to review branches, diffs, or pull requests in development workflows.

Quick Install

Claude Code

Recommended
Primary
npx skills add trailofbits/skills -a claude-code
Plugin CommandAlternative
/plugin add https://github.com/trailofbits/skills
Git CloneAlternative
git clone https://github.com/trailofbits/skills.git ~/.claude/skills/review-pr

Copy and paste this command in Claude Code to install this skill

Documentation

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.

GitHub Repository

trailofbits/skills
Path: plugins/code-improver/tests/fixtures/pr-review-toolkit/skills/review-pr
0
agent-skills
FAQ

Frequently asked questions

What is the review-pr skill?

review-pr is a Claude Skill by trailofbits. Skills package instructions and resources that Claude loads on demand, so Claude can perform review-pr-related tasks without extra prompting.

How do I install review-pr?

Use the install commands on this page: add review-pr to Claude Code as a plugin, or clone its repository into your skills directory, then restart Claude so it picks up the skill.

What category does review-pr belong to?

review-pr is in the Testing category.

Is review-pr free to use?

Yes. review-pr is listed on AIMCP and free to install.

Related Skills

evaluating-llms-harness
Testing

This Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.

View skill
cloudflare-cron-triggers
Testing

This skill provides comprehensive knowledge for implementing Cloudflare Cron Triggers to schedule Workers using cron expressions. It covers setting up periodic tasks, maintenance jobs, and automated workflows while handling common issues like invalid cron expressions and timezone problems. Developers can use it for configuring scheduled handlers, testing cron triggers, and integrating with Workflows and Green Compute.

View skill
webapp-testing
Testing

This Claude Skill provides a Playwright-based toolkit for testing local web applications through Python scripts. It enables frontend verification, UI debugging, screenshot capture, and log viewing while managing server lifecycles. Use it for browser automation tasks but run scripts directly rather than reading their source code to avoid context pollution.

View skill
finishing-a-development-branch
Testing

This skill helps developers complete finished work by verifying tests pass and then presenting structured integration options. It guides the workflow for merging, creating PRs, or cleaning up branches after implementation is done. Use it when your code is ready and tested to systematically finalize the development process.

View skill