跳到主要内容
知仓学习社ZHICANG

error-decoder

Decode an error message or stack trace into a plain-English cause, the exact fix, and how to prevent it. Use when asked to explain an error, debug a…

不碰外部(只输出文字)无严重或高危命中mohitagw15856/pm-claude-skills

它会碰到什么

扫了多少1 个文本文件,3 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Error Decoder Skill

Turn a scary error into a clear answer — the way a senior engineer would read it over your shoulder.

Working from a brief

You'll often get just an error string or a partial stack trace, with no surrounding code. Always deliver a complete diagnosis anyway — infer the language/framework and the likely context from the error itself, and mark inferences as (assumed — confirm). Never refuse for missing context and never leave bracketed placeholders.

Input

Ask for these if not provided:

  • The error — the message, stack trace, or crash output, unabridged
  • The language or runtime — and version, if the error does not name it
  • The relevant code — the frame the trace points at, if available
  • What the user was doing — the command or action that triggered it; infer anything missing

Output Structure

1. What it means

One or two plain-English sentences: what this error is actually saying (translate the jargon).

2. Most likely cause

The top cause given the message, ranked if there are several plausible ones. Point at the exact line/frame in the trace that matters and say why.

3. The fix

Concrete, copy-pasteable steps or code. If the cause is uncertain, give the highest-probability fix first, then the fallback.

4. Why it happened / prevent it

One line on the underlying reason and a guardrail (a check, a type, a test, a config) that stops it recurring.

Quality Checks

  • [ ] The explanation translates the error into plain language (no restating the raw message)
  • [ ] The cause points to a specific line/frame or condition, not "something went wrong"
  • [ ] The fix is concrete and runnable, not "check your code"
  • [ ] Assumptions about language/context are labelled

Anti-Patterns

  • [ ] Do not just paraphrase the error — explain what it means and why it happened
  • [ ] Do not give a generic "try reinstalling" answer when the trace points to a specific cause
  • [ ] Do not invent file names or code that wasn't given — infer and label, or ask for the one missing thing only if truly blocking
  • [ ] Do not stop at the fix — always add the one prevention step

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

同名技能的其他版本

有 3 个不同仓库或目录里都有叫 error-decoder 的技能。它们内容并不相同,别混用: