Install
openclaw skills install @kingaiwork/env-variable-validatorValidate environment variable definitions across .env files, CI, and deployments. / 校验.env文件、CI和部署中的环境变量定义一致性。
openclaw skills install @kingaiwork/env-variable-validatorValidate environment variable definitions across .env files, CI, and deployments. / 校验.env文件、CI和部署中的环境变量定义一致性。
🦁 由 KingAI.Work 出品 — 智能进化|vip@kingai.work
• Instantly validate all .env files against a master schema / 秒级扫描所有环境配置,自动与主模板比对,杜绝配置遗漏 • Detect missing, extra, or misnamed variables with one command / 一条命令找出缺失、冗余或命名错误的环境变量,让错误无所遁形 • Cross-reference CI pipeline and deployment env lists / 跨平台比对CI流水线与部署环境变量,确保开发与生产完全一致 • Export clean validation reports for team code review / 生成清晰的校验报告,直接用于团队审查,大幅减少沟通成本 • Pro: Real-time watch mode auto-checks on file changes / 专业版支持实时监听,文件一改即自动校验,防患于未然 • Pro: Schema generation from live running containers / 专业版可从正在运行的容器自动提取变量模板,逆向验证最佳实践
# Step 1 — check environment
which bash curl && echo "Ready"
# Step 2 — run the tool
bash env-validator check --schema .env.example --env .env.production • Validates production .env against example schema, flagging all mismatches / 根据主模板校验生产环境配置,一键标出所有不一致项
# Step 3 — review output
echo "Done — check the generated output"
• You push a new feature but the CI fails because a required env var is missing in the pipeline. Run a cross-check before commit to catch it. / 新功能上线,CI却因缺少环境变量而崩溃。提交前跨平台比对,提前拦截。 • Onboarding a teammate: they copy a .env file but miss several new variables. One validation instantly shows what's missing. / 新同事接手项目,复制配置时漏掉了新增变量。一次校验,立即补齐。 • Planning a deployment to staging: your local .env has extra test keys that shouldn't go live. The tool flags them before you deploy. / 准备部署测试环境:本地配置包含不应上线的测试密钥。部署前自动标出,避免意外泄露。
| Capability | Free | Pro |
|---|---|---|
| Basics / 基础 | ✅ | ✅ |
| Automation / 自动化 | — | ✅ |
| AI / AI 功能 | — | ✅ |
| Support | Community | Priority |
Published by King AI — kingai.work | vip@kingai.work