env-manager

Switch environment profiles and validate required variables across dev, test, staging, and prod.

Updated Nov 13, 2025
One-click install
npx skills add https://github.com/caseymanos/dev-skills-marketplace --skill env-manager-caseymanos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: env-manager
Source: https://github.com/caseymanos/dev-skills-marketplace/tree/main/devEnv/dev-skills-marketplace/skills/env-manager
Command: npx skills add https://github.com/caseymanos/dev-skills-marketplace --skill env-manager-caseymanos

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Streamline and protect multi-environment development workflows by enabling quick switches between dev, test, staging, and production configurations, while validating variables and managing secrets.

Core Features & Use Cases

  • Environment switching: quickly apply the correct .env files for each workflow.
  • Validation and parity: ensure required variables exist and match rules before starting services.
  • Secrets management: encrypt and decrypt sensitive values and guard against accidental exposure.
  • Templates and automation: provide ready-to-use .env templates and integrate with Makefile targets for seamless automation.
  • Use Case: A developer switches from local development to a staging run, validates the config, and starts services without manual reconfiguration.

Quick Start

Switch to a target environment by running make env-switch ENV=prod.

Frequently Asked Questions about env-manager

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

FAQPage Schema
How do I switch environment variables between dev, test, staging, and prod?

To switch environment variables, run make env-switch ENV=prod to apply the correct .env files for your target profile. This validates required keys and ensures configuration parity across services before starting workflows.

What is the best way to manage secrets across multiple development environments?

Managing secrets across environments requires encrypting and decrypting sensitive values while guarding against accidental exposure. This approach secures your staging and production configurations during automated switching and local development.

How do I validate required environment variables before starting services?

Validating required environment variables involves checking that necessary keys exist and match specified rules before services start. This ensures configuration parity and prevents runtime failures caused by missing or mismatched values.

Can I use Makefile targets to automate environment switching in CI workflows?

Yes, you can use Makefile targets to automate environment switching in CI workflows. The integration supports seamless automated switching, template provisioning, and validation of required keys across your development, staging, and production pipelines.

Does environment switching work for both local development and CI pipelines?

Environment switching works for both local development and CI pipelines requiring consistent environment variables. It enables automated switching, secret handling, and templated configuration to maintain parity across all services.

Why do I need to validate environment variable parity across services?

Validating environment variable parity across services prevents configuration drift and runtime errors. It ensures required variables exist and match defined rules before starting services, maintaining consistency throughout development, staging, and production.