تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

config-validator

بواسطة autogame-17

Coding Agents & IDEs
491التنزيلات وفق ما يذكره clawskills.sh
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

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط