env-file-generator

Scan codebases for environment variable usage and generate .env.example files.

28|3|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/girijashankarj/cursor-handbook --skill env-file-generator-girijashankarj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: env-file-generator
Source: https://github.com/girijashankarj/cursor-handbook/tree/main/.cursor/skills/devops/env-file-generator
Command: npx skills add https://github.com/girijashankarj/cursor-handbook --skill env-file-generator-girijashankarj

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the discovery of environment variable usages across a codebase and produces a safe, comprehensive .env.example with placeholders.

Core Features & Use Cases

  • Scan for environment variable references across languages, frameworks, and config files
  • Generate a ready-to-use .env.example with safe placeholders and inline documentation
  • Cross-verify with existing .env and project configs to surface missing or conflicting vars

Quick Start

Ask the skill to generate a complete .env.example from your project to audit environment variable usage.

Frequently Asked Questions about env-file-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a .env.example file from my codebase?

To generate a .env.example file, you scan the codebase to discover environment variable usage across Node, Python, and Java, then produce a copy-ready template populated with safe placeholders and inline documentation.

What is the best way to audit environment variable usage across multiple frameworks?

Auditing environment variable usage involves scanning code for process.env, os.environ, and System.getenv references, cross-verifying with existing .env files to surface missing or conflicting configurations, and generating a categorized template.

Can I detect environment variables in docker-compose setups and Node projects simultaneously?

Yes, you can detect environment variables in docker-compose setups and Node projects simultaneously by scanning for process.env references and configuration files to ensure all required variables are documented in a single output.

Does env-file-generator work with Python and Java environment references?

Yes, env-file-generator works with Python and Java by detecting os.environ and System.getenv references during the codebase scan to build a comprehensive and validated .env.example file.

How to create safe placeholders for an env file template?

Creating safe placeholders for an env file template requires scanning the source code for variable names and generating non-sensitive substitution values, ensuring no real secrets are exposed in the documented configuration.

Why are some environment variables missing from my generated .env.example?

Environment variables may be missing from a generated .env.example if they are dynamically constructed or loaded from unscanned external files, requiring a cross-verification with existing project configurations to surface conflicts.