modern-csharp

Official

Write modern, idiomatic C# for .NET 10.

Authorcodewithmukesh
Version1.0.0
Installs0

System Documentation

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.

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: modern-csharp
Download link: https://github.com/codewithmukesh/dotnet-claude-kit/archive/main.zip#modern-csharp

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.