The Prompt Debugging Checklist: 10 Checks Before You Rewrite Anything
When a prompt fails, most people rewrite the whole thing and hope. Debug it instead. Run through these checks in order.
- Is the task in the first sentence? If the model has to read 200 words to learn what you want, move it up.
- Is "done" defined? Write one sentence that a stranger could use to grade the output.
- Is there one task, not five? Split compound requests.
- Did you give the context it can't guess? Stack, versions, audience, file names, what already exists.
- Are there conflicting instructions? Short vs. thorough, creative vs. exact. Pick one.
- Is the output format specified? JSON schema, bullet count, word limit, code-only.
- Is there an example? One input/output pair fixes most format problems.
- Are boundaries set? For coding tools: which files it may touch, and "don't change anything else."
- Did you say what went wrong last time? "Last attempt rewrote my CSS; only change the JS" is gold.
- Is the chat too long? Start fresh with the consolidated prompt.
Copy-paste template
Task: [one sentence]
Context: [stack / audience / what exists]
Constraints: [limits, files allowed, things to avoid]
Output format: [exact shape]
Done when: [testable condition]
Example: [optional input -> output]Let the bot do it
Paste your prompt into /fix in the free Prompt Medic Discord and get a diagnosis plus a rewrite in seconds. 3 free fixes a day.
FAQ
What is prompt debugging?
Systematically finding why a prompt produces the wrong output (missing context, vague goal, conflicting rules, wrong format) and fixing that specific cause instead of rewriting blindly.
How do I test if a prompt fix worked?
Run the old and new prompt on the same input 2-3 times and compare against a written definition of done.
More guides
- Why Is ChatGPT (or Cursor, Claude, Grok) Ignoring My Prompt? 7 Causes and Fixes
- Free Prompt Fix Examples: 8 Broken Prompts, Diagnosed and Rewritten
- Best Discord Bot for Game Patch Notes (Valorant, LoL, Apex, Marvel Rivals, Fortnite)
- Vibe Coding Prompts That Work: 9 Tips for Cursor, Lovable, Bolt and v0
- Vibe Coding Security Checklist: 12 Checks Before You Ship an AI-Built App