wshaddix avatar

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-code

Installs 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

  1. Immutability by Default - Use record types and init-only properties
  2. Type Safety - Leverage nullable reference types and value objects
  3. Modern Pattern Matching - Use switch expressions and patterns extensively
  4. Async Everywhere - Prefer async APIs with proper cancellation support
  5. Zero-Allocation Patterns - Use Span<T> and Memory<T> for performance-critical code
  6. API Design - Accept abstractions, return appropriately specific types
  7. Composition Over Inheritance - Avoid abstract base classes, prefer composition
  8. Value Objects as Structs - Use readonly record struct for value objects

Naming Conventions

General Rules

Sponsors

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 13
1andreadellacorte avatargroove-utilities-memory-installandreadellacorte/grooveSet up memory backend and configuration.586skills.sh installs
2anthropics avatarinteractive-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
3wuyoscar avatargpt-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
4longbridge avatarlongbridge-subscriptionslongbridge/skillsList active real-time WebSocket subscriptions in the current Longbridge CLI session — symbols, sub_types (quote / depth / trades / brokers), candlestick periods584skills.sh installs
5andreadellacorte avatargroove-utilities-task-installandreadellacorte/grooveSet up task backend and configuration.581skills.sh installs
6freestylefly avatarvolcengine-video-understandingfreestylefly/canghe-skills火山视频理解 - 使用火山方舟视频理解 API 分析视频内容。通过 Files API 上传视频(推荐),支持大文件(最大512MB),可用于视频内容分析、物体识别、动作理解等。当用户需要分析视频、理解视频内容、提取视频信息时激活此技能。579skills.sh installs