Paul’s Hint of the Week · #2
Test-First Prompting: Make the AI Prove It
Inspired by Episode 5: Therapy Session 4: Trust Issues
Get a failing test before the fix and real output instead of “all tests pass.” A repeatable loop for AI bug fixes you can trust.
What’s inside
- The goal
- Before you start
- Step by step
- Step 1: Describe the bug with evidence
- Step 2: Ask for a failing test only
- Step 3: Ask for the minimal fix
- Step 4: Run the whole suite and read the raw output
- Step 5: Review the test like code
- Step 6: Commit the test and fix together
- Prompts to steal
- Checklist
- Common mistakes
Subscribers only
This hint is for subscribers.
Paul’s Hint of the Week is for subscribers. Subscribe free to read this hint, every hint before it, and get a new one in your inbox each week.
- All 16 episodes, from Episode 1 on
- Paul’s Hint of the Week: a step-by-step guide to better AI coding, every week
- All three Conflict Resolution tips for every episode
- The Weekly Commit: the new episode and a fix in your inbox each week
Already subscribed? Enter your email and we’ll send you a sign-in link.
Paul’s Desk · Affiliate picks
Paul’s Desk
Gear for the fix.
Themed Gadgets
Fireboomoon Grape Squeeze Ball
Three squishy mesh grape balls for your desk. Squeeze one during a bad deploy instead of the laptop.
Desk Setup
GMKtec NucBox G10 (Ryzen 5 3500U, 16GB + 512GB)
A palm-sized mini PC with a Ryzen 5 3500U, 16GB of DDR4, a 512GB SSD, 2.5GbE and three display outputs.
Storage & Power
Belkin BoostCharge 3-in-1 Foldable Qi2 Charger
One folding stand charges an iPhone, an Apple Watch and AirPods together: 15W Qi2 for the phone, with the 36W power supply in the box.
As an Amazon Associate, Commits and Conflicts earns from qualifying purchases.
All of Paul’s Desk ›