Prompt Debugging Workflow
Overview
Prompt bugs feel random because several causes look identical: ambiguous instructions, conflicting rules, missing examples, context rot. This workflow separates them with experiments instead of vibes.
When to use
When an agent or prompt produces wrong format, ignores a rule, hallucinates a field, or degraded after an edit.
Workflow
- Reproduce — save the exact failing input, the exact output, and the model/settings; no fix attempts before this exists
- Classify the failure — wrong content, wrong format, missing step, invented content, or instruction ignored
- Bisect — remove half the instructions; if the failure survives, it lives in the other half; repeat until the culprit instruction is isolated
- Check for conflicts — two rules that cannot both be satisfied will be resolved unpredictably; find and rewrite the pair
- Add one targeted fix — a clarifying sentence, a single example, or a format scaffold; one change at a time
- Regression-test — rerun the failing case plus three previously passing cases before declaring the fix
Guardrails
- Never fix by appending 'IMPORTANT: really do X' — find why X was not done
- Never change the model and the prompt in the same experiment
- Keep the failing cases as a permanent test set
Output format
A debug log: failing case, classification, bisection result, the fix, and regression results.
Part of the Manteclaw free skill series. These workflow skills are free forever; Manteclaw's paid automation tools (runnable code, not just prompts) live at payhip.com/Manteclaw.
