Debug Assistant prompt
Copy the prompt into Claude and replace any sample inputs with your own.
Diagnose [failure] using [code], [logs], and [expected behavior]. Rank possible causes by evidence and suggest the smallest observation that distinguishes them. Once a cause is supported, give a minimal repair and a regression check.Make the failure repeatable before changing code
Give Claude the smallest failing input you have, the expected result, the actual result, and a relevant error message with credentials removed. Add one neighboring input that still works. That contrast can isolate the part of the code where behavior diverges.
Pick the proposed check that would most clearly confirm or discard a hypothesis. Once you have evidence for a cause, compare the repair with the original behavior. Run the failing input and the neighboring case again to catch a broad fix.