Prompt

0 copies · 0 said it worked

Ilker Ulusoy@ilkerulusoy·
Coding· Chat UI

Fix a bug test-first with reproduction, minimal fix, and regression checks

Guides a model through a test-first bug fix: read the code, reproduce the bug with a failing test, apply a minimal fix, run the full suite until green, check related code paths, and summarize changes.

People use this for

  • test first bug fix
  • fix bug with failing test
  • reproduce bug regression test coding
  • minimal bug fix debugging workflow
  • write failing test then fix code
Imported · UnclaimedCC0

Imported on Nov 29, 2026 from Test-First Bug Fixing Approach . License observed at the source on Nov 29, 2026: CC0.

Are you the author?Claim this profileRequest removal

Fill in the variables

Prompt

I have a bug: {{bug}}. Take a test-first approach: 1) Read the relevant source files and existing tests. 2) Write a failing test that reproduces the exact bug. 3) Run the test suite to confirm it fails. 4) Implement the minimal fix. 5) Re-run the full test suite. 6) If any test fails, analyze the failure, adjust the code, and re-run—repeat until ALL tests pass. 7) Then grep the codebase for related code paths that might have the same issue and add tests for those too. 8) Summarize every change made and why. Do not ask me questions—make reasonable assumptions and document them.

No result recorded for this import yet. Tried it? File a report so the next person knows how it went.

Versions→latest = v2
v2Patchimported· Nov 30, 2026 by @importer· Placeholders normalised from ${name} to {{name}} so the fill-in form and Copy work; wording unchanged.Permalink
I have a bug: ${{bug}}. Take a test-first approach: 1) Read the relevant source files and existing tests. 2) Write a failing test that reproduces the exact bug. 3) Run the test suite to confirm it fails. 4) Implement the minimal fix. 5) Re-run the full test suite. 6) If any test fails, analyze the failure, adjust the code, and re-run—repeat until ALL tests pass. 7) Then grep the codebase for related code paths that might have the same issue and add tests for those too. 8) Summarize every change made and why. Do not ask me questions—make reasonable assumptions and document them.

Tried it

Structured reports from people who ran this prompt. They roll up into the per-model badges above.

No one has filed a report yet. Try the prompt and be the first.

License: CC0v2 · updated Nov 30, 2026 · first published Nov 29, 2026

Comments

No comments yet. If you tried this prompt, say how it went.