error-decoder

GitHub

将错误信息或堆栈跟踪解码为清晰的英文解释、确切修复方案和预防措施。适用于调试报错、分析异常,输出结构化诊断,包括错误含义、最可能原因、具体代码修复及预防建议。

plugins/pm-engineering/skills/error-decoder/SKILL.md mohitagw15856/pm-claude-skills

触发场景

用户请求解释错误消息 用户提供堆栈跟踪要求调试 询问代码抛出异常的原因 解析晦涩的异常信息

安装

npx skills add mohitagw15856/pm-claude-skills --skill error-decoder -g -y
更多选项

非标准路径

npx skills add https://github.com/mohitagw15856/pm-claude-skills/tree/main/plugins/pm-engineering/skills/error-decoder -g -y

不安装直接使用

npx skills use mohitagw15856/pm-claude-skills@error-decoder

指定 Agent (Claude Code)

npx skills add mohitagw15856/pm-claude-skills --skill error-decoder -a claude-code -g -y

安装 repo 全部 skill

npx skills add mohitagw15856/pm-claude-skills --all -g -y

预览 repo 内 skill

npx skills add mohitagw15856/pm-claude-skills --list

SKILL.md

Frontmatter
{
    "name": "error-decoder",
    "description": "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 stack trace, figure out why code is throwing, or make sense of a cryptic exception. Produces a structured diagnosis: what the error means, the most likely cause, a concrete fix with code, and a prevention tip."
}

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

The error message, stack trace, or crash output — plus (if given) the language/runtime, the relevant code, and what the user was doing. 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

版本历史

  • a38bc30 当前 2026-07-05 11:18

同 Skill 集合

exports/openclaw/360-feedback-template/SKILL.md
exports/openclaw/401k-plan-decoder/SKILL.md
exports/openclaw/ab-test-planner/SKILL.md
exports/openclaw/ab-test-readout/SKILL.md
exports/openclaw/accessibility-audit/SKILL.md
exports/openclaw/account-plan/SKILL.md
exports/openclaw/acquirer-red-team/SKILL.md
exports/openclaw/ad-copy/SKILL.md
exports/openclaw/aeo-optimizer/SKILL.md
exports/openclaw/agenda-or-cancel/SKILL.md
exports/openclaw/agent-design-review/SKILL.md
exports/openclaw/agent-hiring-panel/SKILL.md
exports/openclaw/agent-observability-spec/SKILL.md
exports/openclaw/agent-severance/SKILL.md
exports/openclaw/agent-spec/SKILL.md
exports/openclaw/agm-in-a-box/SKILL.md
exports/openclaw/ai-ethics-review/SKILL.md
exports/openclaw/ai-eval-plan/SKILL.md
exports/openclaw/ai-feature-prd/SKILL.md
exports/openclaw/ai-product-canvas/SKILL.md
exports/openclaw/air-quality/SKILL.md
exports/openclaw/altitude-shifter/SKILL.md
exports/openclaw/ambiguity-resolver/SKILL.md
exports/openclaw/analyst-relations-brief/SKILL.md
exports/openclaw/announcement-card/SKILL.md
exports/openclaw/api-docs-writer/SKILL.md
exports/openclaw/api-test-plan/SKILL.md
exports/openclaw/api-versioning-strategy/SKILL.md
exports/openclaw/apology-letter/SKILL.md
exports/openclaw/architecture-decision-record/SKILL.md
exports/openclaw/architecture-diagram/SKILL.md
exports/openclaw/archive-strategy/SKILL.md
exports/openclaw/assumption-bounty/SKILL.md
exports/openclaw/assumption-mapper/SKILL.md
exports/openclaw/async-update-format/SKILL.md
exports/openclaw/auto-repair-estimate-decoder/SKILL.md
exports/openclaw/autopilot-charter/SKILL.md
exports/openclaw/behavior-intervention-plan/SKILL.md
exports/openclaw/benefits-decoder/SKILL.md
exports/openclaw/bennett-time-audit/SKILL.md
exports/openclaw/bid-tender-review/SKILL.md
exports/openclaw/board-deck-narrative/SKILL.md
exports/openclaw/board-game-designer/SKILL.md
exports/openclaw/board-minutes/SKILL.md
exports/openclaw/board-pre-read/SKILL.md
exports/openclaw/bom-cost-review/SKILL.md
exports/openclaw/bookkeeping-categorization/SKILL.md
exports/openclaw/boolean-search-builder/SKILL.md
exports/openclaw/brag-doc/SKILL.md
exports/openclaw/brainstorming/SKILL.md

元信息

文件数
0
版本
e4def4c
Hash
4582fd0f
收录时间
2026-07-05 11:18

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-02 06:51
浙ICP备14020137号-1 $访客地图$