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.

Workflow

  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

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

Explore all resources