csharp-conventions

Installation
SKILL.md

C# Coding Conventions

Apply these conventions when writing, reviewing, or refactoring C# code. They reflect modern C# (up to C# 13) and current .NET idioms. For async/await-specific guidance, defer to the csharp-async skill. For XML documentation details, defer to csharp-docs.

Modern Language Features

Prefer the latest language features where they improve clarity and reduce boilerplate. A shorter file that expresses the same intent is easier to review, easier to maintain, and produces fewer merge conflicts.

File-Scoped Namespaces

Use file-scoped namespaces to eliminate one level of indentation across the entire file:

namespace MyApp.Services;

public class OrderService { }

Primary Constructors

Installs
3
GitHub Stars
5
First Seen
May 21, 2026