# Prompt Debug Sheet
<!-- From chapter 2. Use it on one agent before you edit its instructions. -->

It takes an afternoon to start and ten minutes per change after that.

## 1. Read (once, about three hours)

- [ ] Pull 100 real conversations
- [ ] Write a one-line note on each failure, in plain words
- [ ] Sort the notes into piles and count each pile
- [ ] Rank the piles by count times cost

## 2. Test (once, then add to it forever)

| Test | Situation | Passes if | Kind |
| --- | --- | --- | --- |
| 1 |  |  | Easy / Scar / Edge |
| 2 |  |  |  |
| 3 |  |  |  |

## 3. Clean (before any fix)

- [ ] Capitals and shouting removed
- [ ] Pasted junk and untrue statements removed
- [ ] "Think carefully" and "check your work" removed
- [ ] Each remaining rule tested by taking it out
- [ ] Each surviving rule rewritten as what, when and why

## 4. Fix (one row per change)

| Failure pile | Owner | The one change made | Passed every run, before | Passed every run, after | Cost change |
| --- | --- | --- | --- | --- | --- |
|  | Tool / Old rule / Context / Procedure / Checker / Format / Dial / Model |  | of 5 | of 5 |  |

No change goes live without a row in part 4. If you can't fill in the row, you don't yet know whether the change helped.
