dotnet-10-csharp-14

Automate adoption of .NET 10 and C# 14 patterns across projects.

2|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/mhagrelius/dotfiles --skill dotnet-10-csharp-14
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-10-csharp-14
Source: https://github.com/mhagrelius/dotfiles/tree/main/.claude/skills/dotnet-10-csharp-14
Command: npx skills add https://github.com/mhagrelius/dotfiles --skill dotnet-10-csharp-14

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides teams to adopt modern .NET 10 and C# 14 patterns, replacing outdated approaches with scalable, resilient architecture.

Core Features & Use Cases

  • Covers C# 14 extension blocks, the field keyword for validation, and null-conditional assignment to simplify code.
  • Emphasizes built-in .NET 10 features such as TypedResults, the Options pattern with ValidateOnStart, and integrated HTTP resilience.
  • Applies to minimal APIs, modular monoliths, feature folders, and enterprise-grade configuration, testing, and security patterns.

Quick Start

Start a .NET 10 project and begin applying the patterns documented in the detail files.

Frequently Asked Questions about dotnet-10-csharp-14

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use the field keyword for validation in C# 14?

The field keyword in C# 14 simplifies validation by allowing direct property backing field assignment without manual boilerplate. It streamlines data checks within minimal APIs and modular monolith architectures.

What is the best way to add HTTP resilience in .NET 10 APIs?

HTTP resilience in .NET 10 is best handled using the built-in AddStandardResilienceHandler. This integrated feature applies robust retry and circuit breaker patterns without requiring external libraries or complex manual configuration.

How do I configure the Options pattern with ValidateOnStart in .NET 10?

The Options pattern with ValidateOnStart in .NET 10 checks application configuration during startup. This built-in mechanism immediately fails the app if settings are invalid, preventing runtime configuration errors in enterprise applications.

Can I use TypedResults with minimal APIs in .NET 10?

TypedResults are fully supported and recommended for minimal APIs in .NET 10. They provide strongly typed HTTP responses, enhancing OpenAPI documentation generation and ensuring compile-time type safety for endpoint return values.

What are C# 14 extension blocks and how do they work?

C# 14 extension blocks allow grouping multiple extension methods into a single cohesive block. This modern syntax replaces traditional static classes, organizing feature folder logic and enterprise application patterns more effectively.

Does this approach work for enterprise modular monoliths in .NET 10?

Yes, the patterns explicitly target enterprise modular monoliths in .NET 10. They cover feature folders, configuration, testing, and security, providing scalable and resilient architecture guidance for large applications.