TDD Pair: Failing Test First

Get the failing test and edge cases before any implementation exists — the AI stops after the test.

Intermediate1 min read

Customize

Fill these in and the prompt below updates as you type. Anything you leave blank stays as a placeholder.

Your prompt

3 placeholders left
Act as a TDD pair. Do NOT write the implementation yet.

Feature: {{feature}}

Signature I want to implement:
{{signature}}

Using {{test_framework}}, write a single FAILING test for the core behavior plus the edge cases you think matter (empty input, boundary values, invalid input).

Add a one-line comment on why each case matters. Stop after the test — I will ask for the implementation next.

Similar prompts

Reproduce, Then Fix

Force a failing test that captures the bug before any fix is allowed to land.

Check the Diff Against the Plan

Audit finished work against the plan it was supposed to follow — gaps only, no style notes.

Commit and Open a PR

Close out a session with a why-focused commit and a PR that carries a test plan.

Document What You Built

Update docs strictly from the diff, with no invented features.