CO

configuration

Manage application configuration across environments securely and reliably.

Install

mkdir -p .claude/skills/configuration && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10463" && unzip -o skill.zip -d .claude/skills/configuration && rm skill.zip

Installs to .claude/skills/configuration

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Implement configuration management patterns including environment variables, secrets, feature flags, and validation strategies. Use when setting up app configuration, managing environment-specific settings, implementing feature flags, storing secrets securely, or validating configuration at startup.
300 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • Implement environment variables
  • Manage secrets
  • Implement feature flags
  • Validate configuration

How it works

It enforces a layered configuration hierarchy, ensuring secrets are externalized and settings are validated at startup.

Inputs & outputs

You give it
Configuration requirements
You get back
Validated configuration

When to use configuration

  • Setting up app config
  • Managing environment variables
  • Implementing feature flags
  • Validating configuration

About this skill

Configuration Management

Purpose: Manage application configuration securely across environments. Goal: Externalized config, no hardcoded secrets, fail-fast validation. Note: For implementation, see C# Development or Python Development.


Prerequisites

  • Understanding of environment variables
  • Access to a secrets manager for production

Decision Tree

Configuration concern?
+- Where to store?
| +- Secrets (passwords, API keys) -> Vault / secrets manager
| +- Environment-specific -> Environment variables
| +- App defaults -> Config file (appsettings.json, .env.example)
| - Feature flags -> Remote config service
+- How to validate?
| +- Required values? -> Fail fast at startup (not at first use)
| +- Typed values? -> Parse + validate on load
| - Schema validation? -> Use config class / Pydantic model
- Multiple environments?
 +- Use layered config: base + environment override
 - NEVER commit .env files (use .env.example as template)

Configuration Hierarchy

Priority (highest to lowest):
 1. Command-line arguments
 2. Environment variables
 3. Environment-specific config files
 4. Base config files
 5. Default values in code

Principle: Higher priority sources override lower ones.


Environment Variables

When to Use

Environment Variables For:

  • Secrets (API keys, passwords, connection strings)
  • Environment-specific URLs (API endpoints)
  • Feature toggles that change per environment
  • Cloud provider credentials

Config Files For:

  • Structured configuration (nested settings)
  • Default values
  • Non-sensitive settings
  • Documentation of available options

Best Practices

[PASS] DO:
 - Use descriptive names: DATABASE_URL, API_KEY, FEATURE_NEW_UI_ENABLED
 - Prefix with app name for namespacing: MYAPP_DATABASE_URL
 - Document all required environment variables
 - Provide sensible defaults where safe
 - Validate on startup (fail fast)

[FAIL] DON'T:
 - Hardcode secrets in code or config files
 - Commit .env files to version control
 - Use environment variables for complex nested config
 - Leave required variables undocumented

Core Rules

PracticeDescription
Externalize configNo config in code, all external
Fail fastValidate all required config at startup
Use secrets managerNever commit secrets to version control
Type safetyUse strongly-typed config classes
Default valuesProvide sensible defaults where safe
DocumentList all config options and their purpose
Environment paritySame config structure across all environments
Immutable configDon't change config at runtime

Anti-Patterns

  • Hardcoded Secrets: Embedding API keys or passwords in source code -> Use a secrets manager (Key Vault, AWS Secrets Manager) and environment variables
  • Config Sprawl: Scattering configuration across dozens of unrelated files -> Consolidate into a layered config hierarchy with clear precedence
  • Runtime Mutation: Changing configuration values after startup without restart -> Treat config as immutable; redeploy or use feature flag service for dynamic values
  • Missing Validation: Accessing config values deep in business logic without checking them -> Validate all required config at startup and fail fast with clear error messages
  • Environment Leakage: Using production secrets in dev or committing .env files -> Use .env.example as template, add .env to .gitignore, separate secrets per environment
  • Stringly Typed Config: Accessing config as raw strings throughout the codebase -> Bind config to strongly-typed classes or models with validation
  • Default Overuse: Silently falling back to defaults for critical values like database URLs -> Require explicit values for critical config; only default non-critical settings

Configuration Libraries

LanguageLibraries
.NETIConfiguration, IOptions<T>, Azure Key Vault SDK
Pythonpython-dotenv, pydantic-settings, boto3 (AWS)
Node.jsdotenv, convict, config
JavaSpring Config, Apache Commons Configuration
Goviper, envconfig

See Also: Security - C# Development - Python Development

Troubleshooting

