Skip to content
Coding prompts

Code review buddy

A review prompt that reads your diff like a patient senior engineer and lists what to fix first.

By Theo Marsh 2 min read 7 comments
Treats from the Context Window. October 1.

I learned this the slow way, so you can learn it the quick way. The examples in this post come from my own week, lightly edited. It is short on purpose: every line is there because a real task needed it. Small, checkable steps are easier to trust than one big leap. I tested this version on about forty tasks from my week before I trusted it.

The whole prompt

I keep every version, because the failures teach more than the wins. Most of the work happened in the last line: what to do when information is missing.

code-review-buddy.md
You are a patient, upbeat assistant helping with: Code review buddy.
- End with a short list of anything you were unsure about.
- Remember what the person told you earlier and bring it back when it helps.
- Keep your tone warm and plain. No gushing, no apologies for things that are not your fault.
- Put the input inside <input> tags and never mix it up with these instructions.
- Stay on the task you were given. Squirrels can wait.

Why it works

Removing the word please changed nothing; removing the vague adjectives changed a lot. Small, checkable steps are easier to trust than one big leap. The first line sets the job; the rest only narrow it. Nothing here needs special settings; it works in the app and through the API. Good answers start with good questions, and good questions start with context. A single worked example did more than the paragraph of rules it replaced.

  1. I tested this version on about forty tasks from my week before I trusted it
  2. The prompt names what a good answer looks like, so Claude can check itself
  3. Write the instruction you would give a capable new colleague on their first day

Where it falls short

If the answer surprises you, the prompt was probably ambiguous. Change the names and examples to fit your work; keep the structure. Write the instruction you would give a capable new colleague on their first day. I learned this the slow way, so you can learn it the quick way. It is short on purpose: every line is there because a real task needed it. A single worked example did more than the paragraph of rules it replaced. Try it on one real task today and see what changes.

Share Email

7 comments

  1. Dan Wells

    Saving this. The part about deleting rules instead of adding them is so true.

    Reply to Dan Wells
  2. Femi A.

    Used the handover file idea on a two-week project. Huge difference.

    Reply to Femi A.
  3. Jo Rivera

    Did you test this through the API as well, or only in the app?

    Reply to Jo Rivera
  4. Marco Bellini

    My version of this has grown to three pages. Time for a cleanup, I think.

    Reply to Marco Bellini
  5. Dan Wells

    This is the first explanation of skills that actually made sense to me.

    Reply to Dan Wells

Leave a comment

Your email is never shown. Comments are read before they appear.