← 返回 Skills 市场
charlie-morrison

Error Diagnosis

作者 charlie-morrison · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
51
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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.
使用说明 (SKILL.md)

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

  1. Parse — extract error type, message, file locations, line numbers from raw output
  2. Classify — categorize the error (syntax, runtime, dependency, config, permission, network, OOM, etc.)
  3. Trace — follow the call stack to identify the originating code vs. where the error surfaced
  4. Diagnose — determine root cause using error patterns, common pitfalls, and framework-specific knowledge
  5. 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.

安全使用建议
This skill looks coherent and low-risk: it includes a harmless Python parser and no extra permissions. Before using it, do not paste secrets, credentials, or entire unredacted production logs (the tool generates search queries that include snippets of your input). If you plan to run the included script locally, inspect it yourself (it's simple regex parsing) and run it in a sandboxed environment if you have any doubt. Finally, treat any suggested fixes as guidance—verify in a safe test environment before applying to production.
功能分析
Type: OpenClaw Skill Name: error-diagnosis Version: 1.0.0 The skill bundle is a legitimate utility for parsing and diagnosing software error messages. The primary script, `scripts/parse_stacktrace.py`, uses standard regular expressions to extract file names and line numbers from stack traces (Python, JavaScript, Java, Go) and outputs structured JSON. There is no evidence of data exfiltration, network activity, or malicious prompt injection in SKILL.md.
能力评估
Purpose & Capability
The name/description match the provided SKILL.md and the included parse_stacktrace.py. The script purpose (extracting error type, frames, and search queries) is directly relevant to diagnosing errors.
Instruction Scope
SKILL.md confines runtime behavior to parsing provided error text, classifying, tracing, and suggesting fixes. It does not instruct the agent to read system files, environment variables, or external config paths beyond what the user pastes or provides explicitly.
Install Mechanism
No install spec is present (instruction-only plus a small included Python script). There are no downloads, external installers, or archive extraction steps. The included script is readable, not obfuscated, and contains no network or exec calls.
Credentials
The skill declares no required env vars or credentials, which is appropriate. Note: the SKILL.md encourages pasting logs/configs and the parser builds search queries containing error text; these could contain sensitive info (tokens, file paths, emails) if users paste raw logs—so avoid or redact secrets before use.
Persistence & Privilege
always is false, no install writes or system modifications are requested, and the skill does not request persistent privileges or access to other skills' configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install error-diagnosis
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /error-diagnosis 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of the error-diagnosis skill: - Diagnoses root causes from error messages, stack traces, and logs for multiple languages and frameworks. - Supports multi-error analysis, regression detection, and environment comparison workflows. - Outputs structured diagnosis with error classification, root cause, actionable fix, and prevention guidance. - Includes stack trace parsing script to extract structured error data from logs.
元数据
Slug error-diagnosis
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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。

💬 留言讨论