Failure Gallery — Diagnose and Fix Broken Prompts¶
Purpose: Each subdirectory in this gallery contains a deliberately broken
.prompt.mdfile, a description of its symptoms, and a blankdiagnosis.mdfor you to fill in before reading the solution.
This gallery is meant to be used alongside the Prompt Debugging Guide and Module 4 §4.5 (Anti-Patterns). Each case corresponds to one named anti-pattern or failure category.
How to Use This Gallery¶
- Open a case's
broken-prompt.mdand read the prompt. - Without looking at
solution.md, write down: - What failure category this belongs to (from the debugging guide)
- What specific element(s) are missing or broken
- How you would fix it
- Save your answer in
diagnosis.md(fill in the template). - Open
solution.mdand compare.
Case Index¶
| Case | Anti-Pattern | Module Reference |
|---|---|---|
| 01 — Kitchen Sink | Overloaded, multi-goal prompt | Module 4 §4.5 |
| 02 — Stale Context | Hallucination bait; missing grounding | Module 5 §5.1 |
| 03 — Injection Vulnerable | Unguarded system prompt | Module 5 §5.2 |
| 04 — Ambiguous Format | No output schema specified | Module 3 §3.6 |
| 05 — Missing Constraints | Absent role + constraints; vague task | Module 1 §1.3 + Module 2 §2.1 |
Scoring Rubric¶
When reviewing your diagnosis against the solution, score yourself on:
| Dimension | Points |
|---|---|
| Correctly named the anti-pattern or failure category | 2 |
| Identified the specific broken element | 2 |
| Proposed a fix that addresses the root cause (not just symptoms) | 3 |
| Fix preserves what was good about the original prompt | 1 |
| Total | 8 |
A score of 6+ means you have a solid grasp of this failure mode. Below 4 means reviewing the referenced module section will help.