How to Review a Teammate's Pull Request with Claude Code
Check out a PR locally and have Claude Code summarize the change and flag risks so your review is faster and deeper.
Reviewing someone else's pull request well takes time you often do not have. Claude Code can give you a fast orientation: what the change does, where the risk is, and which files deserve your close attention. Used as a first pass it makes your human review sharper, not lazier.
What you need
- Claude Code in the repo
- The GitHub CLI (gh) authenticated, or the PR branch checked out
- The PR number you want to review
Step 1: Check out the PR branch locally
Pull the PR so Claude can read the full change in context, not just an isolated diff. The gh CLI makes this one command.
Step 2: Ask for a summary and a risk map
Ask Claude to summarize the change against the base branch and rank the files by review risk. This tells you where to spend your attention before you read a single line.
Step 3: Drill into the risky files
Open the highest-risk file and ask pointed questions. Here the in-memory store is a real concurrency concern worth raising in the review. Confirm Claude's claim by reading the code yourself before you comment.
Step 4: Draft review comments you stand behind
Have Claude draft comments for the issues you confirmed, then edit them into your own voice. You own every comment you post, so verify each claim before it goes on the PR.
rateLimit.ts: the in-memory Map means limits are
per-instance. Behind a load balancer a client could
get N times the limit. Consider a shared store
(Redis) or document the single-instance assumption.Result: a review that opens with a clear summary, focuses on the one genuine scaling risk, and skips the boilerplate, all in a fraction of the usual reading time.
Watch related tutorials
12:47
18:33
15:21
15:22
1:02:14
18:05