env-config

Manage environment variables and secrets across dev, staging, and prod with SST integration.

21|2|Updated Nov 5, 2023
One-click install
npx skills add https://github.com/sgcarstrends/sgcarstrends --skill env-config-sgcarstrends
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: env-config
Source: https://github.com/sgcarstrends/sgcarstrends/tree/main/.claude/skills/env-config
Command: npx skills add https://github.com/sgcarstrends/sgcarstrends --skill env-config-sgcarstrends

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps manage environment variables and secrets across a monorepo, ensuring consistent configurations between dev, staging, and production.

Core Features & Use Cases

  • Environment categorization: Database, Redis, AI Services, Workflows, Social, Build, and Public vars.
  • Stage-aware configs: Provide examples for development, staging, and production settings.
  • SST integration notes: Guidance for embedding env vars in serverless stacks.

Quick Start

Add or update an environment variable in the root .env.example and propagate it to apps/api and apps/web configs.

Frequently Asked Questions about env-config

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

FAQPage Schema
How do I manage environment variables across dev, staging, and production environments?

Environment variable management involves centralizing configs in .env files and propagating stage-specific overrides across environments. Define variables in .env.example, then apply environment-specific values to dev/staging/prod by updating corresponding config files in your monorepo apps, ensuring consistent configuration propagation across all deployment stages.

What's the best way to handle secrets and API keys in a monorepo?

Secrets management separates sensitive data from code by storing API keys, tokens, and database credentials in environment-specific configs rather than version control. Use SST integration to embed secrets securely in serverless stacks, with stage-aware overrides ensuring production credentials remain isolated from development configurations.

How do I set up environment variables for SST deployments?

SST integration requires embedding environment variables and secrets directly into serverless stack configurations. Propagate stage-specific variables from .env.example through your SST setup, ensuring database connections, API keys, and third-party integrations are correctly provisioned for each deployment environment.

Can I organize environment variables by category in a monorepo?

Environment categorization groups variables by function—database, Redis, AI services, workflows, social integrations, build configs, and public variables—enabling clearer management. This organization reduces misconfiguration and makes stage-specific overrides simpler across dev/staging/prod environments in your monorepo.

Why are environment variables not propagating to my web and API apps?

Variable propagation failures typically occur when .env updates aren't applied to both apps/api and apps/web configurations. Verify that new variables added to .env.example are explicitly set in each app's stage-specific config files and that SST integration is correctly reading environment overrides for your deployment stage.