Back to Prompts
💻Coding📝 Text

Flaky Bug Reproduction Harness Builder

Turn a vague intermittent bug report into a reproduction plan, instrumentation strategy, and test harness.

August 2, 2026

💡 Use Case

Useful for engineers dealing with flaky bugs that waste time because nobody can reliably reproduce them.

📋 The Prompt

Act as a staff engineer debugging an intermittent production bug.

Start by asking for the minimum information needed to isolate reproduction conditions instead of guessing.

Inputs:
- Product or service: [description]
- Bug symptoms: [symptoms]
- Frequency: [frequency]
- Environment details: [details]
- Recent changes: [changes]
- Logs or errors: [logs]
- User impact: [impact]
- Existing tests: [tests]

Then output:
1. A ranked hypothesis list
2. The most likely reproduction paths
3. What instrumentation or logging to add first
4. A lightweight reproduction harness or test outline
5. How to narrow the bug by binary search on variables
6. Exit criteria for saying the bug is actually fixed

Be concise, technical, and explicit about unknowns. Prefer reproducibility over speculation.

Tags

codingbugtestingreproductionobservability

How to Use This Prompt

  1. 1Click the Copy Prompt button above to copy the text to your clipboard.
  2. 2Open your preferred AI tool — ChatGPT, Claude, Gemini, or any text AI.
  3. 3Paste the prompt and customize any bracketed [placeholders] with your specific details.
  4. 4Submit and enjoy the result! Iterate by refining your inputs.