Modern Csharp Coding Standards
Modern C# standards for records, pattern matching, value objects, async/await, and Span<T> in new or refactored code.
- CCM score
- 48 of 100
- skills.sh installs
- 596
- GitHub stars
- 94
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers naming, file layout, code style, access modifiers, and type design, plus performance and API design guidance
- Includes reference notes on records,
readonly record structvalue objects, pattern matching, nullable reference types, and Span<T>/Memory<T> - Enforces explicit access modifiers, sealed classes by default, and
Asyncsuffixes on asynchronous methods - Designed for writing new C# code, refactoring existing code, and designing public library or service APIs
Install
$ npx -y skills add wshaddix/dotnet-skills --skill modern-csharp-coding-standards -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Modern C# Coding Standards
When to Use This Skill
Use this skill when:
- Writing new C# code or refactoring existing code
- Designing public APIs for libraries or services
- Optimizing performance-critical code paths
- Implementing domain models with strong typing
- Building async/await-heavy applications
- Working with binary data, buffers, or high-throughput scenarios
Core Principles
- Immutability by Default - Use
recordtypes andinit-only properties - Type Safety - Leverage nullable reference types and value objects
- Modern Pattern Matching - Use
switchexpressions and patterns extensively - Async Everywhere - Prefer async APIs with proper cancellation support
- Zero-Allocation Patterns - Use
Span<T>andMemory<T>for performance-critical code - API Design - Accept abstractions, return appropriately specific types
- Composition Over Inheritance - Avoid abstract base classes, prefer composition
- Value Objects as Structs - Use
readonly record structfor value objects
Naming Conventions
General Rules
Details
- Repository
- github.com/wshaddix/dotnet-skills
- Category
- .NET & C#
- First seen
- Jun 3, 2026
More from wshaddix/dotnet-skills
All 13Similar to Modern Csharp Coding Standards
More .NET & C#csharp-prosickn33/agentic-awesome-skills322 installsModern C# development guidance covering records, pattern matching, async/await, nullable contracts, and .NET testing practices.
dotnet-patternsaffaan-m/ecc10.9K installsIdiomatic C# and .NET conventions covering immutability, dependency injection, async/await, and common application patterns.
dotnet-csharpnovotnyllc/dotnet-artisan479 installsBaseline C# skill that guides language patterns, async, DI, and interop across 25 .NET topic areas.
csharp-asyncgithub/awesome-copilot11.2K installsReview and guidance checklist for C# async code covering naming, return types, exceptions, and pitfalls.
cpp-coding-standardsaffaan-m/ecc14.3K installsModern C++ coding standards from the C++ Core Guidelines for writing, reviewing, and refactoring safe, idiomatic code.
vb-corebobmatnyc/claude-mpm-skills362 installsCore VB.NET patterns covering Option Strict, nullable types, LINQ, and async/await for type-safe modern code.