shared-env

Validate required environment variables and generate safe .env.example files.

3|1|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/edfenton/claude-skills --skill shared-env
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shared-env
Source: https://github.com/edfenton/claude-skills/tree/main/shared/shared-env
Command: npx skills add https://github.com/edfenton/claude-skills --skill shared-env

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Environment variables are often misconfigured, undocumented, and accidentally committed with secrets. This skill provides validation, documentation generation, and an easy workflow to generate a safe .env.example, reducing misconfigurations and secret leaks.

Core Features & Use Cases

  • Validate required environment variables and their formats
  • Generate a safe .env.example from an existing .env
  • Produce ENV.md documentation and enforce git ignore for secrets
  • Detect accidentally committed secrets across the codebase

Quick Start

Configure your .env, then run the validation workflow to verify required variables and formats

Frequently Asked Questions about shared-env

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

FAQPage Schema
How do I validate required environment variables before deploying my app?

To generate a .env.example, the skill reads your existing .env file and strips sensitive data to produce a safe, shareable template. This prevents accidental secret leaks while still documenting required variables for your team.

Can I detect accidentally committed secrets in my codebase?

Yes, environment variable validation works with MERN and iOS projects across local and CI environments. It supports development, testing, and production configurations by enforcing an environment hierarchy and validation workflow for both stacks.

How do I document environment variables for my project?

To prevent secret leaks, the skill enforces git ignore for sensitive data and generates a safe .env.example without secrets. It also runs detection scripts to find accidentally committed environment variables across your codebase.

What is the best way to manage environment variables for multiple configurations?

The skill handles environment variable validation for local and CI environments by enforcing a validation workflow and environment hierarchy. It checks required variables, formats, and supports development, testing, and production configurations seamlessly.