/install config-rollback
Config Rollback — 改配置再也不怕炸
Story
凌晨两点,你改了一行 nginx 配置,reload,网站挂了。SSH 连不上——因为你也改了 sshd_config。
你盯着黑屏,后悔没备份。
这个 skill 就是你的后悔药。
改配置前,它先备份,然后设一个 5 分钟的系统级定时炸弹。如果 5 分钟内你没说"没问题"——它自动把配置还原,重启服务。就算你把 SSH 搞断了,定时任务照样跑,因为它用的是 at 命令,不依赖你的连接。
How It Works
You: "自动回滚"
Agent:
1. cp config → config.bak
2. echo "restore" | at now + 5 minutes (system-level, survives disconnect)
3. Returns job ID
You: [make changes, test]
Happy? → atrm \x3Cjob-id> (cancel the bomb)
Broken? → wait 5 min (auto-restores)
Usage
Say "auto rollback" or "自动回滚" before editing any config:
# Backup + set 5-min restore timer
cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf.bak
echo "cp /etc/nginx/nginx.conf.bak /etc/nginx/nginx.conf && systemctl reload nginx" | at now + 5 minutes
# Make your changes...
vim /etc/nginx/nginx.conf
systemctl reload nginx
# If everything works, cancel the timer:
atrm \x3Cjob-id>
When to use
- Editing nginx, sshd, firewall, or any service config
- Changing API gateway routing rules
- Updating DNS or proxy settings
- Any change that could lock you out of a remote server
Key Principle
The restore timer is a system-level scheduled task (at / crontab). It does NOT depend on your shell session, SSH connection, or any application. Even if you brick the service, the timer still fires.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install config-rollback - 安装完成后,直接呼叫该 Skill 的名称或使用
/config-rollback触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Config Rollback 是什么?
Auto-rollback protection for config changes. Backs up before edit, sets a 5-minute system timer to restore if things go wrong. Works with any service config,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 474 次。
如何安装 Config Rollback?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install config-rollback」即可一键安装,无需额外配置。
Config Rollback 是免费的吗?
是的,Config Rollback 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Config Rollback 支持哪些平台?
Config Rollback 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Config Rollback?
由 2233admin(@2233admin)开发并维护,当前版本 v1.1.0。