jzOcb

Config Guard — AI skill for Claude Code

AI community

Stop AI agents from crashing OpenClaw by validating config changes.

How to install Config Guard

This entry records only its repository, not the path inside it, so there is no exact command to give. Open jzOcb/config-guard and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Config Guard does

Stop AI agents from crashing OpenClaw by validating config changes. Auto-backup, schema validation, and auto-rollback.

Alternatives in AI

  • Geo SEO Claude — GEO-first SEO skill for Claude Code 3.6k ★
  • Openclaw Backup — One-click backup & restore for OpenClaw instances — workspace, credentials, skills, agent history 660 ★
  • Openclaw Auto Dream — Automatic memory consolidation for OpenClaw agents — like sleep for your AI 545 ★

README

Config Guard 🛡️

[🇨🇳 中文文档](./README_CN.md)

[![OpenClaw Skill](https://img.shields.io/badge/OpenClaw-Skill-blue)](https://clawdhub.com) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE) [![Version](https://img.shields.io/badge/version-1.0.0-green.svg)](./SKILL.md)

Stop AI agents from killing themselves by editing their own config wrong.

Prompts are suggestions. Code is law.

OpenClaw agents have full access to `openclaw.json` — the file that controls the gateway, channels, models, and tools. One bad edit = gateway crash. Agent goes offline. Nobody can fix it remotely.

This skill prevents that.

The Problem

Real incidents (all from the same day):

What happened Root cause
Gateway crashed after update AI added unknown config fields (auth, fallbacks)
Model not found AI wrote claude-sonnet-4.5 (dots) instead of claude-sonnet-4-5 (hyphens)
Telegram stopped working Config change silently wiped the channel section
browser.profiles error AI forgot the required color field (must be hex)
Plugin SDK missing Update broke module paths, no validation caught it

**7 cascading failures. 1 root cause: AI doesn't know correct config formats. It guesses.**

What It Does

Before config changes:

  1. Auto-backup — timestamped copy before any change
  2. JSON syntax check — catches malformed JSON
  3. Schema validation — required fields, correct types, valid values
  4. Semantic checks — catches AI-specific mistakes:
    • Model names with dots instead of hyphens
    • Missing required fields (browser.profiles.color)
    • Unknown top-level keys
    • Placeholder values in sensitive fields
  5. Critical field diff — warns if Telegram channel, auth tokens, or tool deny lists changed

After config changes:

  1. Gateway health check — polls for up to 30s
  2. Auto-rollback — if gateway doesn't recover, restores backup automatically

Quick Start

# Instal