What problem does it solve?
Helps developers update and maintain C# codebases by replacing outdated patterns with C# 14 language features to improve readability, correctness, and performance across .NET 10 projects.
Core Features & Use Cases
- Language Modernization: Guidance for primary constructors, collection expressions, the field keyword, extension members, records, pattern matching, Span<T>, and raw string literals to modernize APIs and internals.
- Code Review & Refactoring: Practical recommendations for replacing manual backing fields, tuples-for-domain-types, and legacy collection initialization during reviews or automated refactors.
- Performance & Safety: Promote readonly record structs, stack-friendly value types, and zero-allocation slicing with Span to reduce GC pressure and enforce immutability and initialization safety.
Quick Start
Ask the modern-csharp skill to modernize the provided C# file by applying C# 14 idioms such as primary constructors, collection expressions, records, field usage, and spans.