C# Nullable Reference Migration
Enables and systematically migrates C# projects to Nullable Reference Types (NRTs) while resolving compiler warnings without altering runtime behavior.
This skill provides a structured framework for adopting C# Nullable Reference Types (NRTs) in existing codebases, significantly reducing the risk of NullReferenceExceptions. It guides Claude through a specialized workflow to enable NRTs project-wide or file-by-file, resolve CS86xx compiler warnings, and accurately annotate public API surfaces. By adhering to a strict 'zero runtime behavior change' policy, it ensures that your application's logic remains identical while your type safety and metadata improve, making the code more predictable for both the compiler and downstream consumers.
Key Features
01Automated readiness evaluation using Get-NullableReadiness.ps1
02Three distinct rollout strategies: Project-wide, Warnings-first, or File-by-file
03Dependency-order migration to minimize cascading warning fatigue
04Strict 'Zero Runtime Change' enforcement to preserve binary compatibility
051,215 GitHub stars
06Systematic resolution of CS8602, CS8618, and other nullable-related warnings
Use Cases
01Standardizing nullable annotations and cleaning up null-forgiving operators (!) in large solutions
02Adopting Nullable Reference Types in a legacy .NET Framework or .NET Core codebase
03Annotating a library's public API to provide better type safety for external consumers