/install jrv-env-doctor
Env Doctor
Validate and audit .env files for secrets, duplicates, syntax issues, and missing variables.
Quick Start
python3 scripts/env_doctor.py .env
python3 scripts/env_doctor.py .env --example .env.example
python3 scripts/env_doctor.py .env --strict --json
Features
- Secret scanning — detects AWS keys, GitHub tokens, Stripe keys, Slack tokens, Google API keys, JWTs, private key blocks, and more
- Duplicate detection — flags variables defined more than once
- Example comparison — compares .env against .env.example to find missing or extra vars
- Syntax validation — catches malformed lines, unquoted values with spaces
- Placeholder detection — warns about values like "changeme", "your-api-key-here"
- Exit codes — 0 = healthy, 1 = issues, 2 = secret leaks (CI-friendly)
- No dependencies — Python stdlib only
Options
| Flag | Description |
|---|---|
--example PATH |
.env.example file for comparison |
--json |
Output structured JSON |
--strict |
Treat empty values as errors |
Secret Patterns Detected
AWS Access/Secret Keys, GitHub Tokens (ghp_, gho_, ghs_, ghu_, github_pat_), Slack Tokens, Stripe Keys, Google API Keys, Private Key Blocks, JWTs, Twilio Tokens, SendGrid Keys, Heroku API Keys, and generic high-entropy secrets.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install jrv-env-doctor - 安装完成后,直接呼叫该 Skill 的名称或使用
/jrv-env-doctor触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Env Doctor 是什么?
Validate .env files for common issues — detect leaked secrets (AWS keys, GitHub tokens, Stripe keys, JWTs), find duplicate variables, flag empty values, comp... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 284 次。
如何安装 Env Doctor?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install jrv-env-doctor」即可一键安装,无需额外配置。
Env Doctor 是免费的吗?
是的,Env Doctor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Env Doctor 支持哪些平台?
Env Doctor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Env Doctor?
由 John Wang(@johnnywang2001)开发并维护,当前版本 v1.0.0。