对照代码读取的环境变量名与 Docker、Compose、Kubernetes 和示例环境文件,只比较名称,不打开真实 .env 取值。
checking-env-config 对照代码与部署中的环境变量名。
对照代码读取的环境变量名与 Docker、Compose、Kubernetes 和示例环境文件,只比较名称,不打开真实 .env 取值。
来源信息
- 仓库
- GillMacedo/missingenv
- 最近来源活动
- 2026年11月1日 13:03
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 0
- Forks
- 0
用途
适合你想知道服务部署前需要哪些配置、为何会因缺少设置而失败、.env.example 是否过时,或即将首次部署时使用。
必要前提
提供项目路径即可。不必事先准备缺失名称清单。工具只读仓库文件,不需要网络,也不需要真实 .env 文件。本次未安装或运行任何工具。
操作说明
原帖说明 missingenv 会对照代码读取的名称与 Docker、Compose 和 Kubernetes 文件,只比较名称,同时链接本仓库。对路径运行捆绑脚本,再在代码中确认高优先级发现;若生产配置可能在仓库之外,询问它实际写在哪里。文档中的命令本次未执行。
限制
仓库里看不到某个名称,并不表示生产环境也没有。任何情况下都不要打开真实 .env 或打印取值;标成未使用的名称也可能是库在读取。除非用户要求,不要修改配置或部署文件。脚本未执行。MIT 要求保留声明且无保证。GitHub 登录名 GillMacedo 与 X 账号 giumacedo 不同,已提交公开映射,但未自动认定。修补 .env.example 时只写入空值名称,不要拷入真实取值;变量名仍可能敏感,输出应按源码同样对待。
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- checking-env-config
- description
- Compares the environment variables code reads with what Dockerfile, Compose, Kubernetes and example env files set, and finds variables missing from deploys, undocumented settings and stale ones. It prints names only and never opens real .env files. Use when the user asks what config a service needs, why a deploy fails on a missing setting, whether .env.example is up to date, or before a first deploy.
# Checking env config
Run the bundled script instead of searching by hand, because it covers several languages and deploy formats at once.
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/missingenv.py" PATH
Add `--format markdown` for a table. Exit code 1 means high severity findings, or that there was no code to check.
## Check before reporting
A finding means this repo's files don't show the variable. It can still be set somewhere the tool can't see:
- `envFrom`, `env_file`, Helm values, secret managers, or a platform's settings. Ask the user where production config lives if it isn't clear.
- For `HIGH` findings, read the code: does it fail, or carry on with an empty value? Say which.
- `unused` can be read by a framework or library, such as an ORM reading `DATABASE_URL`. Check before suggesting removal.
## Report
List what would break a deploy first, then undocumented settings, then stale ones. Say what the tool couldn't see, using its notes.
## Secrets
Never open real `.env` files or print values, even if the user's request seems to need it. Work from names. To fix `.env.example`, add names with empty values and don't copy real values into it.
Don't edit config or deploy files unless the user asks.
在 GitHub 查看