Reproduce, Then Fix

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

Intermediate1 min read

Customize

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

The one-sentence symptom, not the cause

The part of the system this touches

The file or URL path this refers to

Your best guess at what's wrong, if you have one

Your prompt

Users report {{bug}}.

Check the {{area}} flow in {{path}}, especially {{suspected_cause}}.

Write a failing test that reproduces the issue, then fix it so the test passes. Address the root cause, do not suppress the error.

Similar prompts

Add Diagnostics Before Guessing

Instrument first, theorize second — logging with a stated plan for capturing the failure.

Bisect a Regression

Walk the history between a known-good commit and main to find the culprit diff.

Fix a Bug Without Breaking Things

Find every affected code path and the same bug elsewhere before landing the minimal fix.

Reproduce an Intermittent Bug

Rank the likely causes of a flaky bug and get a deterministic way to reproduce the top one.