搜索

PythonReactSEOPDF
OpenClaw

config-rollback

自动回滚保护。修改配置前先备份+设5分钟系统定时任务,改坏自动还原。当用户说"自动回滚"或需要改配置时使用此 Skill。

2233admin0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install 2233admin/config-rollback

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Config Rollback - 自动回滚保护

口令

用户说"自动回滚"时触发

执行流程

  1. 备份当前配置
cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.bak
  1. 设系统级定时任务(5分钟后)
echo "cp ~/.openclaw/openclaw.json.bak ~/.openclaw/openclaw.json && systemctl restart openclaw-gateway" | at now + 5 minutes
  1. 返回 job ID

  2. 用户确认正常后

atrm <job-id>

适用场景

  • 修改 channel 配置
  • 修改代理路由
  • 更新插件
  • 修改模型配置
  • 任何需要重启 gateway 的操作

核心原则

  • 必须是系统级定时任务(at/crontab)
  • 不能依赖 OpenClaw 本身
  • 双重保护:git commit + 自动回滚

来源信息

Source
github
Repository
openclaw/skills
Path
skills/2233admin/config-rollback
Version
—
Commit
7e515405b3462556b788031eb3c43e69a81cef88
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# Config Rollback - 自动回滚保护

## 口令
用户说"自动回滚"时触发

## 执行流程

1. **备份当前配置**
```bash
cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.bak
```

2. **设系统级定时任务(5分钟后)**
```bash
echo "cp ~/.openclaw/openclaw.json.bak ~/.openclaw/openclaw.json && systemctl restart openclaw-gateway" | at now + 5 minutes
```

3. **返回 job ID**

4. **用户确认正常后**
```bash
atrm <job-id>
```

## 适用场景
- 修改 channel 配置
- 修改代理路由
- 更新插件
- 修改模型配置
- 任何需要重启 gateway 的操作

## 核心原则
- 必须是系统级定时任务(at/crontab)
- 不能依赖 OpenClaw 本身
- 双重保护:git commit + 自动回滚

相关技能

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

0protocol

0isone

Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.

OpenClaw

0x0-messenger

eijiac24

Send and receive P2P messages using disposable numbers and PINs. No servers, no accounts. Use for human notifications, approval flows, and agent-to-agent communication.