StoicBuilder

HandbookIX the CuriaCode review

IXthe Curia, Work as a team

Code review

1 min readUpdated 28 November

In plain words

Code review is a second person reading a change before it merges, looking for what the author missed: wrong behaviour, risky edge cases, missing tests and code the team will struggle to maintain.

Where you see it

A pull request on Harbor changes how refunds are calculated. GitHub's Review changes button lets you comment on single lines, then approve or request changes, and branch protection can require an approval before the Merge button works.

Review comments on GitHubbrowser
blocking: refund() uses the plan's current price, not the price on the invoice. A team that upgraded after paying would be refunded the wrong amount.question: what happens if the invoice is already partly refunded?nit: rename amt to amountCents.
Label each comment so the author knows what must change before merging and what's a preference.

What goes wrong

  1. Reviewing style instead of behaviour

    Twenty comments on naming and none on the refund that uses the wrong price. Let the formatter and linter handle style, and spend your attention on what the code does with real data.

  2. Approving a diff too big to read

    Past a few hundred lines, most reviewers start skimming, and the bug sits in the part nobody read closely. Ask for the change to be split.

  3. Trusting an agent's pull request because its tests pass

    The agent wrote the tests too, so they may share its misunderstanding. Check that the tests cover the case in the ticket, and read anything touching money, permissions or deleting data line by line.

What to tell your agent

Copy this into Lovable, Bolt, Cursor or any agent
Review this pull request as a careful senior engineer. List problems in order of severity, marking each as blocking, question or nit with its file and line, and focus on wrong behaviour, edge cases, security and missing tests rather than style the linter already handles.

Quick check

Sign in to earn +10 XP for it

A teammate's pull request on Harbor changes 1,200 lines across billing and team invites. What's the most useful first review comment?

Got a prompt that touches code review?

Paste it. You get a better prompt first, then the cards that explain it.

Check your own prompt

Free, no sign-up.