What problem does it solve?
This skill helps developers avoid and remediate the most dangerous, production-grade C# pitfalls that show up in real-world code, such as async/await deadlocks, improper cancellation propagation, nullable reference type pitfalls, DI mispatterns, and LINQ vs loops, ensuring more reliable and maintainable software.
Core Features & Use Cases
- Async/Await correctness: guides on avoiding deadlocks, proper async all the way, and avoiding .Result/.Wait in production ASP.NET Core apps.
- Cancellation and DI patterns: propagation of CancellationToken through layers and constructor injection for testability.
- Robust nullability and types: enabling nullable reference types and using required/init for safe state.
- Records vs Classes guidance: using records for immutable data and classes for entities with identity.
- Disposal and logging best practices: modern using declarations and structured logging.
Quick Start
Read this guide before writing or reviewing any production C# code to apply the patterns consistently.