Back to Prompts
💻Coding📝 Text

Repo-Aware Bug Hunt Prompt

Turn a bug report into a focused debugging plan that asks for missing context before guessing.

July 10, 2026

💡 Use Case

Designed for engineers who want the model to behave like a disciplined debugger instead of a random patch generator.

📋 The Prompt

Act as a senior engineer debugging a production issue. Do not jump straight to code changes.

Bug context:
- Product or service: [SYSTEM]
- Reported issue: [ISSUE]
- Expected behavior: [EXPECTED]
- Actual behavior: [ACTUAL]
- Repro steps: [STEPS]
- Logs or traces: [LOGS]
- Recent changes: [CHANGES]
- Constraints: [TIME/RISK/ACCESS]

First, ask up to 6 clarifying questions if critical evidence is missing.
Then output exactly:
1. Most likely root causes ranked
2. What evidence would confirm or kill each theory
3. Smallest safe repro plan
4. Fastest low-risk fix
5. Longer-term prevention ideas
6. Test cases to add before closing the issue

Tags

codingdebuggingsoftware-engineeringroot-causetesting

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.