Stop being the QA department for your AI.
Before it builds anything, make it write three lines: what it will do, what it won't touch, and how you'll know it's done. Then it has to prove each one. You check three things, not every word.
It can't mark its own homework.
Ask AI to check its own work and you'll usually hear "looks perfect". Researchers have found that language models rate their own writing above other people's, even when it isn't better (Panickssery, Bowman and Feng, 2024).
Anthropic's own guide to Claude Code names the real problem:
"Claude stops when the work looks done. If it has nothing to run that tells it whether the work actually is done, 'looks done' is all it has to go on. In practice that makes you the test suite." Best practices for Claude Code, code.claude.com
The same guide's fix: give it a check that comes back pass or fail, and ask for evidence, because "all tests pass" on its own "tells you very little". This prompt does both, before a single thing changes.
Paste this, then fill in the task.
Swap [describe what you want done] for your task. It works in Claude Code, and in the
Claude app for pages, emails and proposals, where the plan appears in the chat.
Before you change anything, write a plan and stop. Don't edit, create or delete anything other than the plan until I reply "approved".
The task: [describe what you want done]
Write the plan as PLAN.md in the project folder (or here in the chat if you can't write files). If something about the task is unclear, put up to 3 short questions at the top, then write the rest using your best guess. Keep it under one page, with these four sections:
1. DO
- The change, in one or two sentences.
- Every file, page or section you will change, by name.
2. DON'T TOUCH
- What must stay exactly as it is. Name the things next to the change that an edit could easily spill into.
- If it turns out you need to change something that isn't on the DO list, stop and ask me. Don't work around it.
3. DONE WHEN
- Three checks that prove the task is finished. Each must be pass or fail, and something I can confirm in under a minute.
- For each check, say what your proof will be: the command you'll run and its output, a screenshot, or the exact text quoted. "Looks good", "should work" or "all tests pass" with nothing shown is not proof.
- At least one check must prove nothing on the DON'T TOUCH list changed.
4. ASSUMPTIONS AND RISKS
- Anything you're guessing. I'll correct it before you start.
- Anything that could still be wrong after all three checks pass, such as something outside this project that depends on the change.
After I approve:
- Keep a copy of the original first (or use version control), so you can show exactly what changed.
- Do only what's on the DO list.
- Run every DONE WHEN check yourself. If one fails, fix it and run it again. Don't hand back until all three pass, or tell me which one you can't pass and why.
- End with a short report:
- Each DONE WHEN check: PASS or FAIL, with its proof.
- Every file or section you changed. Flag anything that wasn't on the DO list.
- Anything you noticed but didn't fix.Thirty seconds before you say "approved".
- DO names real places. Actual files, pages or sections, not "update the site".
- DON'T TOUCH names the risky neighbours. The things right next to the change: the other prices, the terms, the sections either side.
- Every DONE WHEN check is pass or fail, with proof you'll see. If a check says "it works" or "looks right", ask for a sharper one.
- The assumptions are right, and the risks are real ones. Fix wrong guesses now: one line here, an afternoon later. A risk like "the checkout still charges the old price" is often the most useful line in the plan.
Then reply approved.
Check three things, not every word.
- Three PASSes, each with its proof. Output, a screenshot or the exact text, not a sentence saying it passed.
- The change list matches the DO list. Anything extra should be flagged. If it isn't, ask why.
- Read what it noticed but didn't fix. That's often the next task.
If a check has no real proof, send this:
Show me the proof for check 2: the actual output, screenshot or quoted text, not a summary.What a good plan looks like.
A page for your audience:
# PLAN: Black Friday price, £97 to £49
## DO
Change the course price from £97 to £49 everywhere it shows on the sales page.
- index.html: hero button, pricing section, FAQ answer ("It's £97...")
- Both "buy" buttons: point them at the £49 checkout link
## DON'T TOUCH
- Refund policy (14 days), student count, course description
- Header, navigation, footer and terms
- Any other page or file
## DONE WHEN
1. "£97" appears nowhere on the page.
Proof: the search result showing 0 matches for "£97".
2. "£49" shows in the hero, pricing and FAQ, and both buttons
go to the £49 checkout.
Proof: each line quoted, with where it sits.
3. Nothing else changed.
Proof: the full list of changed lines. Only price text and links.
## ASSUMPTIONS AND RISKS
- You already have a £49 checkout link. I need it before I start.
- No countdown or end date. You'll tell me when to switch back.
- Risk: if the price only changes on this page, the checkout could
still charge £97. Change it in your payment tool too.A proposal for a client:
# PLAN: Pricing section for the Harper & Co proposal
## DO
Write section 4 (Pricing) of proposal-harper.docx using my rate card.
- proposal-harper.docx: section 4 only
## DON'T TOUCH
- Sections 1 to 3 (summary, scope, timeline) and section 5 (terms)
- Client name, contact details and dates
- rates.md (read it, don't change it)
## DONE WHEN
1. Every deliverable in the scope section has a price.
Proof: a table of deliverable and price, in scope order.
2. The total is right.
Proof: the sum written out, using the day rates in rates.md.
3. Nothing outside section 4 changed.
Proof: a before and after comparison that shows changes
in section 4 only.
## ASSUMPTIONS AND RISKS
- Prices are shown without VAT.
- Payment terms stay as they are in section 5.
- Risk: if the scope in section 2 changes later, this pricing
needs redoing. The totals won't update themselves.Every check can be settled in under a minute, and one of them always proves nothing else moved.
Four upgrades for bigger jobs.
Lock it to planning
In Claude Code, press Shift+Tab until you see plan mode before you paste. Claude can read but can't change files until you approve.
Fresh eyes
A reviewer that never saw the conversation isn't swayed by the reasoning behind the work. Paste the prompt below after the report.
Hard locks
DON'T TOUCH is a strong request, not a guarantee. For a file that must never change, like your terms, add a deny rule in Claude Code's settings.
Ask for more
Claude tends to build the smallest thing that fits. If you want the edge cases handled too, add "be ambitious" to the task line, and say what that means.
Use a subagent that hasn't seen this conversation to check the work against PLAN.md. Report only what fails a DONE WHEN check or changes something on the DON'T TOUCH list. Skip style.When the task is finished, delete PLAN.md so a later session doesn't pick up an old plan.