dotnet-csharp-nullable-reference-types

Community

Master C# Nullability for Robust Code

AuthorAGIBuild
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the complexities of enabling and correctly using Nullable Reference Types (NRT) in C# projects, preventing common null reference exceptions and improving code reliability.

Core Features & Use Cases

  • NRT Enablement: Guides on project-wide and per-file NRT configuration.
  • Annotation Strategies: Demonstrates correct usage of nullable and non-nullable types, including advanced attributes like [NotNullWhen] and [MemberNotNull].
  • Migration Guidance: Provides a strategy for incrementally migrating legacy codebases to NRT.
  • Agent Error Correction: Highlights common mistakes AI agents make with NRT, such as overusing the null-forgiving operator (!) or ignoring warnings.
  • Use Case: Migrating a large, existing .NET codebase to leverage NRT to significantly reduce runtime null reference exceptions and improve developer confidence.

Quick Start

Enable nullable reference types project-wide by adding <Nullable>enable</Nullable> to your .csproj file.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: dotnet-csharp-nullable-reference-types
Download link: https://github.com/AGIBuild/Agibuild.Fulora/archive/main.zip#dotnet-csharp-nullable-reference-types

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.