AgentSkillsCN

env-manager

根据您的代码库自动生成 .env.example 文件。自动扫描环境变量的使用情况,并生成一份安全可靠的模板。

SKILL.md
--- frontmatter
name: env-manager
description: Auto-generate .env.example from your codebase. Scans for environment variable usage and creates a safe template.

Env Manager

Scans your project for environment variable references and generates a .env.example file with all required variables documented.

Usage

Run the script to scan your project:

bash
python .agent/skills/env-manager/scripts/env_scanner.py --path "."

Output

Generates .env.example with:

  • All detected environment variables
  • Grouped by source file
  • Placeholder values and descriptions

Data

  • data/common_env_vars.json — Common env var patterns and safe defaults

Notes

  • Never copies actual secret values
  • Supports .env, process.env, os.environ, os.getenv patterns
  • Groups variables by category (DB, Auth, API, etc.)