Home/
Part XV — Troubleshooting, Checklists, and Reference/47. Prompt Library (Copy-Paste Starters)/47.4 The "write tests then implement" prompt
47.4 The "write tests then implement" prompt
Overview and links for this section of the guide.
On this page
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.