ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 4/5

config-preflight-validator

OpenClaw 配置预校验工具。在执行 config.patch 或修改 openclaw.json 前进行本地 Schema 验证,提供具体的错误字段描述。

Why use this skill?

Prevent configuration errors in OpenClaw with the Config Preflight Validator. Sync schemas and validate JSON patches locally before submitting to the gateway.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/halfmoon82/config-preflight-validator
Or

What This Skill Does

The Config Preflight Validator is a mission-critical utility designed for OpenClaw users who frequently modify system configurations. By acting as a local gatekeeper, it intercepts potential JSON structural errors before they reach the gateway. The tool uses dynamic schema synchronization, pulling the latest validation rules from your gateway to ensure your local openclaw.json or patch requests adhere strictly to the platform's requirements. Instead of dealing with vague "Validation issues" errors during runtime, this skill provides line-specific, field-level diagnostics, saving you time and preventing service disruptions caused by malformed config files.

Installation

To integrate this skill into your environment, use the OpenClaw repository installer: clawhub install openclaw/skills/skills/halfmoon82/config-preflight-validator

Ensure your local environment meets these prerequisites:

  • Python 3.9 or higher installed on your path.
  • Install the dependency via pip: pip install jsonschema to enable core structural validation functionality.

Use Cases

  • Pre-deployment Verification: Use this before running config.patch to ensure your new plugin list or configuration change doesn't break the agent.
  • File Integrity Checks: Regularly scan your openclaw.json to detect syntax errors introduced by manual editing or external scripts.
  • Configuration Auditing: Keep your system synchronized with upstream gateway rules by running the update-schema command to pull the latest architectural requirements.

Example Prompts

  1. "Validate my current openclaw.json file to see if there are any syntax errors before I restart the agent."
  2. "Check if this patch '{"plugins": {"allow": ["web-search"]}}' follows the current gateway schema."
  3. "Refresh the local config schema to ensure the validator is using the latest rules from the gateway."

Tips & Limitations

  • Always Update Schema: If you have recently upgraded OpenClaw, run the --update-schema flag first to ensure the validator is aware of new fields or deprecated keys.
  • Hardcoded Logic: Remember that while the schema covers most properties, the tool also includes custom logic for specific lists (like plugins.allow). If your validation passes here but fails on the gateway, report the discrepancy in the source repository.
  • Environment Path: The validator assumes the presence of ~/.openclaw/workspace/.lib/. If you are running in a custom container, ensure the path points correctly to your internal library directory.

Metadata

Stars2387
Views6
Updated2026-03-09
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-halfmoon82-config-preflight-validator": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags

#config#validation#schema#production#safety
Safety Score: 4/5

Flags: file-read, code-execution

Related Skills

doctorbot-ci-validator

Stop failing in production. Validate your GitHub Actions, GitLab CI & Keep workflows offline with surgical precision. Born from Keep bounty research, perfected for agents.

bamontejano 4473

brand-butler-local-authority-engine

Brand Butler: Local Authority Engine — the white-glove SEO and AEO system for local service businesses. Use this skill immediately when the user asks about SEO rankings, backlinks, citations, site audits, Google Search Console indexing problems, competitor backlink analysis, directory submissions, schema markup, content placement articles, local map pack visibility, or AI answer engine optimization (Perplexity, ChatGPT, Google AI Overviews). Also triggers for any local business growth, online visibility, or 'why isn't my site ranking?' conversation. Works for agencies managing clients and business owners doing their own SEO. Covers HVAC, plumbing, electrical, law, dental, roofing, and any local service business. Built by Adrian Boysel.

adrianboysel 4473

arch-optimization

OpenClaw通信协议架构优化技能包 - 提供高性能、可靠的agent间通信框架。实现大消息59%性能提升,MessagePack 35%体积减少,统一传输层架构,智能路由算法,完整错误恢复和监控体系。

21b-a 4473

scar-safety

Agent safety that learns from incidents. Reflex arc blocks repeat threats without LLM calls.

aibenyclaude-coder 4473

video-producer

短视频一键生成技能 v2.2。调用video-director进行画面规划,然后生成AI素材、TTS配音、视频渲染,输出完整MP4。

a1024708231 4473