
Modern Csharp Coding Standards
Modern C# coding standards for records, pattern matching, value objects, async, and Span<T>/Memory<T> with a functional style.
- skills.sh installs
- 2.3K
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers immutability, value objects, pattern matching, nullable reference types, async/await, and zero-allocation buffer handling
- Includes
readonly record structvalue object rules,Resulttype guidance, and reference files for performance and API design - Enforces no implicit conversion operators, no inheritance-heavy abstract base classes, and no reflection-based mappers such as AutoMapper
- Designed for developers writing new C# code, refactoring existing code, or optimizing performance-critical paths on .NET 8 and later
Install
$ npx -y skills add aaronontheweb/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
Reference Files
- value-objects-and-patterns.md: Full value object examples and pattern matching code
- performance-and-api-design.md: Span/Memory examples and API design principles
- composition-and-error-handling.md: Composition over inheritance, Result type, testing patterns
- anti-patterns-and-reflection.md: Reflection avoidance and common anti-patterns
Core Principles
Details
- Repository
- github.com/aaronontheweb/dotnet-skills
- Category
- .NET & C#
More from aaronontheweb/dotnet-skills
All 34- Csharp Concurrency Patterns1.6K
- Efcore Patterns1.6K
- Dependency Injection Patterns716
- Database Performance713
- Dotnet Project Structure707
- Api Design703
- Type Design Performance699
- Ilspy Decompile665
- Package Management624
- Microsoft Extensions Configuration622
- Serialization609
- Testcontainers Integration Tests598
- Dotnet Slopwatch595
- Crap Analysis594
- Playwright Blazor Testing572
- Dotnet Local Tools561
- Aspire Integration Testing533
- Mjml Email Templates524
- Aspire Service Defaults508
- Aspire Configuration497
- Snapshot Testing496
- Dotnet Devcert Trust469
- Skills Index Snippets467
- Playwright Ci Caching466
Similar 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/ecc6K installsIdiomatic C# and .NET conventions covering immutability, dependency injection, async/await, and common application patterns.
type-design-performanceaaronontheweb/dotnet-skills699 installsPerformance-focused .NET type design rules covering sealing, readonly structs, pure static functions, and collection choice.
dotnet-csharpnovotnyllc/dotnet-artisan473 installsBaseline C# skill that guides language patterns, async, DI, and interop across 25 .NET topic areas.
csharp-asyncgithub/awesome-copilot11.1K installsReview and guidance checklist for C# async code covering naming, return types, exceptions, and pitfalls.
dotnet-best-practicesgithub/awesome-copilot16.2K installsOpinionated .NET/C# review guide that checks code against project conventions for DI, async, testing, and AI integration.