Gateway Restore
/install gateway-restore
Gateway Restore
Roll back a gateway config to the last known-good state, then restart safely with health checks and automatic rollback on failure.
Usage (as slash command or natural language)
/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-good
How It Works
- Backs up the current (broken) config with a timestamped filename
- Copies the
known-good.jsonover the live config - Runs the appropriate safe restart script (
safe-slack-restart.shorsafe-gateway-restart.sh) - The safe restart script validates health and rolls back if the gateway doesn't come up
Tagging Known-Good
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.
Script Location
skills/gateway-restore/scripts/gateway-restore.sh
When Invoked via Slash Command
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.
When Invoked via Natural Language
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:
- "restore" / "rollback" → slack gateway
- "restore discord" → discord gateway
- "restore tag" → tag current slack config as known-good
If the gateway restarts mid-exec (SIGTERM), that's expected — the restart succeeded.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install gateway-restore - 安装完成后,直接呼叫该 Skill 的名称或使用
/gateway-restore触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Gateway Restore 是什么?
Restore 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 ne... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 62 次。
如何安装 Gateway Restore?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install gateway-restore」即可一键安装,无需额外配置。
Gateway Restore 是免费的吗?
是的,Gateway Restore 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Gateway Restore 支持哪些平台?
Gateway Restore 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Gateway Restore?
由 halfdeadcat(@halfdeadcat)开发并维护,当前版本 v1.0.0。