Error Diagnosis
/install error-diagnosis
Error Diagnosis
Analyze error messages, stack traces, and log output to diagnose root causes and suggest fixes. Use when debugging crashes, runtime errors, build failures, or unexpected behavior.
Usage
Diagnose this error: [paste error message or stack trace]
Or with context:
Diagnose: [error]. Language: [lang]. Framework: [framework]. Recent changes: [what changed].
How It Works
- Parse — extract error type, message, file locations, line numbers from raw output
- Classify — categorize the error (syntax, runtime, dependency, config, permission, network, OOM, etc.)
- Trace — follow the call stack to identify the originating code vs. where the error surfaced
- Diagnose — determine root cause using error patterns, common pitfalls, and framework-specific knowledge
- Fix — provide actionable fix with code snippets
Supported Error Sources
- Stack traces: Python, JavaScript/Node.js, Java, Go, Rust, C/C++, Ruby, PHP
- Build errors: npm, pip, cargo, gradle, maven, webpack, vite, tsc
- Runtime errors: segfaults, OOM, deadlocks, race conditions, type errors
- Infrastructure: Docker, Kubernetes, systemd, nginx, database connection errors
- CI/CD: GitHub Actions, GitLab CI, CircleCI failure logs
Output Format
## Error Type
[Classification: e.g., "TypeError — accessing property of undefined"]
## Root Cause
[1-2 sentences explaining WHY this happened]
## Fix
[Code snippet or command to resolve]
## Prevention
[How to avoid this in the future: type check, test, lint rule, etc.]
Advanced Features
Multi-Error Analysis
Paste multiple errors — the skill identifies whether they share a root cause or are independent issues.
Regression Detection
This error started after [commit/change]. Analyze whether the change could cause this.
Environment Comparison
Works in dev, fails in prod. Error: [error]. Dev config: [config]. Prod config: [config].
Scripts
scripts/parse_stacktrace.py
Extracts structured data from raw stack traces:
python3 scripts/parse_stacktrace.py \x3C error.log
Returns JSON with error type, message, frames (file, line, function), and suggested search queries.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install error-diagnosis - 安装完成后,直接呼叫该 Skill 的名称或使用
/error-diagnosis触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Error Diagnosis 是什么?
Analyze error messages and logs to identify root causes of crashes, build failures, or runtime errors and suggest actionable fixes with code examples. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 51 次。
如何安装 Error Diagnosis?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install error-diagnosis」即可一键安装,无需额外配置。
Error Diagnosis 是免费的吗?
是的,Error Diagnosis 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Error Diagnosis 支持哪些平台?
Error Diagnosis 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Error Diagnosis?
由 charlie-morrison(@charlie-morrison)开发并维护,当前版本 v1.0.0。