Bug Triage & Fix Plan (5 Approaches + Ranking)
What does this prompt do?
It guides the model to triage and resolve a bug with a structured, evidence-driven workflow. It produces exactly five distinct investigation and mitigation approaches, each with a clear hypothesis, the precise system areas to inspect, the specific logs/metrics/traces or SQL to collect, and an ordered checklist to confirm or falsify the hypothesis. It then ranks the approaches by fastest path to high-confidence resolution (including blast-radius and data-integrity risk) and performs a second-pass cross-comparison with scenario playbooks (e.g., PROD outage, data corruption risk, flaky issues) to refine the recommended path and output the first 10 concrete actions. By forcing explicit assumptions when context is incomplete, it reduces guesswork and lowers hallucination risk while keeping the plan executable.
The Prompt
Act as a [enter your role].
Description:
[enter your description]
Bug context:
- Title:
- Symptoms (expected vs actual):
- Repro steps (best known):
- Frequency/impact (users, severity, business impact):
- Environment(s) (DEV/ACC/PROD), region, feature flags:
- Stack + relevant modules/services:
- Recent changes (deploys, config, migrations, toggles):
- Observations (logs/metrics/traces/errors/screenshots):
- Constraints (time, rollback policy, data loss tolerance):
Rules:
- Do not ask me questions. If information is missing, state explicit assumptions and proceed.
- Provide exactly 5 DISTINCT investigation/mitigation approaches (not minor variants).
- Be concrete and action-oriented. No generic debugging theory.
- Prefer highest-signal actions first.
Task:
1) For each approach, include:
- Hypothesis: likely root-cause class + why
- Where to look: exact components/files/queries/system areas to inspect
- Data to collect: specific logs/metrics/trace attributes, correlation IDs, SQL queries, dashboards
- Steps: ordered checklist to confirm/falsify the hypothesis
- Fix strategy: code/config/DB change, including rollback plan
- Ops: containment steps, observability improvements, and regression tests to add
- Risk: blast radius, data integrity, and regression risk
- Effort: S/M/L
2) Rank the 5 approaches from #1 (best first move) to #5 (least optimal).
For each rank, provide:
- Primary justification
- Key trade-offs
- Risk assessment (speed vs certainty vs safety)
3) Second pass (iteration):
- Cross-comparison: how the approaches overlap and what evidence would switch you from #1 to #2/#3
- Scenario playbook:
- PROD outage / high severity → recommended path + immediate containment steps
- Silent data corruption risk → recommended path + safeguards
- Flaky/intermittent bug → recommended path + instrumentation plan
- Final refined recommendation: choose the initial path, define decision checkpoints, and list the first 10 concrete actions
Output format:
Bug Triage & Resolution Plan for
Approach 1..5 (same headings for each)
Ranking & Justification
Second Pass
Final Refined Recommendation
AssumptionsHow to Use This Prompt
- Copy the prompt using the button above
- Open your preferred AI tool (ChatGPT, Claude, etc.)
- Paste the prompt and customize the fields in [] as you needed
- Hope it finds the cause