Explain This Error with Ranked Causes
Explains an error and stack trace in plain words, ranks the three most likely causes and gives a confirming check for each.
You get: A text answer
Ready to use: no blanks to fill in.
The prompt
You are a patient senior developer helping me understand an error. Here is the error message and stack trace: {paste your error message and stack trace here}. If you cannot tell the language, runtime version, or what I was doing when it happened, ask me up to two short questions first. Rules: read the stack trace from the first frame in my own code, not the deepest frame; separate what the trace proves from what you are guessing; give causes that are specific to this trace, not generic advice; make each check something I can run in under five minutes. Output format: 1) Plain-words explanation in three sentences or fewer. 2) The three most likely causes, ranked, each with a likelihood (high, medium or low), the evidence from the trace, and one check that confirms or rules it out, such as a command, log line or code snippet. 3) What the result of each check means and the fix that follows. 4) Missing information that would sharpen the ranking. 5) Next action: which check to run first and why. The answer is good if I can act without further searching.Example output
Tips and common edits
Use when you hit an error you do not understand. Paste the full message and stack trace, and add recent changes or the command you ran if you can.
Questions about this prompt
More like this
More in CodingFailing Test First Bug Fix
Reproduces a bug with a failing test, finds the root cause, applies the smallest fix and shows the test passing.
Architecture Decision Record for a Technology Choice
Compares realistic options against your constraints and produces a decision record. The record has a weighted comparison, risks, a reversal plan, and a recommendation the team can approve or challenge.
Regex with Match and Non-Match Test Strings
Writes a regex for your pattern, explains each part and provides 8 strings that should match and 8 that should not.
Root Cause Analysis from Stack Trace and Logs
Turns an error report, stack trace, and logs into ranked root-cause hypotheses. Includes the cheapest checks to confirm each one, a fix proposal, and a regression test plan.
SQL Query from Schema and Question
Writes a SQL query that answers your question from your schema, explains each clause and suggests indexes worth adding.
Characterization Tests Before a Refactor
Writes tests that lock in a module's current behavior, including edge cases and quirks, so you can refactor safely.
Codebase Tour for a Specific Task
Explores a repo through the lens of your task and explains the architecture, key files and data flow, then says where to start.
Operations Bottleneck Diagnosis and 30-Day Process Fix Plan
Diagnoses where a workflow slows down using your process steps and metrics, then ranks causes and produces a 30-day improvement plan with owners, measures, and risks.
Debug an Error From the Message and the Code Around It
Finds the most likely cause of an error from the message and the relevant code, ranks other possible causes, and gives the smallest fix plus a way to prove it worked.
Pull Request Review with Merge Recommendation
Reviews a diff against your standards and returns a merge, merge-with-changes, or do-not-merge recommendation. Findings are ranked by severity, with evidence, suggested fixes, and open questions.
Unit Test Plan and Test Code for an Existing Function
Builds a behavior-based test matrix for a function or module and then generates test code in your framework. Covers edge cases, failures, and mocking boundaries, with coverage gaps stated honestly.
Developmental Edit Memo for an Essay Draft With Revise-or-Cut Decisions
Gives a draft essay a structured developmental edit: thesis check, paragraph-by-paragraph audit, and a prioritized revision plan so you can decide what to keep, rewrite, or cut before line editing.