config-guardian
Original:🇺🇸 English
Translated
4 scripts
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.
3installs
Added on
NPX Install
npx skill4agent add sundial-org/awesome-openclaw-skills config-guardianTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Config Guardian
Overview
Use this workflow whenever editing or running . It prevents invalid config, creates backups, validates against schema, and enables rollback.
~/.openclaw/openclaw.jsonopenclaw config set/applyWorkflow (use every time)
-
Preflight
- Confirm the requested change and scope.
- Check for sensitive keys (tokens, credentials).
-
Backup
- Run to create a timestamped snapshot.
scripts/backup_config.sh
- Run
-
Validate (before change)
- Run .
scripts/validate_config.sh - If validation fails, stop and report.
- Run
-
Apply change
- Prefer for small changes.
openclaw config set <path> <value> - For complex edits, edit the file directly and keep diffs minimal.
- Prefer
-
Validate (after change)
- Run again.
scripts/validate_config.sh - If it fails, restore from backup with .
scripts/restore_config.sh
- Run
-
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 and stop on errors.
openclaw doctor --non-interactive
Scripts
- — create timestamped backup
scripts/backup_config.sh - — validate config via OpenClaw doctor
scripts/validate_config.sh - — diff current config vs backup
scripts/diff_config.sh - — restore backup
scripts/restore_config.sh
Validation
- Use for schema validation
openclaw doctor --non-interactive - This checks against the actual schema that the gateway uses
- Warns about unknown keys, invalid types, and security issues