Systematic Bug Diagnosis

Ranked bug hypotheses, each with the cheapest experiment that would confirm or rule it out.

Intermediate · Works with ChatGPT, Claude, Gemini, Copilot

The prompt

Give me ranked hypotheses for this bug, cheapest test first for each one.

Check the boring causes first — config, cache, clock, permissions, deploy order — before anything exotic, and rank by likelihood given the symptoms.

Bug description and symptoms:
{{CODE}}

Language, framework and recent changes:
{{STACK}}

Why this prompt works

Ordering by likelihood and cost keeps you from spending an hour on an exotic theory before ruling out a config typo.

How to customize it

  • Run the cheapest check first even if a later hypothesis feels more likely to you.
  • Report back results so the ranking can be updated.

Common mistakes

  • Skipping the boring checks because they feel too obvious to be the cause.
  • Omitting recent deploys/config changes, which are often the actual trigger.

Example

Input

Bug description and symptoms: Emails stopped sending for EU users only, started after last week's deploy

What a good answer looks like

A ranked list of hypotheses, each with a specific low-cost test.

Make this prompt fit your work

ModelCoach.ai scores your version, shows what to improve and explains why, right inside ChatGPT, Claude, Gemini and Copilot.

Related prompts