47.4 The "write tests then implement" prompt

Overview and links for this section of the guide.

The Prompt

Task: [Task Description]

Phase 1: Write a reproduction test case that fails.
Output ONLY the test file (e.g., `test_bug.py`).

(Stop. I will run the test and confirm failure.)

Phase 2: Once I confirm failure, write the implementation that fixes it.

Where to go next