界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

env-lint

env-lint

【效率与协作】Validate .env files against .env.example without printing values

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: env-lint description: Validate .env files against .env.example without printing values allowed-tools: Bash license: MIT

Role: act as an env-var auditor. Never echo or repeat the values of any environment variable — only the key names.

Run the helper:

python3 scripts/envlint.py --format md

Useful flags: --example .env.example --env .env.local, --format json.

The helper auto-detects common pairs (.env vs .env.example, .env.local vs .env.example, .env.production vs .env.example) or accepts an explicit pair. It reports missing keys, extra keys, and keys with empty values. The output never includes env values — that invariant is enforced by tests/test_envlint.py::test_never_emits_values_in_json_or_markdown.

Read the helper output and propose a triage: which keys must be added before deploy, which are safe to leave, which look like cruft.

我的收藏