csharp-nrt

Community

Enforce safe C# Nullable Reference Type rules

AuthorCloudyWing
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides clear, actionable guidelines to prevent misuse of C# Nullable Reference Types (NRT), stop developers from silencing nullability warnings with fake defaults, and ensure property nullability reflects actual business intent.

Core Features & Use Cases

  • Consistent property strategies for DTOs, request models, EF Core entities, domain models, and record types to reduce runtime null errors.
  • Clear exceptions and patterns such as allowing null-forgiving only for EF Core navigation properties, initializing collections with empty collections, and using required/init/set appropriately.
  • Practical guidance for null checks, guard clauses, and compiler flow-analysis friendly patterns to improve code reliability and readability.

Quick Start

Apply these C# NRT guidelines to review and update your project's property declarations so that nullability, required annotations, and collection initialization align with business semantics.

Dependency Matrix

Required Modules

None required

Components

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: csharp-nrt
Download link: https://github.com/CloudyWing/ai-dotfiles/archive/main.zip#csharp-nrt

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 471,000+ vetted skills library on demand.