Install
openclaw skills install auto-rollbackTimed 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.
openclaw skills install auto-rollbackUse 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.
skills/auto-rollback/auto-rollback.sh start --reason "what changed"~/.openclaw/openclaw.jsonBOOT.md cancels the rollbackskills/auto-rollback/auto-rollback.sh start --reason "update gateway bindings"
Short form also works:
skills/auto-rollback/auto-rollback.sh start "update gateway bindings"
skills/auto-rollback/auto-rollback.sh cancel
skills/auto-rollback/auto-rollback.sh status
This skill does not install the boot-md hook by itself.
To enable automatic cancellation after a healthy restart:
boot-md hook installed.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.
skills/auto-rollback/auto-rollback.shskills/auto-rollback/BOOT.md~/.openclaw/openclaw.json.YYYYMMDD-HHMMSS~/.openclaw/state/rollback-pending.json~/.openclaw/logs/rollback.log~/.openclaw/ai.openclaw.rollback.plistIf 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.