env-setup

Manages and validates .env files via Bash script for multiple environments.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/alexanderjamesmcleod/makecents --skill env-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: env-setup
Source: https://github.com/alexanderjamesmcleod/makecents/tree/main/src/skills/development/env-setup.skill
Command: npx skills add https://github.com/alexanderjamesmcleod/makecents --skill env-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Manage and validate environment variables across development and deployment workflows, simplifying setup and reducing misconfigurations.

Core Features & Use Cases

  • Initialize .env files from templates for different environments (dev, prod, test).
  • Validate required variables exist and are not placeholders, masking secrets when displayed.
  • Copy, show, check, and template environment configurations to support safe, repeatable setups.
  • Use in local development, CI pipelines, and staging to enforce consistent env setups.

Quick Start

Run env-setup init for your environment type to generate a .env from .env.example.

Frequently Asked Questions about env-setup

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

FAQPage Schema
How do I automate environment variable validation for local development and deployment workflows?

Automate environment variable validation by running a Bash script that reads, writes, and verifies .env files, ensuring required variables exist and values are sensible across local development and deployment workflows. It masks secrets when displayed and supports init, validate, copy, show, check, and template commands.

What is the best way to initialize .env files from templates for different environments?

Initializing .env files from templates is done by running the init command, which generates a .env file from a .env.example template tailored for dev, prod, or test environments. This ensures safe, repeatable setups and reduces misconfigurations across CI pipelines and staging.

How does masking secrets in environment variables work when displaying configurations?

Masking secrets in environment variables works by the Bash script obscuring sensitive values when configurations are displayed using the show command. This prevents accidental exposure of credentials while still allowing developers to verify that required variables exist and are not placeholders.

Can I use environment variable scripts in CI pipelines and staging to enforce consistent setups?

You can use these environment variable scripts in CI pipelines and staging to enforce consistent setups. The script validates required variables, checks for placeholder values, and supports copying and templating configurations to maintain environment parity and reduce deployment errors.

Does environment variable management work without external dependencies?

Environment variable management works without external dependencies because the implementation relies entirely on a standalone Bash script. This script handles reading, writing, masking, and verifying configurations natively, requiring no additional packages or libraries to function.

What are the limitations of using Bash scripts for environment variable management?

Limitations of using Bash scripts for environment variable management include being confined to file-based .env configurations and relying on shell execution environments. Complex parsing or cross-platform compatibility outside standard Unix-like systems may require additional manual troubleshooting.