env-validate

Scan code for getenv calls and flag undocumented environment variables.

Updated Mar 14, 2026
One-click install
npx skills add https://github.com/CaptainPhantasy/floyd-v5 --skill env-validate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: env-validate
Source: https://github.com/CaptainPhantasy/floyd-v5/tree/main/extensibility/skills/dx/env-validate
Command: npx skills add https://github.com/CaptainPhantasy/floyd-v5 --skill env-validate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scans code to find environment variable usages and verifies they are documented in the env file (.env.example), reducing configuration drift and runtime errors.

Core Features & Use Cases

  • Code scanning detects getenv usage across a codebase and maps them to a central .env.example entry.
  • Documentation alignment ensures every environment variable used in code is represented in the environment documentation.
  • Use Case: Maintain consistent environment expectations in large projects by automatically flagging undocumented variables.

Quick Start

Run the env-validate tool on your repository to verify that all environment variables used in code are declared in .env.example and report any discrepancies.

Frequently Asked Questions about env-validate

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

FAQPage Schema
How do I check if all environment variables used in my code are documented in .env.example?

To validate environment variables against .env.example, you can scan your codebase to detect getenv calls and map them to central .env.example entries to flag undocumented variables.

What is environment variable validation and why is it needed for static analysis?

Environment variable validation identifies all environment variable usages in a codebase and ensures they are documented in the .env.example, reducing configuration drift and runtime errors during static analysis.

Can I use static analysis to find missing environment variables in large projects?

Yes, static analysis can scan large projects to detect getenv usage across the codebase and automatically flag undocumented variables to maintain consistent environment expectations.

Does dotenv validation work with any programming language that accesses environment variables?

Dotenv validation applies to languages and frameworks that access environment variables, performing code scans and documentation audits to ensure every variable used in code is represented.

What is the best way to prevent configuration drift between code and environment documentation?

The best way to prevent configuration drift is to run a validation tool on your repository to verify all environment variables used in code are declared in .env.example and report discrepancies.

When should I perform an environment documentation audit on my codebase?

You should perform an environment documentation audit during onboarding checks or when maintaining large projects to ensure every getenv call has a corresponding .env.example entry and avoid runtime errors.