codewithmukesh/dotnet-claude-kit/configuration
Claude Code and agent skill by codewithmukesh/dotnet-claude-kit
- community
Checking that the SKILL.md file is still in the repository.
Configuration patterns for .NET 10 applications. Covers the Options pattern, IOptionsSnapshot vs IOptions, secrets management, and environment-based configuration. Load this skill when setting up application configuration, managing secrets, binding configuration sections, or when the user mentions "configuration", "appsettings", "Options pattern", "IOptions", "IOptionsSnapshot", "secrets", "user secrets", "environment variables", "connection string", or "config binding".
Install
npx vskill@latest install codewithmukesh/dotnet-claude-kit/configurationSKILL.md
The same SKILL.md was published earlier as codewithmukesh/dotnet-claude-kit/configuration.
Configuration
Core Principles
- Options pattern always — Never read
IConfigurationdirectly in services. Bind configuration sections to strongly-typed classes with validation. - Validate on startup — Use
ValidateDataAnnotations()andValidateOnStart()to catch misconfiguration before the first request. - Secrets never in source — Use user secrets in development, Azure Key Vault or environment variables in production. Never commit secrets to git.
- Configuration layering —
appsettings.json→appsettings.{Environment}.json→ environment variables → user secrets. Later sources override earlier ones.
Patterns
Options Pattern
Injecting Options
Custom Validation (Complex Rules)
Azure Key Vault (Production)
Configuration for Multiple Environments
Anti-patterns
Don't Read IConfiguration Directly
Don't Put Secrets in appsettings.json
Don't Skip Startup Validation
Decision Guide
| Scenario | Recommendation | |
|---|---|---|
| Binding config to class | Options pattern with BindConfiguration | |
| Simple, immutable config | IOptions<T> | |
| Config that changes per request | IOptionsSnapshot<T> | |
| Background service watching config | IOptionsMonitor<T> | |
| Development secrets | dotnet user-secrets | |
| Production secrets | Azure Key Vault or environment variables | |
| Validating config | ValidateDataAnnotations() + ValidateOnStart() | |
| Multiple configs of same type | Named options with IOptionsSnapshot<T>.Get(name) |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/configuration/SKILL.md
Popularity
- Repository stars
- 471
- Repository forks
- 121
- 7-day trend score
- 31
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 21 Jun 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/codewithmukesh/dotnet-claude-kit/configuration)