Install
openclaw skills install gateway-restoreRestore a gateway to its last known-good configuration, or tag the current config as known-good. Use when a gateway config change breaks something and you need to roll back fast. Responds to /restore slash command.
openclaw skills install gateway-restoreRoll back a gateway config to the last known-good state, then restart safely with health checks and automatic rollback on failure.
/restore — restore the Slack gateway to known-good/restore discord — restore the Discord gateway to known-good/restore tag — tag the current Slack config as known-good/restore tag discord — tag the current Discord config as known-goodknown-good.json over the live configsafe-slack-restart.sh or safe-gateway-restart.sh)After any successful config change + restart, tag the current config:
bash skills/gateway-restore/scripts/gateway-restore.sh slack --tag-current
bash skills/gateway-restore/scripts/gateway-restore.sh discord --tag-current
This saves it as config-backups/known-good.json. Old tagged versions are also kept as known-good-TIMESTAMP.json.
skills/gateway-restore/scripts/gateway-restore.sh
The command-bypass hook handles /restore slash commands automatically — the script runs detached without LLM involvement. You do NOT need to execute the script.
If the hook fires, simply reply confirming the restore is in progress. Do not call exec.
If the user asks to restore via natural language (not a slash command), THEN run the script:
setsid bash /home/swabby/repos/swabby-brain/skills/gateway-restore/scripts/gateway-restore.sh [slack|discord] [--tag-current] > /tmp/restore-output.log 2>&1 &
sleep 2 && cat /tmp/restore-output.log
Parse the request:
If the gateway restarts mid-exec (SIGTERM), that's expected — the restart succeeded.