Error Message Decoder
v1.0.0解析常见错误代码,提供错误原因及对应解决方案,支持多语言显示。
Security Scan
OpenClaw
Suspicious
high confidencePurpose & 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.
What to consider before installing
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.Like a lobster shell, security has layers — review code before you run it.
debugerrorlatest
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": "确保文件路径存在且拼写正确"
}
Comments
Loading comments...
