"Fix this error" gets guesses. The investigation contract gets a ten-stage diagnosis: facts separated from assumptions, alternatives weighed, fixes justified.
Most debugging prompts hand the model symptoms and hope. The investigation contract structures the work instead: a ten-stage framework from restated symptoms through root cause analysis to post-fix verification, with the discipline that separates senior debugging from guessing — every statement labeled FACT, ASSUMPTION, or HYPOTHESIS, every candidate cause carrying both its supporting and its contradicting evidence, and the core rule stated outright: do not jump to a solution before identifying the most likely root cause. This setup loads a classic wrong-calculation bug to show the full contract.
How to use this resource
1
Feed evidence, not conclusions
Symptoms, expected vs actual, repro steps, raw logs — the contract works from what is observed.
Stage nine requires cause + evidence + change + verification — "here is why this is likely the fix", never just a patch.
Why This Works
Structure prevents the jump-to-solution reflex that wastes debugging sessions
The fact/assumption split catches the silent promotion that derails investigations
Required alternatives stop the first plausible cause from ending the search
Best for
Developers using chat AIs as a debugging partner
Bugs where the first guess has already failed once
Teams standardizing how problems get investigated
Not for
Judging code quality with no failure present — that's the Code Review Prompt Generator
Writing the regression test after the fix — that's the Test Case Prompt Generator
Use cases
Getting a diagnosis instead of a guessed patch
Forcing alternatives before committing to a cause
Keeping assumptions labeled instead of silently promoted
FAQ
Why does the debugging prompt refuse to just tell me the fix?
A stated rule blocks it: "Do not jump directly to a solution before identifying the most likely root cause." The ten-stage framework runs symptoms through root cause analysis first, and stage 9 requires any fix to carry its likely cause, supporting evidence, the change, and how to verify it, so you get "here is why this is likely the fix" rather than an unexplained patch.
What stops the AI from locking onto the first cause it thinks of?
The ROOT CAUSE RULES require the most likely cause plus at least two ALTERNATIVE causes, each carrying its supporting and contradicting evidence, and the EVIDENCE RULES say to carry at least two hypotheses until evidence separates them. The generated prompt enforces this in your own assistant; it structures the reasoning but can't guarantee the real cause is among them.
What is the FACT / ASSUMPTION / HYPOTHESIS labeling actually for?
It stops the silent promotion that derails investigations: every statement must be tagged a FACT (directly observed), an ASSUMPTION (believed without evidence, to be verified or discarded), or a HYPOTHESIS (a testable claim that ships with its test). An assumption can never quietly become a fact, which is the discipline the invoice-totals example is built to demonstrate.
"Refactor this code" invites silent behavior changes. The refactoring contract preserves business rules, outputs, and side effects — and flags uncertainty instead of deciding it.
Build debugging prompts from symptoms, environment, and reproduction steps — root cause first, fix second.
Coding Workflows
Tip: Save time by exploring related resources and tools that integrate with this resource.
Feedback
Send feedback to NewPrompt
Found a bug, have a suggestion, or want to report something confusing? Send a short note.
Cookie preferences
NewPrompt uses optional Google Analytics cookies to understand site usage and improve the tools.
The site works normally if you decline analytics cookies.
Read more in our Cookie Policy.