← 返回 Skills 市场
Error Message Decoder
作者
HonestQiao
· GitHub ↗
· v1.0.0
525
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install error-message-decoder
功能描述
解析常见错误代码,提供错误原因及对应解决方案,支持多语言显示。
使用说明 (SKILL.md)
Error Message Decoder
解析错误信息,提供可能的原因和解决方案。
功能
- 错误代码解析
- 原因分析
- 解决方案建议
- 多语言支持
触发词
- "错误解析"
- "错误解码"
- "error decode"
- "错误原因"
支持的错误
const knownErrors = {
'ENOENT': { zh: '文件不存在', fix: '检查文件路径是否正确' },
'ECONNREFUSED': { zh: '连接被拒绝', fix: '检查服务是否启动' },
'EADDRINUSE': { zh: '端口已被占用', fix: '杀死占用进程或更换端口' },
'undefined is not a function': { zh: '调用了未定义的函数', fix: '检查函数名拼写和导入' },
'null reference': { zh: '空指针错误', fix: '添加空值检查' },
'CORS error': { zh: '跨域错误', fix: '配置CORS headers' },
'404': { zh: '资源不存在', fix: '检查URL是否正确' },
'500': { zh: '服务器内部错误', fix: '检查服务器日志' }
};
输出示例
{
"error": "ENOENT: no such file or directory",
"cause": "文件不存在",
"fix": "检查文件路径是否正确",
"suggestion": "确保文件路径存在且拼写正确"
}
安全使用建议
This skill itself is low-risk (it asks for no credentials and has no installer), but its documentation and implementation disagree and the code contains at least one clear bug. Before installing or enabling it for autonomous use: 1) Ask the author to align SKILL.md and the implementation (same error list, same output fields). 2) Fix the decodeError function so it returns an object with named fields (e.g., cause, fix) instead of attempting to spread a language string into an object; ensure info entries are objects keyed by language or refactor the lookup. 3) Add tests or examples verifying multilingual output and the fallback behavior. 4) Because this is instruction-only, run it in a sandbox or review the final implementation after fixes to confirm it doesn't read files or environment variables. If you need a ready-to-use tool now, prefer a skill whose implementation and documentation already match and include tests.
功能分析
Type: OpenClaw Skill
Name: error-message-decoder
Version: 1.0.0
The OpenClaw skill 'error-message-decoder' is designed to parse error messages and suggest solutions. The implementation in `skill.yaml` performs simple string matching against a predefined list of known errors and returns a structured JSON object. There are no network calls, file system operations, environment variable access, or any other high-risk behaviors. The `SKILL.md` file provides documentation and examples without containing any prompt injection attempts or malicious instructions for the agent. The minor inconsistencies between the `knownErrors` lists in `SKILL.md` and `skill.yaml` are not security-relevant.
能力评估
Purpose & Capability
Name and description match the declared content: an instruction-only skill that maps common error strings to causes and fixes. It does not request any credentials, binaries, or installs, which is proportionate to the purpose.
Instruction Scope
SKILL.md lists a set of known errors (including 'CORS error', '404', '500') and shows output keys like 'cause' and 'fix'. The implementation in skill.yaml contains a different, smaller knownErrors set and returns a different object shape. The implementation also attempts to spread info[language] (a string) into an object, which is a bug and will produce incorrect output or runtime errors. These mismatches mean the agent's runtime behavior will not match the documentation.
Install Mechanism
No install spec and no code files beyond instruction/implementation text. Low-risk: nothing is downloaded or written to disk by an installer.
Credentials
The skill requests no environment variables, credentials, or config paths — appropriate for an error-decoding utility.
Persistence & Privilege
always is false, no elevated persistence requested, and the skill does not ask to modify other skills or system-wide settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install error-message-decoder - 安装完成后,直接呼叫该 Skill 的名称或使用
/error-message-decoder触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of Error Message Decoder.
- 自动解析常见错误信息,提供原因分析和中文解决建议。
- 支持多语言关键字触发,包括中英文错误码和描述。
- 输出包含错误内容、原因、修复建议和示例格式。
- 覆盖文件/端口/网络/函数/服务等常见错误类型。
元数据
常见问题
Error Message Decoder 是什么?
解析常见错误代码,提供错误原因及对应解决方案,支持多语言显示。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 525 次。
如何安装 Error Message Decoder?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install error-message-decoder」即可一键安装,无需额外配置。
Error Message Decoder 是免费的吗?
是的,Error Message Decoder 完全免费(开源免费),可自由下载、安装和使用。
Error Message Decoder 支持哪些平台?
Error Message Decoder 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Error Message Decoder?
由 HonestQiao(@honestqiao)开发并维护,当前版本 v1.0.0。
推荐 Skills