dotnet-code-standards

Enforce C# .NET coding standards for writing, reviewing, and refactoring code.

Updated Feb 20, 2026
One-click install
npx skills add https://github.com/svkaenel/dotnet-with-claude-code --skill dotnet-code-standards
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-code-standards
Source: https://github.com/svkaenel/dotnet-with-claude-code/tree/main/skills/dotnet-code-standards
Command: npx skills add https://github.com/svkaenel/dotnet-with-claude-code --skill dotnet-code-standards

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The C# .NET code standards skill ensures consistent, readable, and maintainable code by enforcing organizational patterns across naming, formatting, logging, async usage, LINQ, and testing practices.

Core Features & Use Cases

  • Naming conventions, formatting rules, and documentation requirements across the codebase.
  • Logging standards using LoggerMessage delegates, proper async/await patterns, and LINQ optimization.
  • Comprehensive guidance for xUnit testing, guard clauses, and modern C# 12–14 features (primary constructors, extension members, field keyword, etc.) across Evanto shared libraries and project modules.
  • Real-world workflows: writing new code, code reviews, and refactoring to align with established standards and maintainability.

Quick Start

Use the dotnet-code-standards guidelines when creating or reviewing C# code to ensure consistency and quality across the project.

Frequently Asked Questions about dotnet-code-standards

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce C# coding standards across a .NET project?

Modern C# coding standards utilize primary constructors, LoggerMessage delegates for efficient logging, and guard clauses for validation. These features ensure robust, testable code compatible with .NET 10+ and later versions.

What is the best way to optimize LINQ and async usage in C#?

Optimizing LINQ and async usage in C# involves enforcing proper async/await patterns and query optimization rules. Applying these standards prevents performance bottlenecks and maintains application responsiveness during asynchronous operations.

How do I write unit tests for C# using xUnit standards?

Writing unit tests for C# using xUnit standards requires following comprehensive testing guidelines integrated with your coding standards. This approach ensures robust, testable code by standardizing test structure and validation practices across the project.

Can I use modern C# 12 through 14 features in .NET 10?

Modern C# 12 through 14 features like primary constructors and extension members are fully supported for .NET 10+ compatibility. Enforcing these features within your coding standards ensures your codebase remains current and maintainable.

How do I review C# code for maintainability and clean patterns?

Reviewing C# code for maintainability involves checking against established standards for naming, logging, and modern feature usage. This process ensures code refactoring aligns with organizational patterns and produces clean, testable C# code.