返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
a

auto-rollback

Timed rollback safety net for edits to ~/.openclaw/openclaw.json on macOS. Use when changing Gateway config, restarting Gateway after config edits, or needing backup + auto-restore protection via launchd and BOOT.md health-check cancellation.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.2.0-alpha.2
安全检测
已通过
525
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

auto-rollback

# Auto-Rollback Use this skill before editing `~/.openclaw/openclaw.json`. It creates a timestamped backup, schedules a rollback job for 10 minutes later, and restores the backup if Gateway still cannot come up. Rollback auto-cancellation is available only if the workspace `BOOT.md` includes the bundled snippet from this skill and the `boot-md` hook is already installed. ## Quick Flow 1. Run `skills/auto-rollback/auto-rollback.sh start --reason "what changed"` 2. Edit `~/.openclaw/openclaw.json` 3. Restart Gateway 4. If Gateway becomes healthy, `BOOT.md` cancels the rollback 5. If Gateway stays unhealthy, launchd executes the rollback script ## Commands ### Start protection ```bash skills/auto-rollback/auto-rollback.sh start --reason "update gateway bindings" ``` Short form also works: ```bash skills/auto-rollback/auto-rollback.sh start "update gateway bindings" ``` ### Cancel pending rollback ```bash skills/auto-rollback/auto-rollback.sh cancel ``` ### Inspect current state ```bash skills/auto-rollback/auto-rollback.sh status ``` ## BOOT.md Integration This skill does not install the `boot-md` hook by itself. To enable automatic cancellation after a healthy restart: 1. Ensure your OpenClaw workspace already has the `boot-md` hook installed. 2. Merge `skills/auto-rollback/BOOT.md` into the workspace root `BOOT.md`. Without that integration, rollback still works, but you must cancel it manually after a successful restart. ## Files - Script: `skills/auto-rollback/auto-rollback.sh` - BOOT snippet: `skills/auto-rollback/BOOT.md` - Backups: `~/.openclaw/openclaw.json.YYYYMMDD-HHMMSS` - State: `~/.openclaw/state/rollback-pending.json` - Log: `~/.openclaw/logs/rollback.log` - launchd plist: `~/.openclaw/ai.openclaw.rollback.plist` ## Agent Rule If you want agents to always use this safety net, add an SOP rule in `AGENTS.md` that any `openclaw.json` change must run `start` first.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 auto-rollback-1776286751 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 auto-rollback-1776286751 技能

通过命令行安装

skillhub install auto-rollback-1776286751

下载

⬇ 下载 auto-rollback v1.2.0-alpha.2(免费)

文件大小: 5.82 KB | 发布时间: 2026-4-16 18:20

v1.2.0-alpha.2 最新 2026-4-16 18:20
Add MIT license to SKILL.md frontmatter

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部