Skip to content
Agentmart
Submit a tool

config-watchdog

配置变更安全兜底技能。用于定期快照 OpenClaw 配置文件、 检测意外变更、JSON 格式校验、必要时自动回滚。 当怀疑配置被意外修改或 JSON 损坏时使用。

Skill by XX-Trader

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/xx-trader-config-watchdog

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

配置变更安全兜底技能。用于定期快照 OpenClaw 配置文件、 检测意外变更、JSON 格式校验、必要时自动回滚。 当怀疑配置被意外修改或 JSON 损坏时使用。

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/config-watchdog

What's inside

Skill name
config-watchdog
Description
配置变更安全兜底技能。用于定期快照 OpenClaw 配置文件、 检测意外变更、JSON 格式校验、必要时自动回滚。 当怀疑配置被意外修改或 JSON 损坏时使用。
License
MIT
Instructions
60 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (2)

  • SKILL.md
  • config_watchdog.py · scripts/

SKILL.md (first lines)

# 配置变更安全兜底操作手册

## 适用场景

- 定期配置快照(每 4 小时自动)
- 检测 `openclaw.json`、`jobs.json` 等核心配置意外变更
- JSON 格式校验(防止语法错误导致系统崩溃)
- 配置回滚到上一个已知正常快照

## 操作流程

### 1. 查看看门狗状态

```bash
python3 ~/skills/library/config-watchdog/scripts/config_watchdog.py --status
```

### 2. 手动触发快照

```bash
python3 ~/skills/library/config-watchdog/scripts/config_watchdog.py --snapshot
```

### 3. 检测变更

```bash
python3 ~/skills/library/config-watchdog/scripts/config_watchdog.py --diff
```

### 4. 回滚配置

```bash
# 查看可用快照
python3 ~/skills/library/config-watchdog/scripts/config_watchdog.py --list-snapshots

# 回滚到指定快照(需确认)
python3 ~/skills/library/config-watchdog/scripts/config_watchdog.py --rollback <snapshot_id>
```

## 监控的配置文件

| 文件 | 重要性 | 说明 |
|------|--------|------|
| `~/.openclaw/openclaw.json` | 🔴 关键 | 系统主配置 |
| `~/.openclaw/cron/jobs.json` | 🔴 关键 | 定时任务注册 |
| `~/.openclaw/ops/policy/policy-config.json` | 🟡 重要 | 策略配置 |

## 核心脚本

| 脚本 | 用途 |
|------|------|
| `config_watchdog.py` | 配置看门狗(530 行) |

## 约束

- 快照存储在 `~/.openclaw/ops/config_snapshots/`
- 回滚操作需要用户二次确认(高危操作)
- JSON 校验失败时立即告警,不自动回滚

From XX-Trader/openclaw-hardflow-backup-20260302, MIT.

More from XX-Trader/openclaw-hardflow-backup-20260302

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Aug 14, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from XX-Trader

Cite this page

config-watchdog skill. Agent Mart. https://agentmart.dev/skills/xx-trader-config-watchdog (last updated 2026-10-24)