config-guard

Community

Stop config crashes with preflight validation.

AuthorjzOcb
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Prevents OpenClaw gateway crashes caused by AI or humans editing openclaw.json without validation by enforcing backups, schema checks, and semantic guards before config changes reach the gateway.

Core Features & Use Cases

  • Auto-backup and rollback: Captures timestamped copies before edits and restores them automatically if the gateway health check fails after apply --restart flows.
  • Deep validation: Runs JSON syntax, schema-required fields (commands.native*), semantic checks (model names, browser profile color, placeholders), critical field diff warnings, and hooks into git commits for staged config files.
  • Safe patch workflows: Provides scripts for apply, rollback, diff, and safe-config-patch that merge patches, validate merged results, signal the gateway to reload, and warn about critical field removals.

Quick Start

Ask the guard to run scripts/config-guard.sh check on your openclaw.json before committing any edits to keep the gateway safe.

Dependency Matrix

Required Modules

None required

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: config-guard
Download link: https://github.com/jzOcb/config-guard/archive/main.zip#config-guard

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.