agentleFS
nafiz530nafiz530/SkillShelf-Labs/skills/coding/explain-error/SKILL.md

explain-error

Skill2 starsChanged 4 days agoMITView on GitHub

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.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the language or tool is unclear, ask one short question.

    line 13
  2. Distinctive:

    If the language or tool is unknown and it changes the answer, ask one short question.

    line 16
  3. Distinctive:

    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.

    line 17
  4. Distinctive:

    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.

    line 18
  5. Distinctive:

    Do not blame the user.

    line 39
  6. Distinctive:

    Do not guess silently. If you need more of the code or error, ask for it.

    line 40
  7. Distinctive:

    Never ask the user to share passwords or API keys.

    line 42
  8. Distinctive:

    Keep it short enough to read in one minute.

    line 43

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.