Agent Plugins · Official

PR Review Toolkit

Anthropic's Claude Code plugin uses six specialized agents to review tests, error handling, comments, and type design, with general code review and simplification workflows.

46.8k StarsApache-2.0MarkdownUpdated 17 days ago
01

Project overview

PR Review Toolkit is Anthropic's Claude Code plugin for reviewing pull requests from six focused perspectives. Its README, command, agent instructions, and component license were reviewed for this guide. Start with tests and error handling on a small diff, then add other reviews as needed. Installation and functionality were not tested.

02

Core capabilities

01

Comments and test coverage

comment-analyzer checks comments against implementation; pr-test-analyzer focuses on behavioral coverage, error paths, and critical gaps.

02

Silent failures and type design

silent-failure-hunter examines swallowed errors and fallbacks; type-design-analyzer evaluates four dimensions including encapsulation and invariants.

03

Code review and simplification

code-reviewer checks high-confidence issues against CLAUDE.md; code-simplifier actually edits code, so confirm its scope separately.

04

Targeted review orchestration

review-pr accepts comments, tests, errors, types, code, simplify, and all, with sequential or requested parallel execution.

03

Installation and usage

Install the plugin from the official Claude Code marketplace, then run a focused test and error-handling review on an explicit Git diff.

AI AGENT INSTALL

Let an AI Agent install it

Send this prompt to Codex, Claude Code, or another AI agent that can work with your local environment.

Install PR Review Toolkit from https://github.com/anthropics/claude-plugins-official at plugins/pr-review-toolkit. Read the root and component README, LICENSE, plugin manifest, and commands/review-pr.md. Run /plugin install pr-review-toolkit@claude-plugins-official in Claude Code. Check /agents and verify /pr-review-toolkit:review-pr tests errors against a small diff that I approve. Report actual results and any failure without claiming success. Ask me before credentials, additional permissions, overwriting files, or running code-simplifier. Confirm what source code will enter the model context and whether gh will access GitHub.
01Before you start
  • Claude Code with plugin support and a working account
  • A local Git project and an explicit set of changes to review
  • GitHub CLI gh if the workflow calls gh pr view; authentication may be required
02Copy the install command or configuration
/plugin install pr-review-toolkit@claude-plugins-official
03Complete the setup steps
  1. 1
    Install from the official marketplace

    In Claude Code, run `/plugin install pr-review-toolkit@claude-plugins-official`. Open `/plugin > Discover` if you need to browse the marketplace, then confirm the plugin is installed.

  2. 2
    Set the review scope

    Open the target Git project, specify the files and whether to review unstaged, staged, or branch changes. The command uses `git diff --name-only` and `gh pr view`; approve any required GitHub authentication.

  3. 3
    Run a focused review

    Run `/pr-review-toolkit:review-pr tests errors`. Ask for report-only analysis of the selected diff. Inspect findings by severity, check the referenced files yourself, and rerun tests after any later fixes.

  4. 4
    Verify agent availability and changes

    Use `/agents` to check the six agents. Inspect Git status for unexpected changes. Run simplify separately only after agreeing on its write scope.

How to verify the setup

Open /agents and confirm all six agents are available. Run /pr-review-toolkit:review-pr tests errors on a small specified diff. Confirm the report identifies its scope and returns file-level findings or an explicit no-findings summary; inspect the working tree for unexpected edits.

Before using it
  • The command allows Bash, Glob, Grep, Read, and Task to read project files, execute local commands, and launch subagents.
  • code-simplifier can rewrite recently changed code; confirm its file write scope before use.
  • Selected source code, diffs, and project rules enter the Claude Code model context; data handling depends on host account and organization settings.
  • The command invokes git diff and gh pr view. The latter may contact GitHub using existing local gh authentication.
  • Start with tests errors and explicitly identify target files and the diff scope; avoid simplify on the first run.
  • If gh pr view requires sign-in, confirm the account and repository permissions first. Do not paste access tokens into prompts.
  • The component LICENSE is Apache-2.0, while the README footer still says MIT. This entry follows the component license text and discloses the discrepancy.
  • Only public materials were reviewed. Installation and functionality were not tested. No component SECURITY.md or GitHub Release was found.
04

Use cases

SCENARIO 01

Pre-PR test and error review

Find missing error-path coverage and catch blocks that hide failures before opening a pull request.

SCENARIO 02

Check a new domain type

Ask type-design-analyzer to evaluate encapsulation and invariants, then compare its suggestions with real project requirements.

05

Assessment

Based on the repository README, command, six agent definitions, and maintenance history, the useful feature is targeted review with concrete file references. The agents apply different scoring schemes, so compare the underlying evidence rather than ranking reports by score. This is a documentation review, not an installation or functional test.

Why it may be useful

  • Six focused review roles with explicit output expectations
  • A command can select review aspects without running every agent

What to know first

  • The component LICENSE is Apache-2.0, while the README footer still says MIT. This entry follows the component license text and discloses the discrepancy.
  • Only public materials were reviewed. Installation and functionality were not tested. No component SECURITY.md or GitHub Release was found.
  • Model-generated review scores do not replace tests, human review, or security audits.
  • silent-failure-hunter contains author-specific Sentry, Statsig, and logging conventions; check their relevance to your project.
06

README

PR Review Toolkit


Overview

Anthropic's Claude Code plugin uses six specialized agents to review tests, error handling, comments, and type design, with general code review and simplification workflows. Comprehensive PR review agents specializing in comments, tests, error handling, type design, code quality, and code simplification

Getting started

  • Install the plugin from the official Claude Code marketplace, then run a focused test and error-handling review on an explicit Git diff.
  • The component bundles six agents for comments, tests, error handling, types, general review, and simplification.
  • The root README documents marketplace installation; the command defines targeted review aspects and file-level findings.
  • Open /agents and confirm all six agents are available. Run /pr-review-toolkit:review-pr tests errors on a small specified diff. Confirm the report identifies its scope and returns file-level findings or an explicit no-findings summary; inspect the working tree for unexpected edits.

Configuration

/plugin install pr-review-toolkit@claude-plugins-official
Read the complete README on GitHub →