What problem does it solve?
This Skill eliminates the inconsistency and technical debt that comes with unstandardized C# and .NET development, ensuring your code follows proven industry best practices to be robust, performant, and easy to maintain over time.
Core Features & Use Cases
- Idiomatic C# & .NET Conventions: Enforces best practices for immutability, explicit null safety, and clear access modifiers to reduce bugs and improve code readability.
- Production Architecture Patterns: Provides proven implementations for dependency injection, async/await workflows, EF Core repository patterns, ASP.NET Core middleware, and minimal API organization.
- Use Case: When refactoring a legacy ASP.NET Core service with blocking async calls and mutable data models, use this Skill to align the codebase with modern .NET standards and eliminate common anti-patterns like deadlocks.
Quick Start
Use the dotnet-patterns skill to refactor the existing UserService class to use async/await all the way, add proper guard clauses for null validation, and replace mutable public setters with init-only properties for data models.