
Modern Csharp Coding Standards
Solid baseline for keeping your C# code modern and idiomatic. Covers the essential conventions for async/await patterns, public API design, and performance-sensitive scenarios like buffer handling and binary data work. Originally from aaronontheweb's dotnet-skills repo, now maintained by wshaddix with a decent following (47 stars, 437 installs). Best used as a starting point when you want Claude to write C# that doesn't feel like it's from 2015, especially if you're building libraries or working on high-throughput code. It won't replace team-specific style guides, but it handles the fundamentals well enough that you're not constantly correcting basic patterns.
- skills.sh installs
- 589
- GitHub stars
- 90
- last updated
- Aug 21, 2026
Install
$ npx -y skills add wshaddix/dotnet-skills --skill modern-csharp-coding-standards --agent claude-codeInstalls into .claude/skills of the current project.
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
Sponsors
Promote your product hereReach 125k+ visitors monthlyPromote your product hereReach 125k+ visitors monthly
Agent CaffeineSponsoredClose your lid, come back to finished work
SnugSponsoredThe clipboard manager for the AI eraPromote your product hereReach 125k+ visitors monthly
WaxSponsoredBlock anything with supervision, without erasing your iPhonePromote your product hereReach 125k+ visitors monthly
knobsSponsoredSee your site on any phone, any day, in any language
Details
- Repository
- github.com/wshaddix/dotnet-skills
- Categories
- Backend & APIs, Documentation, Code Review & Quality, Debugging, Design & UI/UX, .NET & C#
- First seen
- Jun 3, 2026
More from wshaddix/dotnet-skills
All 13Recommended
More Backend & APIs1
groove-utilities-memory-installandreadellacorte/grooveSet up memory backend and configuration.586skills.sh installs
2
interactive-dashboard-builderanthropics/knowledge-work-pluginsBuild self-contained interactive HTML dashboards with Chart.js, dropdown filters, and professional styling. Use when creating dashboards, building interactive r586skills.sh installs
3
gpt-imagewuyoscar/gpt-image2-skillWraps the GPT Image 2 API with a 162-prompt reference gallery, a prompt-craft checklist, and a CLI that routes text-to-image,...585skills.sh installs
4
longbridge-subscriptionslongbridge/skillsList active real-time WebSocket subscriptions in the current Longbridge CLI session — symbols, sub_types (quote / depth / trades / brokers), candlestick periods584skills.sh installs
5
groove-utilities-task-installandreadellacorte/grooveSet up task backend and configuration.581skills.sh installs
6
volcengine-video-understandingfreestylefly/canghe-skills火山视频理解 - 使用火山方舟视频理解 API 分析视频内容。通过 Files API 上传视频(推荐),支持大文件(最大512MB),可用于视频内容分析、物体识别、动作理解等。当用户需要分析视频、理解视频内容、提取视频信息时激活此技能。579skills.sh installs