Config Guard — AI skill for Claude Code
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)
[](https://clawdhub.com) [](./LICENSE) [](./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:
- Auto-backup — timestamped copy before any change
- JSON syntax check — catches malformed JSON
- Schema validation — required fields, correct types, valid values
- 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
- Critical field diff — warns if Telegram channel, auth tokens, or tool deny lists changed
After config changes:
- Gateway health check — polls for up to 30s
- Auto-rollback — if gateway doesn't recover, restores backup automatically
Quick Start
# Instal
Related Skills
Puiux Pilot
Auto-configures Claude Code hooks, MCPs, and skills for any project. Scans 95+ project types, selects from 28+
Trustline
Trusted baseline + auto-rollback for AI agent config files (.claude/, AGENTS.md, .mcp.json). Detects prompt-in
Claude Auto API
Claude Code settings.json auto-config tool to quickly switch API_KEY, AUTH_TOKEN, and model configs across mul
Hazmat
Containment for AI agents - user isolation, sandboxed execution, network controls, backup/rollback. TLA+ verif
Skill Frontmatter Behaviour Validation
This command starts the structured process of validating and recording the observed behaviours of skill's fron
Typed Agent Service
Typed AI agent service (TypeScript): Zod 4 tool schemas as the single source of truth (runtime validation, inf
Related Agents
Deploy Guard
Pre-deploy validation gate. HUMAN-INVOKED ONLY. Project-scope permission rule Agent(deploy-guard) is DENIED in
Safe Build
Autonomous reversibility-first implementer — executes code/UI changes through the safe-build checkpoint loop (
DB Migration Worker
Implements a schema migration task, the up migration plus its reverse/rollback, backfill, and index changes. W