Command

Review PR

Coordinate the PR Review Toolkit’s specialized review lenses from one command.

reviewtestingcommands
View original source ↗

When to choose it

A structured review of tests, types, errors and code quality.

Choose it if: You want one command to coordinate the PR Review Toolkit’s review lenses for a change.

Look elsewhere if: You need a correctness guarantee or cannot spend usage on the selected review agents.

What the source describes

  • Selects relevant review agents
  • Collects targeted findings
  • Works with the containing toolkit’s agents

Requirements

  • Install the containing PR Review Toolkit plugin
  • Actual repository changes and explicit review scope
  • Supported agent/model tools; existing authorized GitHub CLI for gh pr view

This is a component of PR Review Toolkit. Install the containing package once to get its components.

Install the containing plugin

  1. Use the command from its actual package. Review PR is commands/review-pr.md in PR Review Toolkit. Install the containing plugin once, then confirm the full pr-review-toolkit namespace is loaded. This component is not a GitHub review submission command and is not a separate marketplace package.
  2. State where the changes live. The definition checks git status, git diff --name-only and gh pr view. Its unstaged file list is different from git diff --cached or a resolved branch base/head. An existing PR lookup does not itself fetch and select the full PR diff. Before reviewing staged or already committed changes, supply that actual scope and require it to be named in the report.
    Shell • read-only scope check
    git status --short --branch
    git diff --stat
    git diff --cached --stat
    git branch --show-current
  3. Select explicit review aspects. The documented words are comments, tests, errors, types, code, simplify and all. With no aspect request, the definition chooses applicable reviews. These are arguments interpreted by Claude's instruction, not a separate executable parser or a set of measured checks.
  4. Choose report versus edit behavior. Use targeted report lenses and explicitly exclude simplify when you want findings only. The simplify lens delegates to code-simplifier, whose source tells it to apply refinements. The command allows Bash, Glob, Grep, Read and Task, and its bundled agents omit tools restrictions; naming the workflow review does not enforce read-only access.
  5. Check dependencies without inventing results. The local checkout and selected model tools must be available. gh pr view requires the existing GitHub CLI authorization for the intended repository; report a failed lookup separately from local analysis. The source uses Task, which current official documentation retains as an Agent alias. The reviewed command neither runs a test suite explicitly nor submits or merges a GitHub review.

Run the installation command in your shell after reviewing the source. Local scope enables the package for you in this repository. It does not enable it for every collaborator.

Shell • local install scope
claude plugin install pr-review-toolkit@claude-plugins-official --scope local
Installation and loading troubleshooting

How to use it

Source-documented targeted lenses for behavioral test gaps and hidden error handling. Check the summary for the actual agents and diff scope rather than assuming the argument words alone guarantee it.

Claude Code command
/pr-review-toolkit:review-pr tests errors

An original combination of two source-listed aspects for a change involving documentation and data-model invariants.

Claude Code command
/pr-review-toolkit:review-pr comments types

The author-documented request for applicable reviews in parallel. This may involve more agents and may include later simplification; parallel is a request, not a latency or scheduling guarantee.

Claude Code command
/pr-review-toolkit:review-pr all parallel

An original staged-change request using the source-documented aspect words. It is instruction-level scope guidance, not a permission restriction or a tested invocation. This request example is written by ClaudeStack; it is not a transcript of a tested session.

Request example
/pr-review-toolkit:review-pr tests errors
Review the actual staged API error-handling changes and their tests, using git diff --cached rather than assuming the unstaged file list is complete. State the inspected paths and revision, report findings with file/line evidence, exclude simplify and all file edits, and distinguish inferred test gaps from recorded test execution.

The containing README claims MIT, but its actual bundled LICENSE is Apache-2.0. The command inherits that package identity and has no independent manifest version.

Aspect selection, parallel scheduling and scope instructions are source-described behavior. ClaudeStack has not invoked the command or its agents, submitted a review, or measured model usage or coverage.

What to expect

The reviewed source describes these observations. ClaudeStack has not loaded or run this extension.

  • The command determines scope, chooses relevant agents and aggregates critical issues, important issues, suggestions and positive observations with a proposed action plan.
  • The definition calls code-reviewer always applicable, while its targeted usage example says tests errors reviews only those two lenses. Confirm which agents actually ran instead of promising exact exclusion from that inconsistent prose.
  • An empty unstaged diff may miss staged or committed work. The README/command recipe to stage all changes before a default review does not resolve that mismatch; explicit target scope is needed.
  • Selecting simplify can lead to source edits. A review report does not establish test execution, actual behavioral coverage, an approved GitHub PR or a successful merge.

Self-check: Confirm that the summary names the reviewed staged diff or resolved base/head, the relevant files and actual lenses. Reproduce claimed defects against that scope, mark unavailable PR lookup or unreviewed areas explicitly, and inspect status/diff for unexpected edits. If fixes or simplification changed the target, validate the new result with the project's real checks before a focused re-review.

Troubleshooting

The default review misses everything after staging

git diff --name-only and the general reviewer's git diff default describe unstaged changes. Supply the staged diff explicitly or provide a resolved base/head for committed work. Do not unstage user work just to make the default command see it.

A PR number or gh pr view result is treated as complete PR scope

The reviewed orchestration checks whether a PR exists but does not explicitly retrieve its full diff. Resolve the intended target and provide actual changed paths/base/head; report uncertainty rather than inferring that every commit in the PR was inspected.

More agents run than expected from tests errors

The source includes an always-applicable general-review rule beside an example promising only those two lenses. Ask for the actual selected agent names and use a scoped individual agent when exact single-lens selection matters.

Review creates a refinement diff

Check whether simplify was selected by the request or default workflow. code-simplifier is an editing role, and the command/agents do not provide a universal read-only tool boundary. Inspect the resulting changes before accepting them and rerun relevant checks.

The GitHub lookup fails or a model is unavailable

Read the actual failure and preserve the checkout. Identify the local scope still reviewed and the unavailable remote/model step. Do not create credentials, change account permissions or claim the missing step passed solely to complete a review summary.

A project-specific logging rule is presented as universal

Compare silent-failure-hunter's internal logging/Sentry/Statsig assumptions with the project's own rules. Keep a reproducible defect separate from a recommendation that merely repeats the agent prompt's original project conventions.

Disable or remove it

  • Disable or uninstall the containing pr-review-toolkit plugin at the enabled scope and follow its session loading instructions.
  • Copied commands or agents are separate definitions. Removing this package does not remove those copies, retract an existing report or revert code edits made by a simplification run.

Limitations & considerations

  • May increase model usage
  • Review findings need confirmation; there is no correctness guarantee

Source & review record

Our description is based on public documentation and manifests available on 2026-10-10. Installation formats were checked against Claude Code and the relevant installer documentation. No extension code was executed: this is a source review, not a runtime compatibility test or security audit.

Repository last pushed at the time of review: 2026-10-09T20:54:10Z. This date does not prove that the extension works with a particular Claude Code release.

Usage guide sources

Upstream revision checked for this guide: b8e53f1c05dff3b6d751297f6527990ffc81c2f4. Command names and behavior in this guide are documentation and registration-source findings, not runtime verification.

More commands

Browse this type
Command

Commit

The focused commit command from the Commit Commands package.

AnthropicOfficial component

Each listing records its own source-review date. Listings are documentation reviews, not runtime tests or security audits. Our editorial method