← 返回 Skills 市场
Claw Seatbelt
作者
segasonicye
· GitHub ↗
· v0.1.2
486
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install claw-seatbelt
功能描述
Provides a 10-second automatic rollback and restart of OpenClaw Gateway if configuration changes cause it to fail, activating only during backup scripts.
使用说明 (SKILL.md)
Claw Seatbelt 🛡️ (OpenClaw 安全带)
这是一款为你修改 openclaw.json 准备的“安全带”。它不像普通插件那样全天候运行,而是只在你需要修改配置并备份时,提供 10 秒的自动回滚保护。
特色功能
- 按需保护:仅在运行备份脚本时触发,不浪费系统资源。
- 10秒无敌险:修改配置后若 Gateway 无法在 10 秒内恢复,自动回退到最新备份并重启。
- 极简设计:无需复杂配置,即装即用。
Usage
The skill primarily runs as a background watchdog.
Manual Check
./bin/watchdog.sh
How it works
- Probes the local Gateway status.
- If down, captures the current "broken" config for debugging.
- Locates the most recent timestamped backup in
~/.openclaw/backups/. - Restores and restarts the Gateway service.
安全使用建议
Before installing or running this skill: (1) Review bin/watchdog.sh line-by-line — it will run openclaw CLI commands, copy your active config, overwrite openclaw.json with the latest file in ~/.openclaw/backups, and restart the Gateway. (2) Confirm you have the 'openclaw' CLI on PATH and that backups exist at ~/.openclaw/backups; the package does not declare this dependency. (3) Expect possible service disruption when the script restarts the Gateway; test in a safe environment first. (4) If you need the advertised behavior ('only during backups' and '10-second rollback'), modify the script to enforce those constraints (e.g., accept a flag, check for a lockfile created by your backup script, implement a 10s poll-and-wait loop rather than immediate rollback). (5) Make a separate copy of your backups before first use; the script will create failed-config-*.json but still overwrites openclaw.json. (6) Consider adding logging/notification and stricter error handling, and update skill.json to declare the openclaw binary requirement and correct version metadata. These inconsistencies look like sloppy packaging rather than deliberate malice, but verify behavior in a controlled test before trusting it in production.
功能分析
Type: OpenClaw Skill
Name: claw-seatbelt
Version: 0.1.2
The skill 'claw-seatbelt' is designed to act as a configuration safety belt for OpenClaw, providing automatic rollback and restart capabilities if the Gateway service becomes unresponsive after a configuration change. The `SKILL.md` clearly outlines this purpose and instructs the agent to run `bin/watchdog.sh`. The `watchdog.sh` script performs expected actions: checking Gateway status, backing up the current configuration, restoring the latest valid backup from `~/.openclaw/backups/`, and restarting the Gateway service using the `openclaw` CLI. All file operations and command executions are directly aligned with its stated purpose and do not show any signs of data exfiltration, malicious execution, persistence mechanisms, or prompt injection attempting to subvert the agent's intended behavior.
能力评估
Purpose & Capability
The skill's stated purpose (automatic rollback when a config change breaks the Gateway during backups) is broadly consistent with the included watchdog.sh which restores a timestamped backup and restarts the Gateway. However the skill.json and SKILL.md declare no required binaries or credentials while the script assumes the presence of an 'openclaw' CLI on PATH and a backup directory at ~/.openclaw/backups. The manifest should declare the openclaw binary dependency and the expected backup path; omission is an incoherence and could lead to runtime failures or unexpected behavior.
Instruction Scope
SKILL.md promises 'activating only during backup scripts' and a '10-second automatic rollback', but the script contains no enforcement of 'only during backup scripts' and does not implement a 10-second probe window (it probes immediately and then sleeps 5 seconds after restart). The script will copy the live config, overwrite it with the latest backup, and restart the Gateway — actions that are in-scope for a rollback helper but are not gated or time-limited as the prose implies. There is also an optional-not-implemented comment about notifications; no network endpoints or exfiltration appear in the code.
Install Mechanism
No install spec (instruction-only) — the only shipped code is a local shell script. This is low install risk because nothing is downloaded or extracted. However, running the script will execute commands on the host (openclaw gateway restart), so the user must review the script before running.
Credentials
No environment variables or secrets are requested (appropriate). But the script implicitly relies on $HOME, ~/.openclaw/backups, and the 'openclaw' CLI. The manifest not declaring the required binary is a proportionality/declared-requirement gap. The script writes logs to /tmp and copies config files inside the user's home — these are expected for the stated purpose but you should ensure permissions and backups are acceptable.
Persistence & Privilege
The skill does not request persistent always-on inclusion and does not modify other skills or global agent config. It runs only when invoked (user-invocable) or when the agent chooses to run it; that autonomous invocation is normal. The script itself writes to the user's filesystem (backups, /tmp) which is expected for this tool but not a cross-skill privilege escalation.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install claw-seatbelt - 安装完成后,直接呼叫该 Skill 的名称或使用
/claw-seatbelt触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.2
Initial release of the configuration safety belt
元数据
常见问题
Claw Seatbelt 是什么?
Provides a 10-second automatic rollback and restart of OpenClaw Gateway if configuration changes cause it to fail, activating only during backup scripts. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 486 次。
如何安装 Claw Seatbelt?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install claw-seatbelt」即可一键安装,无需额外配置。
Claw Seatbelt 是免费的吗?
是的,Claw Seatbelt 完全免费(开源免费),可自由下载、安装和使用。
Claw Seatbelt 支持哪些平台?
Claw Seatbelt 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Claw Seatbelt?
由 segasonicye(@segasonicye)开发并维护,当前版本 v0.1.2。
推荐 Skills