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.8k199 skills138 agents199 commands
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-code

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
@rohitg00
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.

2.8k40 skills138 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
2.8k
Star history of rohitg00/awesome-claude-code-toolkit on GitHub, a chart by star-history.com

Other commands on rohitg00-claude-code-toolkit.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command