Comprehensive guide to managing application configuration across environments, including environment variables, configuration files, secrets, feature flags, and following 12-factor app methodology.
When to Use
Setting up configuration for different environments
Store configuration in databases (circular dependency)
Mix configuration with business logic
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: aj-geddes-useful-ai-prompts-configuration-management3description: Configuration Management4---56# Configuration Management78## Table of Contents910- [Overview](#overview)11- [When to Use](#when-to-use)12- [Quick Start](#quick-start)13- [Reference Guides](#reference-guides)14- [Best Practices](#best-practices)1516## Overview1718Comprehensive guide to managing application configuration across environments, including environment variables, configuration files, secrets, feature flags, and following 12-factor app methodology.1920## When to Use2122- Setting up configuration for different environments23- Managing secrets and credentials24- Implementing feature flags25- Creating configuration hierarchies26- Following 12-factor app principles27- Migrating configuration to cloud services28- Implementing dynamic configuration29- Managing multi-tenant configurations3031## Quick Start3233Minimal working example:3435```bash36# .env.development37NODE_ENV=development38PORT=300039DATABASE_URL=postgresql://localhost:5432/myapp_dev40REDIS_URL=redis://localhost:637941LOG_LEVEL=debug42API_KEY=dev-api-key-123454344# .env.production45NODE_ENV=production46PORT=808047DATABASE_URL=${DATABASE_URL} # From environment48REDIS_URL=${REDIS_URL}49LOG_LEVEL=info50API_KEY=${API_KEY} # From secret manager5152# .env.test53NODE_ENV=test54DATABASE_URL=postgresql://localhost:5432/myapp_test55LOG_LEVEL=error56```5758## Reference Guides5960Detailed implementations in the `references/` directory:6162| Guide | Contents |63|---|---|64| [Environment Variables](references/environment-variables.md) | Environment Variables |65| [Configuration Hierarchies](references/configuration-hierarchies.md) | Configuration Hierarchies |66| [Secret Management](references/secret-management.md) | Secret Management |67| [Feature Flags](references/feature-flags.md) | Feature Flags |68| [12-Factor App Configuration](references/12-factor-app-configuration.md) | 12-Factor App Configuration |69| [Configuration Validation](references/configuration-validation.md) | Configuration Validation |70| [Dynamic Configuration (Remote Config)](references/dynamic-configuration-remote-config.md) | Dynamic Configuration (Remote Config) |7172## Best Practices7374### ✅ DO7576- Store configuration in environment variables77- Use different config files per environment78- Validate configuration on startup79- Use secret managers for sensitive data80- Never commit secrets to version control81- Provide sensible defaults82- Document all configuration options83- Use type-safe configuration objects84- Implement configuration hierarchy (base + overrides)85- Use feature flags for gradual rollouts86- Follow 12-factor app principles87- Implement graceful degradation for missing config88- Cache secrets to reduce API calls8990### ❌ DON'T9192- Hardcode configuration in source code93- Commit .env files with real secrets94- Use different config formats across services95- Store secrets in plain text96- Expose configuration through APIs97- Use production credentials in development98- Ignore configuration validation errors99- Access process.env directly everywhere100- Store configuration in databases (circular dependency)101- Mix configuration with business logic102103---104> Converted and distributed by [TomeVault](https://tomevault.io/claim/aj-geddes) — claim your Tome and manage your conversions.105<!-- tomevault:4.0:skill_md:2026-04-11 -->
Run npx skillmds@latest add tomevault-io/aj-geddes-useful-ai-prompts-configuration-management in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Configuration Management It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: CAUTION, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.