config-management
Skill1 starsChanged 9 months agoMITView on GitHub
Designs application configuration strategy. Covers environment variables, feature flags, config files, secrets management, and configuration validation. Use when setting up configuration, managing environments, or reviewing config practices.
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- ffsshhttiikk/opencode-agents-skillstheir own version, first seen Feb 28, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- ffsshhttiikk/opencode-agents-skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository48 other files it gives its agents.
- accessibilitySkill
- api-designSkill
- api-integrationSkill
- architectSkill
- async-patternsSkill
- best-practicesSkill
- bugSkill
- buildSkill
- cachingSkill
- ci-cdSkill
- containerizeSkill
- database-designSkill
- data-modelingSkill
- data-pipelineSkill
- debug-latencySkill
- dependency-updateSkill
- deploySkill
- dev-setupSkill
- docsSkill
- error-handlingSkill
- estimateSkill
- feature-flag-opsSkill
- git-recoverySkill
- i18nSkill
- iacSkill
- incidentSkill
- load-testingSkill
- loggingSkill
- migrateSkill
- monitoringSkill
- observability-debugSkill
- onboardSkill
- perfSkill
- phase-gateSkill
- pr-authorSkill
- qaSkill
- refactorSkill
- reviewSkill
- rollbackSkill
- schema-evolutionSkill
- scope-checkSkill
- security-auditSkill
- state-managementSkill
- tech-debtSkill
- tech-stackSkill
- telemetrySkill
- testingSkill
- workflowSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 65
Never use .env files in production.
- Distinctive: line 112
Default to OFF for new features (opt-in, not opt-out).
- Distinctive: line 124
Never commit secrets to version control.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Configuration Management
Configuration is anything that changes between environments (dev/staging/prod) or can be changed without deploying code.
Configuration Hierarchy
Defaults (in code) → Config file → Environment variables → CLI flags → Runtime overridesEach layer overrides the previous. Defaults are the safety net. Environment variables are the standard for production.
What Goes Where
| Type | Where | Example |
| Defaults | In code, version controlled | Port 3000, timeout 30s, page size 20 |
| Environment config | Env vars, config files per env | Database URL, API base URL, log level |
| Secrets | Secret manager or env vars (never in code) | API keys, database password, JWT secret |
| Feature flags | Feature flag service or config | Enable new checkout, beta features |
| Tuning parameters | Config file or env vars | Cache TTL, rate limits, batch sizes |
Environment Variables
The 12-factor app standard. Works everywhere.
Naming Convention
# SERVICE_SUBSYSTEM_PARAMETER
DATABASE_URL=postgres://...
DATABASE_POOL_SIZE=20
REDIS_URL=redis://...
API_RATE_LIMIT=100
LOG_LEVEL=info
PORT=3000- SCREAMING_SNAKE_CASE
- Prefixed by service/subsystem
- Descriptive (not
DB_P- useDATABASE_POOL_SIZE)
.env Files
# .env.example (committed - template with dummy values)
DATABASE_URL=postgres://localhost:5432/myapp_dev
REDIS_URL=redis://localhost:6379
SECRET_KEY=change-me-in-production
LOG_LEVEL=debug
# .env (git-ignored - actual values)
DATABASE_URL=postgres://localhost:5432/myapp_dev
REDIS_URL=redis://localhost:6379
SECRET_KEY=actual-dev-secret
LOG_LEVEL=debugRules:
.envis in.gitignore. Always..env.exampleis committed. Lists every variable with safe defaults or placeholder values.- Never use
.envfiles in production. Use actual environment variables or a secret manager.
Configuration Validation
Validate all configuration at startup. Fail fast with a clear error, not halfway through a request.
Application starts
→ Load config from all sources
→ Validate:
- Required values present?
- Types correct? (port is a number, URL is valid)
- Values in acceptable range? (pool size > 0, timeout > 0)
→ If invalid: print clear error and exit immediately
→ If valid: freeze config (immutable for the rest of the lifetime)Validation Checklist
- Required variables fail startup if missing (not silently default)
- URLs validated for format
- Numeric values validated for range
- Enum values validated against allowed set
- File paths validated for existence (if applicable)
- Error message says WHICH variable is wrong and WHAT's expected
Feature Flags
For enabling/disabling features without deploying.
Simple (Config-Based)
FEATURE_NEW_CHECKOUT=true
FEATURE_BETA_SEARCH=false- Pro: Simple, no extra infrastructure
- Con: Requires restart to change, no gradual rollout
Advanced (Service-Based)
LaunchDarkly, Unleash, Flagsmith, ConfigCat, custom- Pro: Real-time changes, percentage rollout, user targeting
- Con: Extra dependency, network call for flag checks
Feature Flag Rules
- Flags are temporary. Remove them after full rollout (set a deadline).
- Code must work with flag on AND off. Test both paths.
- Default to OFF for new features (opt-in, not opt-out).
- Name flags clearly:
enable_new_checkoutnotflag_42.
Secrets Management
| Approach | Security | Complexity | Best For |
| Env vars | Medium | Low | Small teams, simple setups |
| Secret manager (AWS SM, Vault, 1Password) | High | Medium | Production, teams, compliance |
| Encrypted config file | Medium | Medium | Simple deployment, no cloud services |
Rules
- Never commit secrets to version control. Ever. Even in "private" repos.
- Rotate secrets on a schedule (quarterly minimum).
- Different secrets per environment (dev ≠ staging ≠ prod).
- Least privilege: each service gets only the secrets it needs.
- Audit access to secrets.
Per-Environment Configuration
| Setting | Development | Staging | Production |
| Log level | debug | info | info (debug on-demand) |
| Database | Local | Staging DB | Production DB |
| External APIs | Mock/sandbox | Sandbox | Live |
| Error detail | Full stack trace | Full stack trace | Generic message + request ID |
| Feature flags | All on | Match prod | Controlled rollout |
| Rate limits | Disabled | Production values | Production values |
| TLS | Optional | Required | Required |
Anti-Patterns
| Anti-Pattern | Problem | Fix |
| Hardcoded values | Can't change without deploy | Externalize to config |
| Secrets in code/config files | Leaked in git history | Use env vars or secret manager |
| No defaults | Crash with cryptic error | Provide sensible defaults for non-secret values |
| No validation | Wrong config causes runtime errors 10 minutes in | Validate at startup |
| Config in database | Can't start app if DB is down, chicken-and-egg | Config comes from env/files, not DB |
| Too many feature flags | Unmaintainable combinatorial explosion | Remove flags after rollout, limit active flags |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

