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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/halfmoon82/config-preflight-validatorWhat 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 jsonschemato enable core structural validation functionality.
Use Cases
- Pre-deployment Verification: Use this before running
config.patchto ensure your new plugin list or configuration change doesn't break the agent. - File Integrity Checks: Regularly scan your
openclaw.jsonto 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
- "Validate my current openclaw.json file to see if there are any syntax errors before I restart the agent."
- "Check if this patch '{"plugins": {"allow": ["web-search"]}}' follows the current gateway schema."
- "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-schemaflag 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
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-halfmoon82-config-preflight-validator": {
"enabled": true,
"auto_update": true
}
}
}Tags
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.
run-command-safety-check
在执行 shell 方案前检查危险模式,如 pipe-to-shell、覆盖式删除、危险重定向或混淆执行。;use for shell, security, command-review workflows;do not use for 提供攻击性命令, 帮用户绕过限制.
scar-safety
Agent safety that learns from incidents. Reflex arc blocks repeat threats without LLM calls.
video-producer
短视频一键生成技能 v2.2。调用video-director进行画面规划,然后生成AI素材、TTS配音、视频渲染,输出完整MP4。
skill-frontmatter-doctor
修复 frontmatter、metadata、requires、install 和目录结构问题,贴合当前 OpenClaw 规范。;use for skills, frontmatter, validation workflows;do not use for 编造不存在的字段, 忽略单行 JSON 约束.