Engineering Pull Request Code Review

Pull Request Review Prompt

Review the change as it will land: cross-file impact, deployment risk, migration safety — plus whether the PR does what its description says.

Overview

A pull request is more than its diff: it lands across files, deploys in an order, and sometimes migrates data. This setup runs PR scope — which adds eight change-specific criteria to the correctness review: breaking changes to public contracts, backward compatibility of serialized data, regression risk, hidden coupling between changed files, deployment ordering and rollback, migration compatibility windows, whether the PR is small enough to review honestly, and whether the description matches the actual change.

How to use this resource

  1. Paste the full diff, not file-by-file

    Cross-file criteria only work when the model sees the files together.

  2. Weigh the compatibility findings first

    Breaking-change and migration findings are the ones that hurt after merge — code-style findings can wait.

  3. Check the description-honesty finding

    A PR that does more than it says is a review evasion — the contract flags it explicitly.

Why This Works

  • PR-scope criteria cover what diff-blind reviews structurally cannot see
  • The one-thing rule flags unrelated changes that ride along unreviewed
  • Deployment and migration criteria review the landing, not just the code

Best for

  • Teams whose human reviewers are stretched thin
  • PRs that touch contracts, schemas, or serialized data
  • Repos where deploy ordering and rollback paths matter

Not for

  • Replacing the human reviewer — this is the second pair of eyes, not the approval authority
  • Reusable PR description templates — that's the Prompt Template Builder's pr-review-template

Use cases

  • Acting as the second reviewer on team PRs
  • Catching the cross-file coupling a per-file review misses
  • Checking that the PR description matches what actually changed

FAQ

What makes this different from reviewing each file in the PR separately?

It adds a Cross-file impact criterion that hunts "hidden coupling between the changed files," plus deployment-ordering and migration-window criteria a per-file pass structurally can't see. Because of that, the workflow tells you to paste the full diff together, not file by file. The generated prompt runs in your own assistant, which does the actual reviewing.

Can I merge based on the APPROVED verdict this prompt gives?

Treat it as a second pair of eyes, not the approval authority. The FINAL VERDICT (APPROVED, APPROVED WITH COMMENTS, or CHANGES REQUIRED) is based only on the findings the model listed, in your own assistant, which can miss things. A human reviewer still owns the merge decision; the verdict informs it rather than replacing it.

How does it catch a PR that does more than its description claims?

A dedicated criterion checks "whether the description matches what the change actually does," and checklist item 12 asks whether the code does what its name and comments claim. The workflow calls a description mismatch a review evasion and flags it, so unrelated changes riding along get tagged with a severity like [MAJOR] rather than sliding through.

More resources from Code Review Prompt Generator

Resources that pair well

Related tools

Guides for this resource

Tip: Save time by exploring related resources and tools that integrate with this resource.