Home › All prompts › Your Guess Might Be Wrong: Make the AI Find the Real Cause Before It Fixes

Mini pack

Free

Your Guess Might Be Wrong: Make the AI Find the Real Cause Before It Fixes

Something breaks, and you already have a hunch, so you tell the AI and it often starts editing the thing you named. These 9 free prompts make it test your guess against real evidence first, make the bug happen again, trace it back to where it starts, fix that cause, and prove the bug is gone.

Check your guess against the evidence, make the bug happen again, follow it back to where it starts, fix the real cause, prove it's gone, and make "check first" a habit.

9 prompts in 4 sections. Replace everything in [BRACKETS IN CAPS], then copy and paste into your AI tool.

Download the free PDF

PDF, 16 pages

Written for use with

  • Claude Code, Cursor, Lovable or Bolt: all 9 prompts are pasted into the tool the reader built the app with, opened in their project. Prompts 1.1, 1.2, 2.1, 2.2 and 2.3 change no code: they read files, look at errors and run safe checks, and if a temporary log line is needed they ask first and say where it would go. The pack tells readers to use each tool's planning or chat mode for Sections 1 and 2 as a second layer: Claude Code plan mode (Shift+Tab), Cursor Ask mode (Shift+Tab or the mode picker), Lovable Chat mode, and Bolt Plan Mode (the Plan button). 3.1 writes a fix plan and waits for a "go"; 3.2 re-runs the exact steps that showed the bug and gives a before-and-after without changing more code; 3.3 checks an earlier fix made on the reader's guess and recommends keep, undo or ask, changing nothing until "go"; 4.1 shows a short "check my guess first" rule before anything is saved. No prompt prints a key, token or password. The core rule: evidence first, fix second.
  • Tool facts: the four modes as above; Claude Code plan mode reads files and runs commands to explore but doesn't edit source until a plan is approved; Cursor's Debug Mode (hypotheses, temporary log lines, the reader reproduces the bug, log lines removed after the fix is confirmed); where rules go: Claude Code's CLAUDE.md (recent versions also read AGENTS.md when there's no CLAUDE.md), Cursor's AGENTS.md or .cursor/rules, Lovable's Project settings → Instructions, Bolt's Project settings → Knowledge (Project instructions field). All checked against Anthropic's permission modes and memory pages, Cursor's Ask mode, Debug Mode and Rules pages, Lovable's Chat mode, Instructions and project chat pages, and Bolt's Plan Mode and Project settings pages on Nov 26, 2026.
  • Left out: v0 (its read-only behaviour wasn't checked), Lovable's Try to fix and its free-fix allowance, credit and plan details, version numbers, and every X post (none quoted or summarized).
  • Not repeated here: breaking a loop of failed fixes and a fresh-chat handoff point to Fix My Bugs 1.1 and 1.2; bugs that come and go or only happen for others to Fix My Bugs 3.1 and 3.2; bad data to Fix My Bugs 3.3; locking a fix in with a test to Fix My Bugs 2.3; a clean bug report to Say What You Mean 3.1; undoing unneeded lines to Only Change What I Asked 3.1 and 3.2; a live outage and logs to It Broke in Production; rules files in general to One Rules File for Every AI Tool.
  • No stats or X claims: no numbers, no X posts quoted, and no affiliate or sponsor copy.

Written for use with Claude Code, Cursor, Lovable and Bolt. Not yet tested against them.

All 9 prompts

  1. 1.1 Here's My Guess. Does the Evidence Agree?
  2. 1.2 Split What I Saw From What I Think
  3. 2.1 Make It Happen Again, and Show Me the Proof
  4. 2.2 Follow the Wrong Value Back to Where It Starts
  5. 2.3 My Guess and Two Others, Checked One by One
  6. 3.1 Name the Cause in One Sentence Before Any Fix
  7. 3.2 Before-and-After Proof
  8. 3.3 The AI Already Fixed My Guess. Was That the Problem?
  9. 4.1 A "Check My Guess First" Rule for My Rules File

Section 1: Check My Guess First

1.1 Here's My Guess. Does the Evidence Agree?

Untested: not yet run against a model.

Use this when you think you know what's broken and you're about to tell the AI to fix it. It's for checking your guess against the real code and errors first, and hearing honestly if the guess doesn't fit.

Fill in: [WHAT GOES WRONG] (e.g. "clicking Save on my profile does nothing"), [MY GUESS] (e.g. "I think the login API is broken"), [WHY I THINK THAT] (e.g. "it started after I changed the login page", or "just a hunch").

I have a bug, and I have a guess about the cause. My guess might be wrong. Before you change anything, check whether the evidence agrees with it. Don't edit, create or delete any files yet.

What goes wrong: [WHAT GOES WRONG]
My guess: [MY GUESS]
Why I think that: [WHY I THINK THAT]

Please:
1. Look at the code, errors and logs you can see for this problem. Read the code behind my guess, and also the code behind what goes wrong, even if it's somewhere else.
2. Tell me what you found that supports my guess, and what goes against it. Quote the exact lines, errors or values, with file paths.
3. Give me a verdict: "fits the evidence", "partly fits" or "doesn't fit". Don't agree with me just because I said it.
4. If it doesn't fully fit, tell me where the evidence points instead, in plain words.
5. Tell me the one quick check that would settle it, without changing any code.
Then stop and wait for me. Don't start a fix.

Tips to customize: If the AI says "fits the evidence" but can't quote anything, ask: "Show me the exact line or error that proves it." A verdict with no evidence is just another guess. If the answer says your guess doesn't fit, that's good news: you just saved yourself a fix in the wrong place.

1.2 Split What I Saw From What I Think

Untested: not yet run against a model.

Use this when your bug description mixes facts and theories, and you can't tell them apart anymore. It's for sorting every part of it into "I saw this" and "I think this", so the AI works from facts.

Fill in: [MY BUG DESCRIPTION] (write it the way you'd normally explain it, theories and all).

Here's my bug, described the way I'd normally explain it. Some of it is what I actually saw, and some of it is my theory. Help me tell them apart. Only read files. Don't change anything.

My bug description: [MY BUG DESCRIPTION]

Please:
1. Make two lists. "Seen": things I actually observed, like what I clicked, what showed on screen, and exact error messages. "Theories": anything about why it happens or where the problem is.
2. For each theory, tell me what I'd expect to see if it were true, and whether anything in my project already shows that.
3. List what's missing that would help most, like the exact error text, the steps to make it happen, or when it started.
4. Rewrite my bug as a short report that uses only the "Seen" list, then my theories underneath, clearly labelled as theories.
Keep it short and in plain words.

Tips to customize: Use the rewritten report from item 4 as your starting point for every other prompt in this pack. If item 3 asks for the exact error, copy it word for word. A screenshot of the error, or the text copied from the browser console, beats a summary from memory.

Section 2: Find Where It Really Starts

2.1 Make It Happen Again, and Show Me the Proof

Untested: not yet run against a model.

Use this when the AI is ready to fix a bug it has never actually seen happen. It's for making the bug happen again with clear steps, and getting the exact error or output that shows where it comes from.

Fill in: [WHAT GOES WRONG], [HOW I MAKE IT HAPPEN] (e.g. "log in, go to Profile, change my name, click Save", or "not sure"), [WHERE I'M TESTING] (e.g. "the preview in my tool", "on my computer", "the live site").

Before anyone fixes this bug, I want to see it happen on purpose and get proof of where it comes from. Don't change any code. If you need to add a temporary log line to see what's happening, ask me first and tell me exactly where it would go.

What goes wrong: [WHAT GOES WRONG]
How I make it happen: [HOW I MAKE IT HAPPEN]
Where I'm testing: [WHERE I'M TESTING]

Please:
1. Write clear steps to make the bug happen, numbered, so anyone could follow them. Use mine if they're good, and fix them if they're missing something.
2. If you can run the app or a safe command yourself, do it and show me the real output. If you can't, tell me exactly what to do and what to copy back to you, like the error in the browser console or the terminal, then wait.
3. Once we have the real error or output, quote it exactly and tell me which file and line it points to.
4. Tell me what this proves, and what it doesn't prove yet.
Never print keys, passwords or tokens. Write "(hidden)" instead. Don't suggest a fix yet.

Tips to customize: Test somewhere safe, like your tool's preview or your own computer, not the live site with real customer data. If the bug won't happen again after a few tries, it may only happen sometimes; Fix My Bugs 3.1 and 3.2 cover bugs that come and go or only happen for other people. In Cursor, Debug Mode follows a similar evidence-first approach: it adds temporary log lines, asks you to make the bug happen, and removes the log lines after you confirm the fix.

2.2 Follow the Wrong Value Back to Where It Starts

Untested: not yet run against a model.

Use this when the screen shows something wrong, like the wrong total, a missing name or an old date, and you don't know where it comes from. It's for tracing that one wrong thing backwards, step by step, until you find the first place it goes wrong.

Fill in: [WHAT I SEE ON SCREEN] (e.g. "the cart total says 0"), [WHAT IT SHOULD SAY] (e.g. "the total of the items, like 24.50"), [WHERE I SEE IT] (e.g. "the checkout page").

Something on screen is wrong. Help me follow it backwards to where it first goes wrong. Only read files and run read-only checks. Don't change any code or data.

What I see on screen: [WHAT I SEE ON SCREEN]
What it should say: [WHAT IT SHOULD SAY]
Where I see it: [WHERE I SEE IT]

Please:
1. Find the code that shows this value on that screen. Give me the file path.
2. Follow it backwards, one step at a time: where does that code get the value from, and where does that come from? Keep going until you reach the start, like the database, a form, a setting or an outside service.
3. Make a short numbered list of each step, with the file path, and say "looks right", "looks wrong" or "not sure" for each one.
4. Point to the first step where it goes wrong, and quote the lines that show it.
5. If you can't tell from reading alone, tell me what one check or temporary log line would show it, and ask before adding anything.
Never show real customer details. Describe them instead.

Tips to customize: The first step that goes wrong is the best place to look for the real cause. Everything after it is just passing the wrong value along. If the trail ends at the database, the bug may be in the data rather than the code; Fix My Bugs 3.3, Check the Data, Not Just the Code, covers that.

2.3 My Guess and Two Others, Checked One by One

Untested: not yet run against a model.

Use this when you still believe your guess, but you want it tested fairly against other possible causes. It's for listing three causes, including yours, and ruling them in or out in order, quickest check first.

Fill in: [WHAT GOES WRONG], [MY GUESS], [THE EVIDENCE SO FAR] (paste the error or proof from 2.1, or "none yet").

Treat my guess as one possible cause, not the answer. Check it fairly against two others. Don't change any code while we do this.

What goes wrong: [WHAT GOES WRONG]
My guess: [MY GUESS]
The evidence so far: [THE EVIDENCE SO FAR]

Please:
1. List 3 possible causes: my guess, plus the 2 most likely other causes based on my code and the evidence. At least one should be outside the part of the app my guess points to, like a setting, the data or a different feature.
2. For each cause, say what we'd see if it were true, and one quick check that proves or rules it out without changing code.
3. Put the checks in order: quickest and safest first.
4. Run the first check if you safely can, or tell me exactly how to run it and what to copy back. Then wait.
5. After each result, mark that cause "ruled in", "ruled out" or "still possible", and move to the next check.
Stop as soon as one cause is clearly proven, and tell me which one. Don't start a fix.

Tips to customize: Be ready for your guess to lose. That's the point of this prompt. If all three get ruled out, ask: "Give me three more, and include ones you think are unlikely." If you've already gone around in circles with failed fixes, Fix My Bugs 1.1 is the better starting point.

Section 3: Fix the Real Cause, Then Prove It

3.1 Name the Cause in One Sentence Before Any Fix

Untested: not yet run against a model.

Use this when you've found what's really causing the bug and you're ready for a fix. It's for a short fix plan that names the proven cause, the smallest change that fixes it, and what would show the fix didn't work, before any code changes.

Fill in: [THE PROVEN CAUSE] (from Section 2, e.g. "the total is added up before the cart finishes loading"), [THE PROOF] (paste the error, log line or result that proved it).

We've found the cause of my bug. Before you change anything, write a short fix plan and wait for my "go".

The proven cause: [THE PROVEN CAUSE]
The proof: [THE PROOF]

In the plan:
1. Say the cause in one plain sentence, and how the proof shows it.
2. Describe the smallest change that fixes this cause: which files, and roughly what changes. Don't touch anything that isn't part of this cause.
3. If there's any code we changed earlier based on a wrong guess, list it, and say whether it should be kept or undone.
4. Tell me how we'll know it worked: the steps to repeat, and what we should see now instead of the bug.
5. Tell me what else this change could affect, and one thing to click through afterwards to check it.
Show me the plan and stop. Only make the change after I say "go".

Tips to customize: If the plan wants to change a lot of files for one cause, ask: "What's the smallest version of this fix?" A fix aimed at the real cause is often small. Switch your tool back to its normal building mode before you say "go", or the fix can't be made.

3.2 Before-and-After Proof

Untested: not yet run against a model.

Use this when the AI says the bug is fixed and you want real proof, not just "Done!". It's for repeating the exact steps that showed the bug, and comparing what happened before the fix with what happens now.

Fill in: [THE STEPS THAT SHOWED THE BUG] (paste the steps from 2.1), [WHAT HAPPENED BEFORE THE FIX] (paste the error or wrong output).

You've made a fix. Now prove the bug is really gone. Don't change any more code while you check.

The steps that showed the bug: [THE STEPS THAT SHOWED THE BUG]
What happened before the fix: [WHAT HAPPENED BEFORE THE FIX]

Please:
1. Repeat the exact same steps. If you can run them yourself, do it and show me the real output. If you can't, tell me exactly what to do and what to copy back, then wait.
2. Show a short before and after: what happened before, and what happens now, quoted exactly.
3. Tell me if the cause itself is fixed, or only the symptom is hidden. For example, an error that's now caught and ignored is hidden, not fixed.
4. List every file you changed for this fix, with one line on why. Point out anything you changed that wasn't part of the cause.
5. If you added any temporary log lines while we searched, list them and ask me before removing them.
If there's anything you couldn't run or check, say so. Don't say "fixed" unless the steps prove it.

Tips to customize: Try the steps yourself too, not just the AI. You're the one who saw the bug first, so you'll know if it looks right. To make sure this exact bug can't sneak back later, use Fix My Bugs 2.3, Lock It In With a Test.

3.3 The AI Already Fixed My Guess. Was That the Problem?

Untested: not yet run against a model.

Use this when the AI already changed what you guessed, and the bug is still there, or you're not sure the change did anything. It's for checking whether that change touched the real cause, and deciding what to keep or undo.

Fill in: [WHAT GOES WRONG], [WHAT I TOLD THE AI] (e.g. "I said the login API was broken"), [WHAT THE AI CHANGED] (e.g. "it rewrote the login function", or "not sure, check the recent changes").

I told you what I thought was broken, and you changed that. Now I'm not sure it was the real problem. Check that change honestly. Don't make any new changes yet.

What goes wrong: [WHAT GOES WRONG]
What I told you: [WHAT I TOLD THE AI]
What you changed: [WHAT THE AI CHANGED]

Please:
1. List the files and lines that were changed for this. If I said "not sure", find them from the recent changes, and tell me how you found them.
2. For each change, say if it's connected to the bug, with evidence. Use "connected", "not connected" or "not sure".
3. Tell me if the bug still happens, and what the real cause is most likely to be instead. If you don't know yet, say so and suggest the first check to run.
4. For each change, recommend "keep", "undo" or "ask me", with one line on why. A change that wasn't needed and touches something important should be "undo" or "ask me".
Show me this and stop. Don't undo or fix anything until I say "go".

Tips to customize: Before undoing anything, make sure you have a way back: commit first if your project uses git, or check your tool's version history. To undo only the unneeded lines and keep the rest, see Only Change What I Asked 3.1 and 3.2. Then go to Section 2 to find the real cause.

Section 4: Make It a Habit

4.1 A "Check My Guess First" Rule for My Rules File

Untested: not yet run against a model.

Use this when you're tired of reminding the AI to check before it fixes. It's for a short rule you add to your project's instructions, so the AI treats every guess you make as something to check, not something to obey.

Fill in: [MY TOOL] (e.g. "Claude Code", "Cursor", "Lovable", "Bolt"), [WHERE MY RULES GO] (e.g. "CLAUDE.md", "AGENTS.md", "Lovable's Project instructions", "Bolt's project Knowledge", or "not sure").

Write a short rule for my project's instructions that makes you check my guesses about bugs before acting on them. Show it to me here first. Don't create or change any files until I say "go".

My tool: [MY TOOL]
Where my rules go: [WHERE MY RULES GO]

The rule should say, in plain words, in 6 lines or fewer:
1. When I say what I think is causing a bug, treat it as a guess that might be wrong.
2. Before changing code for a bug, find evidence of the real cause, like the exact error, a log line or the wrong value, and show it to me.
3. If the evidence doesn't fit my guess, tell me plainly before doing anything else.
4. Name the cause in one sentence and wait for my "go" before fixing.
5. After a fix, show before-and-after proof that the bug is gone.
If my rules already have something similar, show me how to merge it instead of adding a second copy. If I said "not sure" about where my rules go, tell me where my tool keeps them, based on its own docs.

Tips to customize: Short rules get followed more often than long ones, so keep it to a few lines. Where it goes depends on your tool: Claude Code reads CLAUDE.md, and recent versions also read AGENTS.md when there's no CLAUDE.md. Cursor reads AGENTS.md or project rules in .cursor/rules. In Lovable, paste it into Project settings → Instructions. In Bolt, paste it into Project settings → Knowledge, in the Project instructions field. A rules file is guidance, not a lock, so keep using Sections 1 to 3 for bugs that matter. For more on rules files, see our One Rules File for Every AI Tool pack.

Get new free packs in your inbox

Optional. Every prompt here is free, and you don't need to sign up to use any of them. We email when we add new free packs. Unsubscribe anytime.

More free packs: Vibe Code Starter Pack Ship It Safe Fix My Bugs Ship It Live Make It Pretty Get Paid Signup Emails That Actually Arrive Lovable Credit Saver One Rules File for Every AI Tool Make Your Claude Code Limit Last Graduate From Lovable First App Store Submission Survive Your First Traffic Spike Get Found on Google First 100 Users Two AIs, One Project It Broke in Production Hit the Slop Wall? Refactor Without Breaking Everything Vibe Code From Your Phone AI Reverse Engineering Run Several AI Agents at Once Claude Code Guardrails Let AI Review Your AI's Code Make Your Cursor Usage Last Privacy Policy and Terms That Match Your App Install Skills, Plugins and MCP Servers Without Getting Burned Say What You Mean Prompt Injection: Don't Let a Web Page or a Strange File Hijack Your Agent Hit Your Limit Mid-Task? Switch AI Tools Without Losing Your Place Don't Let the AI Delete Your Data: Safe Database Changes Make the AI Teach You While It Builds Bolt Token Saver v0 to Production Claude Code Subagents and Skills for Beginners Logins, Tokens and JWTs in Plain English Put Your Web App on Their Phone Add AI Features in Lovable Is Anyone Using It? Simple Analytics for Vibe Coders Use the Cheap Model for the Easy Stuff: Claude Code Model Mixing Ship Updates Without Breaking the Live App: Preview Links, Checks and One-Click Rollback Try to Break It: Stress-Test Your App Before Strangers Do Claude Code Memory: Stop It Forgetting Your Decisions Fix Your Lovable Security Warnings Without Breaking the Live App What Will My App Cost to Run? A Monthly Bill You Can Predict Leave Claude Code Running Without It Getting Stuck Put Your Lovable App on Autopilot: Automations That Check and Report for You Spec and Tests First: Tell the Agent When It's Done Only Change What I Asked: Stop the AI Rewriting Code You Didn't Mention Stop Getting 429'd: Call Other People's APIs Without Hitting Limits Use the Current Version: Stop the AI Writing Outdated Library Code What Did My Agent Actually Do? Read Your Claude Code Session History Your First Google Play Launch: Get Through the 12-Tester, 14-Day Closed Test Will Anyone Want It? Check Your App Idea Before You Build Claude Code Code Mode: Try It Without Breaking Your Safety Checks Coding With Gemini 4 Neon: Make It Double-Check Its Own Work Understand the App You Already Built: A Guided Tour of Your Own Code Replit Missions: Give Agents a Goal, a Budget and Approval Rules Make Your Antigravity Quota Last: Pick the Right Gemini Model and Check /usage Turn a Claude Artifact Into a Desktop App, Without Giving It Too Much Access Built It for Work? Make Sure Only Your Team Can Open It Plan Before It Builds: Use GitHub Spec Kit So the Agent Builds the Right Thing Saves That Stick: Fix Data That Disappears Rebuilt Your Site With AI? Make Sure Google Can Still See Every Page Subscriptions and Paywalls: Gate Features by Plan Your AI App Builder Is Shutting Down: Get Your Code, Data and Domain Out Your Own Android App From a Prompt: Build It in Google AI Studio and Put It on Your Phone Backups You Can Actually Restore: Check, Copy and Test Your Supabase Data Accessibility Pass Before You Ship: Make Your App Work With a Keyboard, a Screen Reader and Zoom Update Your Dependencies Without Breaking the App: npm Updates, Audits, Major Upgrades and Dependabot