nullable-enablement
OfficialEnable nullable reference types safely
AuthorNuGet
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you modernize the NuGet.Client codebase by removing #nullable disable directives and correctly annotating nullability so C# nullable reference types can catch real bugs instead of hiding them.
Core Features & Use Cases
- Migrate files from
#nullable disableto annotated nullability: Remove the directive, add correct?/non-null types, and fix cascading warnings in dependent code. - Keep API correctness with PublicAPI updates: Update
PublicAPI.Shipped.txtby replacing~(oblivious) entries in all targeted TFMs. - Follow a non-null bias and preserve behavior: Prefer making things non-null through
required, constructor initialization, null-checks, and safe patterns, using?only when values are genuinely optional or absent. - Use incremental batching for safety: Migrate in small groups of related files, build to validate, and repeat.
Quick Start
Use the nullable-enablement skill on the specific NuGet.Client files that still contain #nullable disable, then iteratively annotate nullability, update PublicAPI.Shipped.txt for each affected TFM, and run msbuild until zero warnings remain.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: nullable-enablement Download link: https://github.com/NuGet/NuGet.Client/archive/main.zip#nullable-enablement Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.