dotnet-10-csharp-14

Implement .NET 10 minimal APIs with C# 14 patterns and TypedResults.

Updated Dec 20, 2023
One-click install
npx skills add https://github.com/Thiago-Cruz-eng/Hibrygame --skill dotnet-10-csharp-14-thiago-cruz-eng
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: dotnet-10-csharp-14
Source: https://github.com/Thiago-Cruz-eng/Hibrygame/tree/main/.claude/skills/dotnet-10-csharp-14
Command: npx skills add https://github.com/Thiago-Cruz-eng/Hibrygame --skill dotnet-10-csharp-14-thiago-cruz-eng

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents brittle, outdated, and inconsistent .NET 10/C# 14 application code by standardizing modern language and platform patterns across endpoints, configuration, security, resilience, and testing.

Core Features & Use Cases

  • Minimal API correctness: Uses .NET 10 built-in validation and enforces TypedResults for accurate OpenAPI and consistent HTTP responses, including endpoint filter patterns.
  • Production-grade configuration & infrastructure: Applies the Options pattern with .ValidateOnStart() for fail-fast correctness, and guides HTTP resilience via AddStandardResilienceHandler() instead of custom Polly wiring.
  • Modern modular architecture: Supports modular monolith / feature folder organization (modules, vertical slices, endpoint grouping) while emphasizing module communication boundaries.

Use case: You’re starting a new .NET 10 minimal API that needs JWT security, rate limiting, health checks, and dependable outbound HTTP calls, without slipping back into old patterns or ad-hoc error handling.

Quick Start

Use the dotnet-10-csharp-14 skill when generating your .NET 10 minimal API to ensure TypedResults, options validation with ValidateOnStart, and standard resilience handlers are applied consistently.

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 build secure .NET 10 minimal APIs with modern C# 14 patterns?▼

Secure .NET 10 minimal APIs with C# 14 use TypedResults for OpenAPI accuracy, Options pattern with ValidateOnStart for configuration, AddStandardResilienceHandler for HTTP resilience, and JWT security for production-ready endpoints.

Why use TypedResults instead of Results in .NET 10 minimal APIs?▼

TypedResults in .NET 10 minimal APIs enforces accurate OpenAPI schema generation and consistent HTTP responses. Unlike generic Results, TypedResults provides compile-time type safety for endpoint return values.

What is the best way to configure HTTP resilience in .NET 10?▼

Configuring HTTP resilience in .NET 10 uses AddStandardResilienceHandler instead of custom Polly wiring. This standardizes retries, timeouts, and circuit breakers for dependable outbound HTTP calls.

How do I validate Options pattern configuration on startup in .NET 10?▼

Validating Options pattern configuration on startup in .NET 10 uses ValidateOnStart. This fail-fast mechanism ensures invalid app configuration throws exceptions before serving requests.

Does .NET 10 minimal APIs support modular monolith architecture?▼

.NET 10 minimal APIs support modular monolith architecture through feature folder organization, endpoint grouping, and vertical slices. This pattern emphasizes strict module communication boundaries.

Can I use C# 14 field keyword and extension blocks in .NET 10?▼

C# 14 field keyword and extension blocks are fully supported in .NET 10. Using them ensures modern language patterns for null-conditional assignment and concise property definitions.