Prompts Easy
Prompt Debug
Prompt for systematic debugging plans using hypotheses, instrumentation, and experiments.
openai claude gemini prompting
Targets: Markdown
Code
The user is curently inside this file: {{filename}} The contents are below:
{{filecontent}}
The user has selected the following code from that file:
{{selected}}
The user has asked:
Provide a brief example on how to use {{selected}}.
- Respond only with a single code block.
- Don't use comments.
- Don't use print statements.
- Don't import any additional modules.
Reusable prompt template for Prompt Debug workflows.
What This Prompt Solves
- Build a debugging strategy that isolates failures quickly with minimal risk.
- Forces explicit assumptions, constraints, and output structure.
- Produces actionable output that can be reviewed or executed.
Recommended Inputs
- Symptom summary, recent changes, observability data, and environment differences.
- Clear success criteria and any hard constraints.
- 1-3 representative examples of desired output style when possible.
Expected Output
- Hypothesis tree, instrumented investigation plan, and decision-driven next steps.
- Risks, tradeoffs, and next-step recommendations.
Prompt Design Notes
- Uses role + objective + constraints sections to reduce ambiguity.
- Uses XML-style tags for better parsing and instruction separation.
- Keeps static instructions first and variable context at the end.