跳到正文
TakoAPI
返回技能列表

config-validator

由 autogame-17 提供

Coding Agents & IDEs
491下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

A utility skill to validate OpenClaw configuration files (`openclaw.json`, `.env`, `package.json`) and ensure.

描述

该技能的功能

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.

何时使用

  • 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

示例工作流

输入

User asks: validate my OpenClaw project configuration

智能体
  1. 1

    Runs node skills/config-validator/index.js in the project root

  2. 2

    Reads and parses openclaw.json, checks for required fields and valid structure

  3. 3

    Scans .env for required environment variable keys

  4. 4

    Compares package.json dependencies against node_modules

  5. 5

    Prints 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

安装

clawhub install autogame-17/config-validator

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接