Skip to content
Development
Command

/review-pr

Perform a thorough code review of a pull request with actionable feedback.

From plugin
rohitg00-claude-code-toolkit
2.5k199 skills138 agents199 commands
Install
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/review-pr

Context preview

What this command does when you run it.

Perform a thorough code review of a pull request with actionable feedback.

Command definition

review-pr.md
name: review-pr
description: Perform a thorough code review of a pull request with actionable feedback.

Perform a thorough code review of a pull request with actionable feedback.

Steps

1. Fetch PR metadata: `gh pr view <number> --json title,body,files,additions,deletions,labels`. 2. Read linked issues to understand the motivation for changes. 3. Fetch the full diff: `gh pr diff <number>`. 4. Review each file across quality dimensions:

  • **Correctness**: Logic errors, missing edge cases, race conditions.
  • **Security**: Input validation, auth checks, secret exposure.
  • **Performance**: Query patterns, caching, resource management.
  • **Maintainability**: Naming, complexity, documentation.
  • **Testing**: Coverage of new code paths, edge case tests.

5. Verify:

  • PR description explains what and why.
  • Changes are focused on the stated goal (no scope creep).
  • Tests are included for new functionality.
  • No unintended files (build artifacts, config changes).

6. Rate each finding by severity (critical, warning, suggestion). 7. Compile the review with specific line references and fix suggestions. 8. Offer to post the review as a GitHub PR comment.

Format

## PR Review: #<number> - <title>

**Verdict**: Approve / Request Changes / Comment

### Findings
| Severity | File | Line | Issue |
|----------|------|------|-------|
| CRITICAL | src/auth.ts | 42 | SQL injection via unescaped input |
| WARNING | src/api.ts | 88 | Missing pagination on list endpoint |

### Summary
<overall assessment>

### What's Good
- <positive observation>

Rules

  • Review all commits in the PR, not just the latest.
  • Be specific: include file, line, and a concrete fix suggestion.
  • Limit to 15 findings maximum; prioritize by impact.
  • Request changes only for critical issues; approve with suggestions otherwise.
  • Never approve a PR with known security vulnerabilities.
Read more
Ships withrohitg00-claude-code-toolkit

The most comprehensive toolkit for Claude Code -- 135 agents, 35 curated skills (+400,000 via SkillKit), 42 commands, 176+ plugins, 20 hooks, 15 rules, 7 templates, 15 MCP configs, 26 companion apps, 53 ecosystem entries, and more.

Get the whole plugin