IssueSolution
Config not loading in productionCheck environment variable names match, verify config file is deployed
Secrets exposed in config filesUse secrets manager or user-secrets for development, never commit secrets
Feature flag not togglingCheck flag evaluation context, verify flag provider connection

References

When not to use it

  • Hardcoding secrets
  • Runtime configuration mutation

Prerequisites

Secrets manager

Limitations

  • Requires secrets manager for production
  • Immutable configuration

How it compares

It mandates fail-fast validation at startup, preventing runtime errors due to missing or invalid configuration.

Compared to similar skills

configuration side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
configuration (this skill)02moReviewIntermediate
linkerd-patterns65moReviewAdvanced
linux-production-shell-scripts76moReviewIntermediate
aws-advisor55moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

More by jnPiyush

View all by jnPiyush

ux-ui-design

jnPiyush

Design user experiences with wireframing, prototyping, user flows, accessibility, and production-ready HTML prototypes. Use when creating wireframes, building interactive prototypes, designing user flows, implementing accessibility standards, or producing HTML/CSS design deliverables.

00

copilot-studio-agents

jnPiyush

Design Microsoft Copilot Studio agents (formerly Power Virtual Agents) -- topics, trigger phrases, generative answers, knowledge sources, connector and MCP actions, authentication, channels, and agent flows -- so an agent can author the conversational logic that ships as a Bot component inside a Pow

00

verification-before-completion

jnPiyush

Block false completion claims. Force the agent to identify the claim, run the exact verification command, read the actual output, compare against the claim, and only then report. Use whenever an agent is about to say "done", "fixed", "tests pass", "deployed", "loop complete", or close an issue.

00

docx

jnPiyush

Read, write, and transform Microsoft Word .docx files. Use when extracting text or tables from Word documents, generating reports from templates, applying styles, inserting images, building tables, or converting Markdown/HTML to Word.

00

error-handling

jnPiyush

Implement robust error handling with exceptions, retry logic, circuit breakers, and graceful degradation. Use when designing error handling strategies, implementing retry policies, adding circuit breakers, configuring timeouts, or building health check endpoints.

00

mcp-apps-development

jnPiyush

Build MCP Apps (ext-apps) that render interactive UI inside conversational AI clients. Use when creating visual tool outputs, interactive dashboards, form-based tools, or rich media experiences in MCP-compatible hosts like Claude Desktop, VS Code Copilot Chat, or other MCP clients that support the A

00

You might also like

linkerd-patterns

wshobson

Implement Linkerd service mesh patterns for lightweight, security-focused service mesh deployments. Use when setting up Linkerd, configuring traffic policies, or implementing zero-trust networking with minimal overhead.

672

linux-production-shell-scripts

davila7

This skill should be used when the user asks to "create bash scripts", "automate Linux tasks", "monitor system resources", "backup files", "manage users", or "write production shell scripts". It provides ready-to-use shell script templates for system administration.

746

aws-advisor

tech-leads-club

Expert AWS Cloud Advisor for architecture design, security review, and implementation guidance. Leverages AWS MCP tools for accurate, documentation-backed answers. Use when user asks about AWS architecture, security, service selection, migrations, troubleshooting, or learning AWS. Triggers on AWS, Lambda, S3, EC2, ECS, EKS, DynamoDB, RDS, CloudFormation, CDK, Terraform, Serverless, SAM, IAM, VPC, API Gateway, or any AWS service.

529

engineering-skills

alirezarezvani

23 production-ready engineering skills covering architecture, frontend, backend, fullstack, QA, DevOps, security, AI/ML, data engineering, computer vision, and specialized tools like Playwright Pro, Stripe integration, AWS, and MS365. 30+ Python automation tools (all stdlib-only). Works with Claude Code, Codex CLI, and OpenClaw.

422

managing-network-policies

jeremylongshore

Execute use when managing Kubernetes network policies and firewall rules. Trigger with phrases like "create network policy", "configure firewall rules", "restrict pod communication", or "setup ingress/egress rules". Generates Kubernetes NetworkPolicy manifests following least privilege and zero-trust principles.

12

gh-actions-validator

jeremylongshore

Validate use when validating GitHub Actions workflows for Google Cloud and Vertex AI deployments. Trigger with phrases like "validate github actions", "setup workload identity federation", "github actions security", "deploy agent with ci/cd", or "automate vertex ai deployment". Enforces Workload Identity Federation (WIF), validates OIDC permissions, ensures least privilege IAM, and implements security best practices.

11

Search skills

Search the agent skills registry