ronnythedev/dotnet-clean-architecture-skills/26-dotnet-options-pattern
Claude Code and agent skill by ronnythedev/dotnet-clean-architecture-skills
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Implements the Options pattern for strongly-typed configuration in .NET. Covers IOptions<T>, IOptionsSnapshot<T>, and IOptionsMonitor<T> with validation and reload support.
Install
npx vskill@latest install ronnythedev/dotnet-clean-architecture-skills/26-dotnet-options-patternSKILL.md
Options Pattern for .NET Configuration
Overview
The Options pattern provides strongly-typed access to configuration groups:
- IOptions<T> - Singleton, read once at startup
- IOptionsSnapshot<T> - Scoped, reloads per request
- IOptionsMonitor<T> - Singleton, real-time change notifications
Quick Reference
| Interface | Lifetime | Supports Reload | Named Options | Use Case | |
|---|---|---|---|---|---|
IOptions<T> | Singleton | No | No | Static config | |
IOptionsSnapshot<T> | Scoped | Yes | Yes | Request-scoped config | |
IOptionsMonitor<T> | Singleton | Yes | Yes | Singleton services, change notifications |
Options Structure
Template: Basic Options Class
Corresponding appsettings.json
Template: Options with Data Annotation Validation
Template: Options with Custom Validation
Template: Registration in DependencyInjection
Template: Using IOptions<T> (Singleton Services)
Template: Using IOptionsSnapshot<T> (Scoped Services)
Template: Using IOptionsMonitor<T> (Singleton with Change Notifications)
This is the start of the file. Read the full SKILL.md on GitHub.
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/26-dotnet-options-pattern/SKILL.md
Popularity
- Repository stars
- 64
- Repository forks
- 11
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
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/ronnythedev/dotnet-clean-architecture-skills/26-dotnet-options-pattern)