BACK TO TEMPLATES
promptany
Bug Root Cause Analysis Prompt
Prompt template for diagnosing complex production stack traces and identifying exact root causes.
When to use this
Copy this prompt when providing error logs or stack traces to an AI assistant for systematic root cause analysis.
The template
Perform a systematic root cause analysis for the error log provided below. Rules: 1. Do not propose superficial symptom patches (such as swallowing exceptions or returning dummy defaults). 2. Trace the exact call stack line-by-line to identify where state corruption or contract invalidation occurs. 3. State the precise root cause hypothesis backed by evidence from the log. 4. Provide the minimum necessary code edit required to resolve the underlying failure. Error Log & Context: ``` [PASTE ERROR LOG AND STACK TRACE HERE] ```
How to use
Paste the full un-truncated error log into the error log block.
Last verified 2026-07-26