Skip to content
Back to skills

Config Guardian

ASecurity

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

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

Security analysis

A100/100

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

Scanned September 5, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Config Guardian?

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

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

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-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:
- 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 |

Files in this skill

  • .clawhub/origin.json260 B
  • SKILL.md1.5 KB
  • scripts/atomic_apply.sh2 KB
  • scripts/restore_config.sh243 B
  • scripts/validate_config.sh1.8 KB

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…