Skip to content
Back to skills

Config Rollback

ASecurity

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

  • 33 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 5, 2026
toolsbashgit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add dvcrn/openclaw-skills-marketplace --skill config-rollback --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Config Rollback?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Config Rollback
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dvcrn-config-rollback/badge)](https://www.skillsdirectory.com/skills/dvcrn-config-rollback)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: config-rollback
description: "自动回滚保护。修改配置前先备份+设5分钟系统定时任务,改坏自动还原。当用户说\"自动回滚\"或需要改配置时使用此 Skill。"
---

# 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 + 自动回滚

Files in this skill

  • SKILL.md951 B
  • package.json111 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…