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 9 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.