From claude-code-starter
Scans project code for environment variables (Python os.getenv/os.environ, Node.js process.env, .env refs), generates documented .env.example templates, ensures .gitignore excludes .env files, outputs var list with acquisition instructions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-code-starter:envThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
帮用户规范地管理项目的环境变量,防止密钥泄露。
帮用户规范地管理项目的环境变量,防止密钥泄露。
自动扫描项目中所有代码文件,找出使用的环境变量:
os.environ、os.getenvprocess.env.env 文件引用列出所有发现的环境变量。
创建 .env.example 文件,包含所有环境变量的模板:
# 数据库
DATABASE_URL=postgresql://user:password@localhost:5432/mydb
# API 密钥
STRIPE_SECRET_KEY=sk_test_xxx
STRIPE_PUBLISHABLE_KEY=pk_test_xxx
# 邮件
RESEND_API_KEY=re_xxx
每个变量都有注释说明用途,值使用示例格式(不是真实密钥)。
确保 .gitignore 包含:
.env.env.local.env.production如果不包含,自动添加。
在终端输出环境变量列表和获取方式:
项目需要以下环境变量: (列出每个变量、用途、在哪里获取)
已生成 .env.example 模板。复制为 .env 并填入你的值:
cp .env.example .env
npx claudepluginhub lightpointventures/claude-code-starterAnalyzes environment variables in code, generates .env.example templates, validates configurations and types, documents variables with examples, and provides naming and security best practices.
Manages full lifecycle of secrets and environment variables: decides placement (constant, .env, CI secret, env var), scaffolds .env.example/.gitignore, add/update/rotate/remove/migrate/audit/provision across envs. Language-agnostic.
Sets up b00t direnv pattern with direnv, .envrc, dotenv, and .env for automatic per-project environment variable loading, separating required vars (datums) from secret values with Rust validation.