← 返回 Skills 市场
OpenClaw Guardian CN
作者
shenbinxin
· GitHub ↗
· v1.0.1
· MIT-0
113
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install openclaw-guardian-cn
功能描述
OpenClaw 系统守护 skill。每日定时自检、自动检测异常并尝试自救。 用于:(1) 每日定时检查 Gateway 状态 (2) 自动检测进程/WebSocket/插件异常 (3) 自动尝试恢复服务 (4) 用户可自定义自检时间 当用户要求设置每日自检、自助恢复、系统守护、自动重启 Gateway 时触发。
安全使用建议
This skill appears coherent for an OpenClaw Gateway watchdog: it inspects ~/.openclaw, checks processes, and can attempt to restart the gateway. Before installing or running automated setup: 1) Inspect the provided scripts (check.sh, guardian-daily.sh, heartbeat-check.sh) to confirm you accept their behavior. 2) Do not blindly execute the SKILL.md's auto-configuration one-liners — they will add cron entries or register scheduled tasks that cause persistent automated actions. 3) Understand that the cron entry runs a node start command from your ~/.openclaw directory; if those files are untrusted or modified, that cron could execute arbitrary code. 4) If you want persistent supervision, prefer adding the cron/task manually after review or run the checks interactively first. 5) Note small bugs in scripts (e.g., locale assumptions when parsing free output) — test in a safe environment. If you need, I can point out exact lines to modify or create a safer, minimal version that only reports problems without auto-modifying crontab/tasks.
功能分析
Type: OpenClaw Skill
Name: openclaw-guardian-cn
Version: 1.0.1
The openclaw-guardian-cn skill bundle is a system maintenance utility designed to monitor and recover OpenClaw services. It includes scripts (check.sh, guardian-daily.sh) that track process health, system resources, and configuration integrity. The bundle is classified as suspicious because it performs high-risk system modifications, specifically establishing persistence by automatically adding entries to crontab on Linux or Scheduled Tasks on Windows, and it uses eval for shell command execution. While these actions are consistent with the stated 'Guardian' purpose, the use of persistence mechanisms and broad shell access constitutes a significant security risk without evidence of explicit malicious intent.
能力评估
Purpose & Capability
Name/description describe a guardian that checks Gateway, processes, WebSocket/plugin status and tries to recover; the scripts and SKILL.md implement those checks (pgrep, openclaw gateway status/start/restart, checking ~/.openclaw, crontab/tasks). Required items (none) are consistent with this purpose.
Instruction Scope
Instructions and scripts read user-local configuration (e.g., ~/.openclaw/openclaw.json, ~/.openclaw/skills/, extensions), run commands (pgrep, openclaw gateway start/restart, node ./dist/daemon-cli.js if present) and propose adding cron entries or Windows scheduled tasks. This is within scope for a guardian, but the SKILL.md includes one-liners that will modify the user's crontab / scheduled tasks if executed — review those commands before allowing automatic execution.
Install Mechanism
No install spec; the skill is instruction- and script-based. No external downloads or obscure URLs are used. Scripts are provided in the package and will not fetch remote archives by the skill itself.
Credentials
The skill does not request environment variables or credentials. It relies on standard environment values (HOME, OSTYPE) and existing local tools (pgrep, node, python3 if present). No unrelated secrets are requested.
Persistence & Privilege
always:false and model invocation defaults are normal. However, the SKILL.md explicitly instructs how to (and provides snippets that will) add cron entries or register Windows scheduled tasks to run guardian checks. Those actions persist on the system and will cause repeated execution if you run the auto-configuration snippets — you should review/approve any crontab/Task Scheduler changes before applying them.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openclaw-guardian-cn - 安装完成后,直接呼叫该 Skill 的名称或使用
/openclaw-guardian-cn触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- 文档中自动守护脚本的路径、示例命令更新为通用默认路径 ~/.openclaw,说明中移除了硬编码的安装路径。
- 强调实际安装路径如有变化需相应修改脚本命令。
- 其它内容无变动,仅文档细节优化,提升适用性和易用性。
v1.0.0
OpenClaw Guardian skill – initial release:
- 提供 OpenClaw Gateway 全自动定时自检、异常检测和自救功能(支持 Linux/Windows 自动适配)
- 支持每日定时检查 Gateway、进程、WebSocket 连接、插件和系统资源状态
- 检测异常时自动尝试恢复(启动/重启服务、重连、释放端口等),并验证是否恢复成功
- 用户可自定义自检时间,也可手动触发自检
- 首次自检时自动配置系统级守护(Linux: Cron, Windows: 任务计划程序),确保服务持续运行
- 自检报告清晰反馈当前状态、异常及自救结果
元数据
常见问题
OpenClaw Guardian CN 是什么?
OpenClaw 系统守护 skill。每日定时自检、自动检测异常并尝试自救。 用于:(1) 每日定时检查 Gateway 状态 (2) 自动检测进程/WebSocket/插件异常 (3) 自动尝试恢复服务 (4) 用户可自定义自检时间 当用户要求设置每日自检、自助恢复、系统守护、自动重启 Gateway 时触发。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 113 次。
如何安装 OpenClaw Guardian CN?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-guardian-cn」即可一键安装,无需额外配置。
OpenClaw Guardian CN 是免费的吗?
是的,OpenClaw Guardian CN 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
OpenClaw Guardian CN 支持哪些平台?
OpenClaw Guardian CN 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 OpenClaw Guardian CN?
由 shenbinxin(@shenbinxin)开发并维护,当前版本 v1.0.1。
推荐 Skills