Home › Prompts › Claude › Thorough pull request review

Thorough pull request review

A structured code review focused on correctness, security and maintainability, with severity labels and concrete fixes.

ClaudeCodingRuleStack original

Written for Claude Opus 5.5 · Updated 2026-10-16

Note: Review and test before use. Provided as is, without warranty. See Terms.

Prompt

Download  
Review this pull request. Context: [what it should do, link to issue]. Language/framework: [stack].
<diff>
[paste diff]
</diff>
Report in this order: 1) Bugs and correctness issues, 2) Security issues, 3) Missing tests, 4) Maintainability. For each finding give severity (blocker/major/minor/nit), the file and line, why it matters, and a concrete fix (code if short). Don't comment on style that a linter would catch. End with a verdict: approve, approve with changes, or request changes.

Replace everything in [square brackets] with your own details.

Settings & parameters

Variations

Tips

More: all Claude prompts · all coding prompts · prompt library

Related prompts

Generate meaningful unit tests

Tests that cover behavior, edge cases and failure modes for a function, in your framework's style.

ClaudeCoding

Debug an error with hypotheses

A debugging prompt that makes the model rank hypotheses and suggest the fastest checks instead of guessing a fix.

ChatGPTCoding

Explain an unfamiliar codebase

Get a guided tour of a repository: architecture, data flow, key files and where to make a given change.

GeminiCoding

Write and explain a SQL query from a schema

Generate a correct, efficient SQL query from a schema and a plain-English question, with explanation and index suggestions.

GrokCoding

Safe refactor plan with small steps

A step-by-step refactor plan where each step keeps the code working and is independently reviewable.

Any chat AICoding

Get new rules weekly

One email a week: fresh rule files, agent tips, and what's changing in Cursor, Claude Code and Copilot. Free, unsubscribe anytime.

Opens the Rulestack Newsletter on beehiiv in a new tab. Or subscribe directly on beehiiv.