Diagnosing and Fixing Bad Prompts
A systematic debugging checklist for improving underperforming prompts.
The Debugging Mindset
When a prompt produces a bad output, most people's first instinct is to blame the model. But in most cases, the problem is in the prompt — and the model is behaving exactly as it should given the instructions it received.
Treating prompt failures as debugging problems is more productive. Just like debugging code, you systematically identify the root cause, hypothesize a fix, test it, and verify the result. This mindset produces faster improvement than frustrated trial and error.
The Prompt Debugging Checklist
When a prompt fails, work through this five-dimension checklist systematically:
- Specificity — Is it too vague? Does the task need more precise definition?
- Context — Is background information missing that the model needs?
- Format — Is the desired output format and length specified?
- Constraints — Are constraints clearly stated? Do any of them conflict?
- Examples — Would an example of good output eliminate ambiguity?
Each dimension maps to a specific type of fix. Identify which dimension failed and apply the corresponding fix.
All lessons in this course
- Overly Vague Instructions
- Contradictory Requirements
- Missing Context Errors
- Diagnosing and Fixing Bad Prompts