What problem does it solve?
This Skill helps you avoid non-idiomatic .NET code patterns by standardizing how you structure endpoints, data access, configuration, middleware, and testing for .NET 8+.
Core Features & Use Cases
- Minimal APIs vs. Controllers: Choose the right endpoint style for simple routes or complex behaviors, keeping request/response logic clear and maintainable.
- Entity Framework Core best practices: Apply scoped DbContext usage, migrations via CLI, efficient read-only querying, and performance-aware patterns like compiled queries.
- Strongly-typed configuration and middleware: Use IOptions<T> for configuration clarity and implement cross-cutting concerns through consistent middleware design.
- Testing that scales: Prefer xUnit + FluentAssertions, use WebApplicationFactory for integration tests, and keep test databases clean with Respawn.
Quick Start
Use the dotnet-idioms skill to propose an idiomatic .NET 8 design for the service by aligning endpoints, EF Core usage, configuration, middleware, and testing conventions with the skill’s patterns.