← 返回 Skills 市场
xueyetianya

debug-assistant

作者 bytesagain4 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
185
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install debug-assistant
功能描述
Analyze and diagnose common programming error messages and stack traces with root causes and fix suggestions for Python, Node.js, Go, Bash, and system errors.
使用说明 (SKILL.md)

debug

Debug Assistant — Analyze error messages, stack traces, and logs. Get instant diagnosis and fix suggestions for common programming errors.

Commands

Command Description Example
analyze Parse and diagnose an error message or stack trace analyze "TypeError: Cannot read property 'foo' of undefined"
explain Explain what an error code or exception type means explain ECONNREFUSED
suggest Suggest fixes for a given error pattern suggest "ModuleNotFoundError: No module named 'requests'"

Usage

bash script.sh analyze "your error message or stack trace here"
bash script.sh explain ENOENT
bash script.sh suggest "SyntaxError: Unexpected token }"

You can also pipe input:

cat error.log | bash script.sh analyze -

Features

  • Recognizes 40+ common error patterns across Python, Node.js, Go, Bash, and system errors
  • Identifies error type, root cause, and severity
  • Provides actionable fix suggestions with code examples
  • Supports piped input for log file analysis
  • Color-coded output for quick scanning

Requirements

  • bash >= 4.0
  • python3 >= 3.7
  • No external packages required (uses only stdlib)

Examples

$ bash script.sh analyze "ECONNREFUSED 127.0.0.1:5432"

🔍 Error Analysis
─────────────────────────────────────
Type     : System / Network Error
Code     : ECONNREFUSED
Severity : HIGH
Summary  : Connection actively refused by the target host

Root Cause:
  The service at 127.0.0.1:5432 is not running or is not
  accepting connections on that port.

Fix Suggestions:
  1. Check if the service is running:
       sudo systemctl status postgresql
  2. Verify the port is correct and the service is bound to it:
       ss -tlnp | grep 5432
  3. Check firewall rules:
       sudo ufw status
  4. Confirm connection string in your config/env
$ bash script.sh explain ModuleNotFoundError

📖 Error Explanation
─────────────────────────────────────
Name     : ModuleNotFoundError
Language : Python
Category : ImportError subclass

Description:
  Raised when Python cannot locate the specified module.
  This is a subclass of ImportError introduced in Python 3.6.

Common Causes:
  • Package not installed in the current environment
  • Virtual environment not activated
  • Typo in the module name
  • Module installed for a different Python version
安全使用建议
This skill appears to be a self-contained local analyzer and is coherent with its description. Before using it: (1) review the included script if you have concerns (it runs locally and uses only Python stdlib); (2) avoid piping or pasting sensitive logs or secrets into the tool since it will process and display their contents; (3) do not blindly run any of the suggested shell commands (e.g., sudo, pip installs) without understanding them; and (4) if you need extra assurance, run the script in a sandbox or inspect the full script output to confirm it makes no network calls.
功能分析
Type: OpenClaw Skill Name: debug-assistant Version: 1.0.0 The debug-assistant skill is a legitimate tool for analyzing error messages and stack traces. The implementation in scripts/script.sh uses a local Python script with a predefined database of regex patterns to provide diagnostic information and fix suggestions without any network calls, file system modifications, or data exfiltration logic.
能力评估
Purpose & Capability
Name/description (debug assistant for error messages) matches the included assets: an instruction document and a Bash wrapper that runs an embedded Python pattern matcher. Required binaries (bash, python3) are exactly what the SKILL.md lists; no unrelated credentials, packages, or services are requested.
Instruction Scope
SKILL.md instructs the agent/user to run the included script or pipe logs into it, which is consistent with analyzing errors. Note: the skill will process whatever text you pass (including log files), so pasted or piped content may contain sensitive data — the skill does not appear to instruct reading unrelated system files or environment variables.
Install Mechanism
No install spec — instruction-only with an included script. This is low-risk: nothing is downloaded or written to disk beyond the provided files.
Credentials
The skill declares no required environment variables or credentials and the code does not reference external secrets. Suggested fixes in the output include common shell commands (sudo/systemctl/pip) for user guidance only; they are not executed by the skill.
Persistence & Privilege
always is false and there is no evidence the skill modifies agent configuration or requests permanent presence. It runs only when invoked.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install debug-assistant
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /debug-assistant 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug debug-assistant
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

debug-assistant 是什么?

Analyze and diagnose common programming error messages and stack traces with root causes and fix suggestions for Python, Node.js, Go, Bash, and system errors. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 185 次。

如何安装 debug-assistant?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install debug-assistant」即可一键安装,无需额外配置。

debug-assistant 是免费的吗?

是的,debug-assistant 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

debug-assistant 支持哪些平台?

debug-assistant 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 debug-assistant?

由 bytesagain4(@xueyetianya)开发并维护,当前版本 v1.0.0。

💬 留言讨论