返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
c

config-guardian

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

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
4,728
下载量
4
收藏
概述
安装方式
版本历史

config-guardian

# 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: - Updating non-existent config keys - Using invalid values - Breaking the gateway with bad config ## Workflow: Atomic Apply (Default) For all config changes - handles everything in one command: ```bash ./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 - **Never** restart or apply config without explicit user approval - **Always** use `atomic_apply.sh` - If validation fails -> config auto-rolled back, don't force it ## 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 |

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 config-guardian-1776375703 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 config-guardian-1776375703 技能

通过命令行安装

skillhub install config-guardian-1776375703

下载 Zip 包

⬇ 下载 config-guardian v1.0.1

文件大小: 3.68 KB | 发布时间: 2026-4-17 14:14

v1.0.1 最新 2026-4-17 14:14
**Summary**: Introduces atomic, automatic config updates with built-in backup, validation, and rollback.

- Added `atomic_apply.sh` for one-step safe config changes; creates backups, validates, and auto-rolls back on failure.
- Removed legacy scripts: `backup_config.sh` and `diff_config.sh`.
- Updated workflow and documentation to enforce atomic updates and automatic rollback.
- Tightened guardrails to only allow validated, agent-initiated config changes.
- Backups now stored in `~/.openclaw/config-guardian-backups/`.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部