AGENT SKILL

openclaw-config-validator

暂无简介

License 许可
MIT
最近更新
2026-08-23
Stars
★ 1
Forks
0

02 资源文件 7

03 SKILL.md 正文

OpenClaw Config Validator Skill

ID: openclaw-config-validator
Version: 1.0.0
OpenClaw Version: 2026.2.1+

A comprehensive configuration validation and management skill for OpenClaw, providing authoritative schema documentation, validation tools, and best practices.


Overview

This skill helps OpenClaw agents and users:

  • Understand the complete OpenClaw configuration schema
  • Validate configurations against the official JSON Schema
  • Follow safe configuration management practices
  • Prevent common configuration errors

Features

? Complete Schema Reference

  • 22 top-level configuration nodes documented
  • Official JSON Schema from OpenClaw 2026.2.1
  • Risk levels marked for each node (? Low ? Medium ? High)
  • Field types, defaults, and examples

✅ Validation Tools

  • get-schema.sh - Extract runtime schema from live configuration
  • schema-validate.sh - Validate configuration against schema
  • Pre-commit checklist to prevent errors

?️ Safety Features

  • Forbidden fields list - Know what not to add
  • Pre-modification checklist - 7-step safety process
  • Rollback procedures - Recovery when things go wrong
  • Error troubleshooting - Common issues and solutions

Quick Start

1. Validate Current Configuration

./scripts/schema-validate.sh

2. Extract Runtime Schema

./scripts/get-schema.sh

3. Read Schema Reference

cat reference/SCHEMA.md

File Structure

openclaw-config-validator/
├── SKILL.md                          # This file
├── reference/
│   ├── SCHEMA.md                     # Authoritative schema reference (v2)
│   ├── openclaw-official-schema.json # Official JSON Schema from OpenClaw
│   └── AGENT_PROMPT.md              # Configuration management guide
└── scripts/
    ├── get-schema.sh                # Runtime schema extractor
    └── schema-validate.sh           # Configuration validator

Configuration Safety Rules

✅ DO

  • Read SCHEMA.md before making changes
  • Backup config: cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.backup.$(date +%s)
  • Use jq for modifications, never direct edit
  • Run openclaw doctor before and after changes
  • Test in non-production first

❌ DON'T

  • Create new top-level nodes not in SCHEMA.md
  • Add web.braveApiKey or similar non-existent fields
  • Modify gateway node (read-only)
  • Skip the backup step
  • Guess field names or formats

Schema Highlights

New in OpenClaw 2026.2.1

Node Purpose Status
logging Log configuration ✅ Documented
talk Voice mode (macOS/iOS/Android) ✅ Documented
audio Audio/TTS/VoiceWake ✅ Documented
bindings Multi-agent routing ✅ Documented
diagnostics OpenTelemetry integration ✅ Documented
update Auto-update settings ✅ Documented

Risk Levels

Level Nodes Action Required
? Low Most nodes Normal caution
? Medium channels Backup before modify
? High gateway Read-only, don't modify

Validation

Using schema-validate.sh

# Basic validation
./scripts/schema-validate.sh

# Detailed report
./scripts/schema-validate.sh --verbose

# Generate report file
./scripts/schema-validate.sh --report

Using Ajv (optional)

# Install ajv-cli
npm install -g ajv-cli

# Validate with official schema
ajv validate -s reference/openclaw-official-schema.json \
  -d ~/.openclaw/openclaw.json

Troubleshooting

Configuration Validation Failed

# 1. Check specific errors
openclaw doctor

# 2. Restore from backup
cp ~/.openclaw/openclaw.json.backup.* ~/.openclaw/openclaw.json

# 3. Restart gateway (if needed)
openclaw gateway restart

Gateway Won't Start

# Check config syntax
jq '.' ~/.openclaw/openclaw.json

# If invalid, restore default
mv ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.broken
# Then re-run: openclaw onboard

References


Changelog

v1.0.0 (2026-02-04)

  • Initial release
  • Complete OpenClaw 2026.2.1 schema documentation
  • Official JSON Schema integration
  • Validation scripts
  • Safety guidelines and checklists

License

MIT - See OpenClaw project for details.


"Schema is the boundary, not the permission. Know where the boundary is."

Created by Galatea ?

04 同仓库更多 Skills

kbarbel640-del
kbarbel640-del/skills

crowd-prompting

A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.

内容创作者
★ 1
kbarbel640-del
kbarbel640-del/skills

dilemm-ai

Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).

Skill与智能体开发
★ 1
kbarbel640-del
kbarbel640-del/skills

arxiv-paper-reviews

Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.

资料检索与研究
★ 1
kbarbel640-del
kbarbel640-del/skills

arxiv-paper-reviews

Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.

资料检索与研究
★ 1
kbarbel640-del
kbarbel640-del/skills

git-summary

Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.

★ 1
kbarbel640-del
kbarbel640-del/skills

agent-constitution

Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.

律师与法务Skill与智能体开发
★ 1