← 返回 Skills 市场
Openclaw Iflow Doctor
作者
kosei-echo
· GitHub ↗
· v1.1.0
578
总下载
0
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install openclaw-iflow-doctor
功能描述
AI-powered auto-repair system for OpenClaw with iflow integration. Automatically diagnose and fix crashes, config errors, model issues. Falls back to iflow-h...
安全使用建议
Key things to check before installing or enabling auto-heal:
1) Review high-risk source files locally (openclaw_memory.py, watchdog.py, install-systemd.sh, install.py, and any code that composes/executes shell commands). Search for network calls (requests, urllib, sockets), hard-coded endpoints (iflow.cn or other URLs), and any use of subprocess/exec that constructs shell strings from user data.
2) Confirm what is sent externally: find functions that call iflow or POST logs/reports. Ensure uploads are to legitimate endpoints and inspect exactly what fields are transmitted (do not send API keys or full config files unless necessary).
3) Audit BAT/script generation: generated .bat/.sh files are executable payloads. Inspect the templates to ensure they contain only the repair steps you expect and do not exfiltrate data or run arbitrary remote code. Prefer manual review before executing generated repair scripts.
4) Avoid installing as root until reviewed: systemd/task-scheduler installation requires elevated privileges; run the skill first in a safe, non-production environment or inside a VM/container to observe behavior.
5) Protect credentials: if you enable iflow integration, use a dedicated least-privilege IFLOW_API_KEY and avoid reusing high-privilege keys. Prefer temporary/limited keys and do not store long-lived secrets in global shell profiles unless you understand the implications.
6) Test auto-heal in conservative mode: disable fully automatic destructive actions (set auto_heal=false) and run diagnosic/check commands manually to confirm suggested fixes before allowing the skill to autonomously run pkill, reinstall, chown, or other high-impact operations.
7) If you lack the ability to audit the omitted large files thoroughly (openclaw_memory.py, watchdog.py), treat this package as higher risk. Consider requesting the author publish the repository for review or provide a minimal-scope variant that only performs read-only diagnostics.
If you want, I can help by listing specific grep patterns to search for (e.g., "requests.post", "subprocess.run", "open\(", "IFLOW_API_KEY", "http://", "https://", "pkill", "chown", "chmod", "cp ") and explain what to look for in each hit.
功能分析
Type: OpenClaw Skill
Name: openclaw-iflow-doctor
Version: 1.1.0
The skill is classified as suspicious due to a critical prompt injection vulnerability identified in `SKILL.md` and `integration_plan.md`. The `on_error` trigger explicitly passes `context: "{{error_description}}"` to the `iflow-helper` skill, allowing an attacker to inject arbitrary instructions or commands if they can control the `error_description` input. Additionally, the `openclaw_memory.py` script generates executable `.bat` or `.sh` files with powerful system commands (e.g., `taskkill`, `chmod`, `npm install`) on the user's desktop, and the `watchdog.py` runs as a persistent daemon with high privileges, calling `openclaw_memory.py` with user-controlled `error_msg` and `error_logs` as arguments. While these capabilities are intended for system repair, the prompt injection vulnerability and the broad system access without clear input sanitization create significant risk for arbitrary code execution or unauthorized system modifications, even if no direct malicious intent (like data exfiltration to an attacker-controlled domain) is explicitly observed.
能力评估
Purpose & Capability
Name/description align with the provided code and docs: the package contains a repair engine, case library, diagnostics and watchdog components and explicitly integrates with an iflow helper. Required binaries (python3, openclaw) and optional dependency on iflow-helper are coherent with the stated goal. Note: the skill expects to operate on OpenClaw configuration, memory and logs (under ~/.openclaw and ~/.iflow), which is consistent with an auto-repair tool but expands its access to many user files.
Instruction Scope
Runtime instructions and included scripts direct the agent to read and modify local OpenClaw configuration and memory files, run system commands (pkill, openclaw gateway restart, cp, chmod/chown), generate executable BAT files, create diagnostic reports, and trigger iflow CLI flows. The SKILL.md and code indicate automatic triggering on errors and an 'auto_heal' mode that will take corrective actions without manual approval. These actions go beyond passive diagnostics and involve modifying system state and possibly restarting services — appropriate for a repair tool but high-impact. The instructions also recommend generating BAT files and 'double-clicking' them, which could execute arbitrary commands with the user's privileges. There is no explicit, fine-grained consent model in the instructions for potentially destructive operations (reinstall, chown, pkill).
Install Mechanism
There is no formal install spec in the skill manifest (instruction-only), but the SKILL.md and docs instruct users to clone from a GitHub repo and run local install scripts (install-systemd.sh / install.py). The repo-based install is common and the URLs shown are ordinary GitHub links. The install scripts (systemd installer) will require sudo to place service files and enable services; they will run code on the host. This is expected for a daemon-style tool but increases the blast radius if the scripts are malicious or buggy. No arbitrary third-party binary download URLs or URL shorteners were observed in the provided texts.
Credentials
The skill manifest declares no required environment variables, but the included docs (iflow-auth-guide.md and other docs/README) instruct users to set IFLOW_API_KEY, IFLOW_BASE_URL and similar env vars to enable iflow CLI integration. The skill integrates with an external service (iflow.cn) and may use user API keys. That is plausible for 'iflow-helper' functionality, but the SKILL.md/meta did not declare these env var requirements explicitly. The code and cases include commands that could include Authorization headers (curl examples) — if those commands are composed and executed programmatically they might leak keys if not handled carefully. Overall the number and sensitivity of resources the skill touches (local configs, logs, memory, optional external API keys) are high relative to a simple helper and should be explicitly documented and scoped.
Persistence & Privilege
The skill does not set always:true and is user-invocable (normal). However, it includes an install-systemd.sh and instructions to register a systemd service (or use Windows Task Scheduler / macOS launchd), which if installed will persist across reboots and likely run with elevated permissions (the Linux instructions call sudo). That persistence is coherent with a watchdog/auto-heal service but materially increases risk because the skill will run continuously and can take actions autonomously. There is no evidence it attempts to modify other skills' configs, but installation as a system service should only be done after code review.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openclaw-iflow-doctor - 安装完成后,直接呼叫该 Skill 的名称或使用
/openclaw-iflow-doctor触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Bug fixes: daemon thread, systemd service, path expansion, Desktop directory. Added: cross-platform support, install scripts, documentation.
v1.0.1
Initial release - AI-powered self-healing system
v1.0.0
AI-powered auto-repair system for OpenClaw with iflow integration
元数据
常见问题
Openclaw Iflow Doctor 是什么?
AI-powered auto-repair system for OpenClaw with iflow integration. Automatically diagnose and fix crashes, config errors, model issues. Falls back to iflow-h... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 578 次。
如何安装 Openclaw Iflow Doctor?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-iflow-doctor」即可一键安装,无需额外配置。
Openclaw Iflow Doctor 是免费的吗?
是的,Openclaw Iflow Doctor 完全免费(开源免费),可自由下载、安装和使用。
Openclaw Iflow Doctor 支持哪些平台?
Openclaw Iflow Doctor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Openclaw Iflow Doctor?
由 kosei-echo(@kosei-echo)开发并维护,当前版本 v1.1.0。
推荐 Skills