← AI Code Review That Catches Real Issues

Lesson 2 of 8

Prompts that review a diff, not the whole repo

Lesson 2 of 8 · AI Code Review That Catches Real Issues

In this lesson. Paste the diff, the standard, and the risk areas.

What you will learn

  • Diff plus standard
  • Severity
  • Suggested tests

Walkthrough

You will include coding standards and the files that matter. Whole-repo dumps waste context. Ask for severity and suggested tests. This is the review prompt.

Work through the ideas in order. After each point, pause and connect it to a task you already do — a document, a workflow, or a feature you own. The goal of AI Code Review That Catches Real Issues is usable skill, not a pile of notes.

If something is unclear, rewrite it in your own words before you continue. Teaching the step back to yourself is the fastest way to see gaps.

Practice

Run a review prompt on a small real diff and keep only comments you agree with.

Keep the first attempt small. A finished example you can reuse beats a perfect plan you never run.

Check your understanding

  • Can you explain the goal of this lesson in one sentence to a teammate?
  • Where would you apply “Diff plus standard” in your own work this week?
  • What would you change on a second pass of the practice?

Next. Continue to the following lesson when the practice has a real artifact, even a rough one.