dotnet-10-csharp-14
Use when building .NET 10 or C# 14 applications; when using minimal APIs, modular monolith patterns, or feature folders; when implementing HTTP resilience, Options pattern, Channels, or validation; when seeing outdated patterns like old extension method syntax
Security Assessment
About dotnet-10-csharp-14
The dotnet-10-csharp-14 skill is a best-practices guide for building applications with .NET 10 (LTS) and C# 14, focused on minimal APIs rather than MVC. It is used when building such apps, applying modular monolith or feature-folder patterns, implementing HTTP resilience, the Options pattern, Channels, or validation, or when modernizing outdated patterns.
It provides a quick-start project and program setup (validation, problem details, OpenAPI, JWT auth, rate limiting, health checks, output cache, and modules with the correct middleware order) and decision flowcharts for choosing between Result and exceptions, the right IOptions variant, and channel types. It summarizes key C# 14 patterns (extension blocks, the field keyword, and null-conditional assignment) and .NET 10 features (built-in validation, TypedResults, standard HTTP resilience, and RFC 9457 error handling), and gives mandatory-pattern and anti-pattern reference tables, backed by detail files on C# 14, minimal APIs, security, infrastructure, testing, anti-patterns, and libraries.
It is most useful for .NET developers who want current, opinionated guidance and copy-ready patterns for .NET 10 and C# 14 minimal-API applications.
FAQ
When should I use this skill?
When building .NET 10 or C# 14 applications, using minimal APIs, modular monolith or feature folders, HTTP resilience, the Options pattern, Channels, or validation, or modernizing outdated patterns.
What does it focus on?
Minimal APIs (not MVC) on .NET 10 LTS with C# 14, including program setup, middleware order, and modern framework features.
Which C# 14 and .NET 10 features does it highlight?
C# 14 extension blocks, the field keyword, and null-conditional assignment, plus .NET 10 built-in validation, TypedResults, standard HTTP resilience, and RFC 9457 problem details.
Does it give opinionated rules?
Yes. It includes mandatory-pattern and anti-pattern tables, for example always using TypedResults and the standard resilience handler, and never using new HttpClient() or blocking on async.
How is the detail organized?
Into reference files covering C# 14, minimal APIs, security, infrastructure, testing, anti-patterns, and libraries.
Install dotnet-10-csharp-14
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
mhagrelius/dotfiles