config-guardian

Safe OpenClaw config updates with automatic backup, validation, and rollback.

abdhilabs
作者 abdhilabs
其他 · Shell · 更新时间: 5 months ago
0
星标
0
Forks
社区
BB
安全:
中等
BBB
质量:

name: config-guardian description: Safe OpenClaw config updates with automatic backup, validation, and rollback. For agent use - prevents invalid config updates.

Config Guardian

Overview

For Agent use only. Safe config updates with automatic backup, validation, and rollback. Prevents the agent from updating non-existent keys or invalid values.

When to Use

Use this skill every time you need to update openclaw.json. Prevents:

Workflow: Atomic Apply (Default)

For all config changes - handles everything in one command:

./scripts/atomic_apply.sh <config_path> <new_value>
# Example: ./scripts/atomic_apply.sh "agents.defaults.model.primary" "minimax-portal/MiniMax-M2.5"

What it does:

  1. Creates timestamped backup automatically
  2. Applies change via openclaw config set <path> <value>
  3. Validates with openclaw doctor --non-interactive
  4. Auto-rollback if validation fails
  5. Trap ensures rollback even on crash

Backup location:

~/.openclaw/config-guardian-backups/

Guardrails

Scripts

Script Purpose
atomic_apply.sh Default - all-in-one safe apply
validate_config.sh Validate via OpenClaw doctor
restore_config.sh Manual restore from backup
🔓 登录解锁更多
使用 GitHub 登录