← Back to Skills Marketplace
178
Downloads
0
Stars
0
Active Installs
10
Versions
Install in OpenClaw
/install error-monitor-fix
Description
错误监控 - 扫描 JSON 日志、捕获 ERROR 级别错误、OpenClaw 系统级错误修复建议
README (SKILL.md)
Error Monitor Fix — 错误监控技能
版本: 2.3.0 (所有修复策略改为提示手动,不再执行文件系统修改)
创建日期: 2026-03-23
更新日期: 2026-04-14
📋 功能
实时监控 OpenClaw 运行日志中的 error 类型错误,自动追加到 error.md,并尝试自动修复。
📂 文件结构
skills/error-monitor-fix/
├── SKILL.md
├── skill.json
├── _meta.json # ClawHub 元数据
└── scripts/
├── monitor-error.js # 错误监控(JSON 日志解析 + 去重)
└── auto-fix.js # 自动修复(5 种策略)
🔧 修复策略
| 策略 | 匹配条件 | 动作 |
|---|---|---|
| Gateway 重启(提示手动) | gateway/ws/连接错误 | ⚠️ 提示用户手动重启 |
| 端口释放(只读检查) | EADDRINUSE | 检查 node 监听端口 |
| 会话清理(只读检查) | INVALID_REQUEST | dry-run 检查 |
缓存清理、权限修复属于 dev/test/rule 子代理操作范畴,不属于本技能。
📊 Cron 任务
| 任务名 | 频率 | Job ID |
|---|---|---|
| 错误监控修复 | 每 5 分钟 | 176ecc83 |
⚠️ 注意事项
- 去重窗口:1 小时(避免同一错误重复报告)
- 日志格式:JSON 行格式
- 输出:追加到
memory/error.md
Usage Guidance
This skill is plausible for log monitoring, but there are clear inconsistencies you should resolve before installing: (1) SKILL.md claims no filesystem writes, yet the scripts append to ~/.openclaw/workspace/error.md and write .error-dedup.json / .fix-log.json — if you want read-only behavior, inspect and remove file-write calls. (2) skill.json references scripts/install.sh which is missing — ask the author or treat that as a packaging error. (3) auto-fix.js runs system commands (ss, openclaw sessions cleanup --dry-run); these will execute on your machine when you run the scripts. Recommended next steps: review the two JS files line-by-line (or run them in an isolated sandbox/container), back up ~/.openclaw/workspace before running, verify presence/trust of the openclaw CLI, and if you need stricter guarantees, modify the scripts to run in dry-run/read-only mode only. If you cannot verify the missing install script or the author identity, treat this skill cautiously and avoid giving it persistent or automated execution on production hosts.
Capability Analysis
Type: OpenClaw Skill
Name: error-monitor-fix
Version: 3.0.0
The skill bundle is classified as suspicious primarily because `skill.json` defines a `postinstall` script (`scripts/install.sh`) that is missing from the provided files, preventing a full audit of the installation behavior. Additionally, `scripts/auto-fix.js` utilizes `execSync` to execute shell commands (e.g., `ss` and `openclaw sessions cleanup`), which is a high-risk capability. While the current logic appears diagnostic, the script's reliance on parsing logs from the world-writable `/tmp` directory to trigger these commands creates a potential vector for local exploitation if log content is manipulated.
Capability Assessment
Purpose & Capability
Name/description align with the provided scripts: both monitor /tmp/openclaw/*.log and produce fix suggestions. That capability justifies reading logs and producing reports. Minor mismatch: skill.json declares a postinstall script (bash scripts/install.sh) and systemd requirement, but no install.sh exists in the bundle — this is incoherent and could be a packaging/metadata error.
Instruction Scope
SKILL.md states “所有修复策略改为提示手动,不再执行文件系统修改”, but both scripts write to ~/.openclaw/workspace (append error.md, write .error-dedup.json and .fix-log.json). auto-fix.js executes system commands via child_process.execSync (ss pipeline and openclaw sessions cleanup --dry-run). The runtime instructions/behavior therefore go beyond the read-only description in SKILL.md.
Install Mechanism
No install spec is provided (instruction-only), which is low-risk, but skill.json lists a postinstall script (bash scripts/install.sh) that is missing from the package. That metadata/code mismatch is suspicious: either an expected install script is omitted or metadata was not updated. The included Node scripts will run if invoked but there is no automated installer in the bundle.
Credentials
The skill requests no credentials and no declared env vars, and only reads HOME (process.env.HOME). That is proportionate. However the code reads /tmp logs, writes to ~/.openclaw/workspace, and runs system commands (ss, openclaw CLI), which means it will access local system state and potentially require privileges to inspect sockets — appropriate for a monitoring tool but worth noting because SKILL.md claimed no filesystem modifications while the code does persist data.
Persistence & Privilege
always is false and the skill does not request elevated platform privileges. It does not modify other skills' configuration. Autonomous invocation is permitted (platform default) but not combined with an 'always:true' flag or broad credential requests.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install error-monitor-fix - After installation, invoke the skill by name or use
/error-monitor-fix - Provide required inputs per the skill's parameter spec and get structured output
Version History
v3.0.0
职责边界重构: 移除缓存清理/权限修复(属dev/test/rule子代理操作),保留Gateway重启/端口检查/会话清理3个系统级策略
v2.3.0
所有修复策略改为提示手动: Gateway重启/缓存清理/权限修复 不再执行 rm-rf/chmod 等文件系统修改,仅提示用户手动操作
v2.2.0
移除硬编码的项目路径 /www/wwwroot/www.900az.com/runtime/*,缓存清理只清理工作区 runtime
v2.1.0
Gateway 连接错误改为提示用户手动重启,不再自动重启网关
v2.0.3
错误监控与自动修复技能更新
v2.0.2
错误监控与自动修复技能更新,作者改为c32
v2.0.1
错误监控与自动修复技能 - 实时捕获 error 日志 + 自动修复
v2.0.0
Node.js 重写,JSON 日志解析 + 5 种自动修复策略
v1.0.2
移除 install.sh 中的 hook 注册逻辑; 更新 SKILL.md 文档
v1.0.1
改名 error-monitor → error-monitor-fix; 移除不必要的 gateway:startup hook; 纯定时任务驱动
Metadata
Frequently Asked Questions
What is Error Monitor Fix?
错误监控 - 扫描 JSON 日志、捕获 ERROR 级别错误、OpenClaw 系统级错误修复建议. It is an AI Agent Skill for Claude Code / OpenClaw, with 178 downloads so far.
How do I install Error Monitor Fix?
Run "/install error-monitor-fix" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Error Monitor Fix free?
Yes, Error Monitor Fix is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Error Monitor Fix support?
Error Monitor Fix is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Error Monitor Fix?
It is built and maintained by c32 (@amd5); the current version is v3.0.0.
More Skills