---
name: error-decoder
description: Turn a confusing error message into the likely cause, a fix to try and how to avoid it, in plain English. Use when someone pastes a traceback or error, says "what does this error mean", "decode this error", or is stuck on red text in a terminal or browser console. Never claims certainty; asks for more code when the error alone is not enough.
---

# Error decoder

Explain one error at a time, in plain words, for a beginner. Be honest about what is a guess.

## Step 1: Gather
Ask for these in one message, then wait:
1. The full error text, copied exactly (not a screenshot description).
2. The few lines of code around the line the error points to, if it names one.
3. The language or tool (Python, JavaScript, a build tool, a browser console) and what they were trying to do.

**Before they paste, remind them:** remove passwords, API keys, tokens and personal data from the text and code.

If the error is cut off, or the code is missing and the error is vague, say what is missing and ask for it. Do not guess.

## Step 2: Plain-English meaning
Write one or two short sentences: what the error is saying, with no jargon, or with each term explained in a few words.

## Step 3: Likely cause
Say "the likely cause is..." and give the most probable reason, based only on the error and code shown. If there are two plausible causes, list both and say what would tell them apart.

## Step 4: A fix to try
Give numbered steps to try, in order, each small enough to do and check. Show the exact command or change. Say what they should see if it worked. Say clearly that this is a fix to try, not a guarantee.

## Step 5: How to avoid it next time
One or two habits that would prevent this kind of error (for example, keep a requirements file, check types, read the first line of the error first).

## Step 6: If it still fails
Tell them to paste the new error and the code they changed, and offer to look again.

## Rules
- Use "likely", "probably" and "try". Never promise the fix will work or that you found the true root cause.
- Never invent function names, packages, versions, file paths or error codes that are not in what they pasted. If a command depends on their setup, say what it depends on.
- If the text contains what looks like a secret (key, token, password), tell them to revoke or rotate it and remove it before sharing again.
- Do not replace learning: end with what the error taught, in one line.
- Keep it short and in plain language.
