Agent skill · software engineering · sundial-org
config-guardian
Validate and safeguard OpenClaw config updates (openclaw.json or openclaw config set/apply). Use this skill whenever changing gateway config, models, channels, agents, tools, sessions, or routing. Enforces backup, schema validation, and safe rollback before restarts.
Why this skill is useful
Adds 4 executable scripts for config validation, backup, and rollback that enhance the AI's capability to manage OpenClaw configurations safely.
What it needs
Requires openclaw installed locally. About 1k tokens when loaded. Last updated 2026-03-07. 639 stars on the source repository.
What this skill does
Config Guardian Overview Use this workflow whenever editing ~/.openclaw/openclaw.json or running openclaw config set/apply. It prevents invalid config, creates backups, validates against schema, and enables rollback. Workflow (use every time) 1. Preflight Confirm the requested change and scope. Check for sensitive keys (tokens, credentials). 2. Backup Run scripts/backupconfig.sh to create a timestamped snapshot. 3. Validate (before change) Run scripts/validateconfig.sh. If validation fails, stop and report. 4. Apply change Prefer openclaw config set <path> <value> for small changes. For complex edits, edit the file directly and keep diffs minimal. 5. Validate (after change) Run scripts/validateconfig.sh again. If it fails, restore from backup with scripts/restoreconfig.sh. 6. Restart (only with explicit approval) If change requires restart, ask for approval first. Use openclaw gateway restart. Guardrails Never restart or apply config without explicit user approval. Never remove keys or reorder blocks unless requested. Always keep a backup before edits. If unsure about schema: run openclaw doctor --non-interactive and stop on errors. Scripts scripts/backupconfig.sh — create timestamped backup scripts/validateconfig.sh — validate config via OpenClaw doctor scripts/diffconfig.sh — diff current config vs backup scripts/restoreconfig.sh — restore backup Validation Use openclaw doctor --non-interactive for schema validation This checks against the actual schema that the gateway uses Warns about unknown keys, invalid types, and security issues
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills sundial-org/config-guardian