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.
npx claudepluginhub lighthouse-strategy/claude-code-starterThis skill uses the workspace's default tool permissions.
帮用户规范地管理项目的环境变量,防止密钥泄露。
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides agent creation for Claude Code plugins with file templates, frontmatter specs (name, description, model), triggering examples, system prompts, and best practices.
帮用户规范地管理项目的环境变量,防止密钥泄露。
自动扫描项目中所有代码文件,找出使用的环境变量:
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