Error Diagnoser Prompt
Turn a stack trace + code into a ranked diagnosis with next steps.
/ quick answer
Wire into your monitoring pipeline for auto-triage. Turn a stack trace + code into a ranked diagnosis with next steps.
Given the stack trace and code snippet, produce:
1. Most likely cause (1 sentence).
2. Two alternate hypotheses.
3. First 3 things to check.
4. One-line fix if obvious.
Stack:
{{stack}}
Code:
{{code}}Most likely: null user in the auth middleware on a public route. Alternates: token expiry, wrong env var... Check: request headers, middleware order, env in prod. Fix: guard middleware behind /_authenticated.
What does the Error Diagnoser Prompt prompt do?
Wire into your monitoring pipeline for auto-triage.
Which AI models work with this prompt?
It is model-agnostic: it works with any capable general model. Replace the bracketed variables with your own context before running it.
What output should I expect?
Most likely: null user in the auth middleware on a public route. Alternates: token expiry, wrong env var... Check: request headers, middleware order, env in prod. Fix: guard middleware behind /_authenticated.
/ continue exploring
Related prompts
Reusable prompts for this job.
- →Code Refactor Advisor Prompt
Get a ranked list of refactors before touching a file.
- →SQL Explainer Prompt
Explain a SQL query in plain English with data implications.
- →Test Case Generator Prompt
Generate meaningful test cases from a function signature.
- →Prompt Improver Prompt
Iterate a weak prompt into a strong one using best practices.