Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
What This Skill Does
Validates OpenClaw configuration files including openclaw.json, .env, and package.json for missing or malformed settings. Reports issues found and optionally attempts basic repairs with the --fix flag.
Requires no external packages since it runs entirely on built-in Node.js modules, so it works in any Node environment without additional setup.
When to use it
- Checking required env vars before running a skill locally
- Catching malformed openclaw.json after a manual edit
- Verifying installed Node modules match package.json dependencies
- Running as a pre-flight check before deploying a skill
- Auto-generating missing config files from templates
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: validate my OpenClaw project configuration
- 1Runs node skills/config-validator/index.js in the project root
- 2Reads and parses openclaw.json, checks for required fields and valid structure
- 3Scans .env for required environment variable keys
- 4Compares package.json dependencies against node_modules
- 5Prints a report of missing keys, malformed values, or uninstalled packages
A summary of configuration issues found, with missing files created from templates if --fix was passed