pr-review · chriswiles — Claude Code command: what it does, how to install
pr-review inspects pull requests through the GitHub CLI against project standards and posts tiered review notes.
no license ★ 6,091 updated 2026-01-06
.claude/commands/pr-review.mdWhat pr-review does
The command pulls pull request metadata and diffs using the gh tool. Claude Code then inspects all changed files against rules defined in .claude/agents/code-reviewer.md. The inspection covers TypeScript strict mode, error handling patterns, UI states, test coverage, and documentation updates.
Findings are prioritized by severity, distinguishing mandatory merge blockers from minor suggestions. When the evaluation is ready, Claude Code sends the summary directly to the thread via gh pr comment.
The workflow fails without an authenticated gh command in your terminal and the guidelines file inside the repository.
What it helps with
- evaluate pull request diffs against local guidelines
- catch missing tests and unhandled error cases
- publish code review comments through the GitHub CLI
Example prompts for the agent
- /pr-review 42
- /pr-review feature-branch
How to install pr-review
Manually: put the files in place
.claude/commands/pr-review.mdCall it with /pr-review. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/pr-review.mdCall it with /prompts:pr-review. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/pr-review.prompt.mdManually: put the files in place
.gemini/commands/pr-review.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about pr-review
How to install pr-review in Claude Code?
Save the command prompt to .claude/commands/pr-review.md.
What does pr-review require to run?
It needs an authenticated gh CLI in your shell and the .claude/agents/code-reviewer.md file present in the repo.
What issues does the command look for?
It reviews TypeScript strict mode compliance, missing error handlers, incomplete interface states, and test coverage.
Similar slash commands
All slash commands for Code review and refactoring →pr-review by other authors comes first.