← 返回 Skills 市场
OpenClaw Emergency Rollback
作者
EncryptShawn
· GitHub ↗
· v1.0.3
· MIT-0
130
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install openclaw-emergency-rollback
功能描述
OpenClaw Emergency Config Rollback — dead man's switch system for safely making risky changes to OpenClaw configuration. Use this skill whenever the user men...
安全使用建议
This skill is mostly coherent with its stated purpose but proceed cautiously. Before installing: 1) Review and verify the restart command that will be stored in rollback-config.json — a wrong command can leave your gateway unreachable. 2) Be aware snapshots include openclaw.json (may contain tokens); if you follow the SKILL.md instruction to "write an AI summary", your agent may read sensitive config and could send it to a remote model — only do this if you trust where that summary will be processed. 3) The docs mix .zip/unzip language with tar.gz usage in scripts — treat the scripts (tar.gz) as authoritative and avoid following ZIP examples blind. 4) The restore extracts archives to / and will overwrite files: test the system in a safe environment before using on production. 5) The code uses pkill -f in places; this can kill processes with matching substrings — ensure the patterns (e.g., watchdog-timer.mjs) are unique on your host. If anything is unclear (restart command, snapshot contents, where AI summary is generated), ask the maintainer or inspect the scripts locally before enabling the hook or running destructive tests.
能力评估
Purpose & Capability
Name, description, and files align: the scripts implement snapshots, a detached timer, a startup hook, and an automatic restore path. The code works against ~/.openclaw and provides restart orchestration — all expected for an emergency rollback tool.
Instruction Scope
SKILL.md instructs the agent to read ~/.openclaw/openclaw.json and produce an "AI summary" to include in a snapshot manifest — this requires the agent to access potentially sensitive config and (depending on your agent) may send that data to the model service. The README also claims "zero AI" for automatic restore but still asks for an AI summary when taking snapshots (contradiction). Several docs reference zip/unzip and .zip filenames while the scripts produce/extract tar.gz files (tar/gzip), which is an operational inconsistency that can cause operator errors during restore.
Install Mechanism
No external downloads or package installs are performed by the skill. It is instruction-only and supplies Node.js scripts that are copied into ~/.openclaw/rollback and an OpenClaw-managed hook — this is expected for a local rollback utility.
Credentials
The skill does not request credentials or unusual environment variables. It relies on HOME and an optional OPENCLAW_HOME and writes files under ~/.openclaw/rollback. However, snapshots include openclaw.json (which may contain tokens) and the SKILL.md asks the agent to read that file and produce an AI summary — that could leak sensitive configuration to remote models if the agent sends the summary externally. The scripts intentionally exclude auth-profiles.json, but other sensitive tokens may still be captured in snapshots.
Persistence & Privilege
The skill does not set always:true and operates only by writing files under the user's OpenClaw home and enabling a managed OpenClaw hook. It spawns detached timers and runs user-provided restart commands, which is within the expected scope for a rollback tool.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openclaw-emergency-rollback - 安装完成后,直接呼叫该 Skill 的名称或使用
/openclaw-emergency-rollback触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
openclaw-emergency-rollback v1.0.3
- trying to fix that its stil flagged suspicious even though my current version shows clean, seems to be a bug in clawhub that uses old versions to cast shade on new versions.
- Cleaned up metadata by removing unnecessary files: .clawhub/origin.json and _meta.json
- No changes to end-user commands or rollback functionality
- Overall package footprint reduced by eliminating redundant metadata
v1.0.2
**Native, restart-proof dead man's switch now ships as a built-in OpenClaw hook for true zero-intervention recovery.**
- Added OpenClaw-native gateway startup hook (`hooks/watchdog-recovery/`) for watchdog recovery that works across both local and containerized (Docker/K8s/pod) environments.
- Recovery system no longer requires cron; persistent state and auto-restore handled by detached Node.js timer and hook logic (`watchdog-timer.mjs`, `handler.ts`).
- Updated file paths for config and scripts: now under `~/.openclaw/rollback/` instead of `~/.openclaw-rollback/`.
- Improved documentation with clear instructions for safe restart (avoiding `pkill -f openclaw`) and guidance for valid destructive testing and logical sabotage.
- New files: `.clawhub/origin.json`, `_meta.json`, full `watchdog-recovery` hook directory, and watchdog timer script.
v1.0.1
- Removed the backup of auth-profile in the snapshot for security purposes, should have never been there. Updated documentation accordingly.
v1.0.0
OpenClaw Emergency Config Rollback v1.0.0
- Adds dead man's switch system for risk-free OpenClaw config changes with automatic rollback if not cancellled in time (Even with no openclaw access for the user or AI access for OpenClaw)
- Manages the entire cycle: create/restore up to 3 snapshots, set recovery timers, and display watchdog reminders with clear commands.
- Leveraging Node.js scripts, zip/unzip, and cron — no new package dependencies required.
- Includes user-friendly commands: "create snapshot", "set emergency recovery", "accept changes", "extend recovery", and "restore snapshot".
- Supports destructive test mode to validate the recovery pipeline, with clear risk warnings.
- All actions and reminders are designed for reliability without AI, network, or manual intervention once armed.
元数据
常见问题
OpenClaw Emergency Rollback 是什么?
OpenClaw Emergency Config Rollback — dead man's switch system for safely making risky changes to OpenClaw configuration. Use this skill whenever the user men... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 130 次。
如何安装 OpenClaw Emergency Rollback?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-emergency-rollback」即可一键安装,无需额外配置。
OpenClaw Emergency Rollback 是免费的吗?
是的,OpenClaw Emergency Rollback 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
OpenClaw Emergency Rollback 支持哪些平台?
OpenClaw Emergency Rollback 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 OpenClaw Emergency Rollback?
由 EncryptShawn(@encryptshawn)开发并维护,当前版本 v1.0.3。
推荐 Skills