Awesome-openclaw-skills 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.
install
source · Clone the upstream repo
git clone https://github.com/sundial-org/awesome-openclaw-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/sundial-org/awesome-openclaw-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/config-guardian" ~/.claude/skills/sundial-org-awesome-openclaw-skills-config-guardian && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/sundial-org/awesome-openclaw-skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/config-guardian" ~/.openclaw/skills/sundial-org-awesome-openclaw-skills-config-guardian && rm -rf "$T"
manifest:
skills/config-guardian/SKILL.mdsource content
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)
-
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 backupscripts/backup_config.sh
— validate config via OpenClaw doctorscripts/validate_config.sh
— diff current config vs backupscripts/diff_config.sh
— restore backupscripts/restore_config.sh
Validation
- Use
for schema validationopenclaw doctor --non-interactive - This checks against the actual schema that the gateway uses
- Warns about unknown keys, invalid types, and security issues