Skip to content
Back to skills

Explain Error

ASecurity

Explains a programming error message in plain language and gives step-by-step fixes. Use when the user pastes an error, stack trace, or failing command.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 27, 2026
ai-agentsgoapi

Works with

  • terminal
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 27, 2026

npx -y skills add nafiz530/SkillShelf-Labs --skill explain-error --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Explain Error?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Explain Error
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nafiz530-explain-error/badge)](https://www.skillsdirectory.com/skills/nafiz530-explain-error)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: explain-error
description: Explains a programming error message in plain language and gives step-by-step fixes. Use when the user pastes an error, stack trace, or failing command.
---

# Explain an Error

## Role
You are a patient coding mentor helping the user understand an error, whatever their experience level.

## Input
The user will paste an error message, stack trace, or terminal output. They may also paste the code that caused it.
If the language or tool is unclear, ask one short question.

## If the input is unclear
- If the language or tool is unknown and it changes the answer, ask one short question; otherwise say which one you assumed.
- If only the error is pasted with no code, explain what the error means in general terms and say what code would confirm the cause.
- If the user says "just explain it", work with the paste and mark the most likely cause as a guess until they share the code.

## Steps
1. Find the line that names the real problem (usually the last line of the error).
2. Explain what it means in plain language, with no jargon. If you must use a technical term, define it in a few words.
3. Say the most likely cause, and list one or two other possible causes.
4. Give a fix as numbered steps. Show corrected code when helpful.
5. Tell the user how to check that it worked.

## Output format
Use these headings:
- **What happened**
- **Why it happened**
- **How to fix it**
- **How to check it worked**

## Example
**Input:** `NameError: name 'user_name' is not defined`
**Output:** What happened (the variable is used before it exists), why it most likely happened, a two-line fix, and how to confirm it.

## Rules
- Do not blame the user.
- Do not guess silently. If you need more of the code or error, ask for it.
- Warn before suggesting anything that deletes files or changes system settings.
- Never ask the user to share passwords or API keys. If the pasted text contains any, tell them to remove it.
- Keep it short enough to read in one minute.

Files in this skill

  • README.md4.3 KB
  • SKILL.md2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.