csharp-standards

Enforce C# coding standards for .NET development projects.

Updated Mar 6, 2026
One-click install
npx skills add https://github.com/alex5141/github-copilot-starter --skill csharp-standards
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: csharp-standards
Source: https://github.com/alex5141/github-copilot-starter/tree/main/.github/skills/csharp-standards
Command: npx skills add https://github.com/alex5141/github-copilot-starter --skill csharp-standards

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures C# code adheres to established naming conventions, formatting rules, and modern language features, leading to more readable, maintainable, and consistent codebases.

Core Features & Use Cases

  • Naming Conventions: Enforces PascalCase for public members and camelCase for private members.
  • Code Formatting: Ensures consistent use of braces, spacing, and avoids magic numbers.
  • Modern C# Features: Promotes the use of expression-bodied members, var, pattern matching, and null-conditional operators.
  • Documentation: Guides on using XML documentation comments for public APIs.
  • Async/Await: Provides best practices for asynchronous programming, including naming and ConfigureAwait.
  • Use Case: When writing or reviewing C# code for a .NET project, this skill will provide guidance on how to structure classes, name methods and variables, and utilize modern C# syntax for better code quality.

Quick Start

Apply the csharp-standards skill to ensure the provided C# code follows best practices for naming and formatting.

Frequently Asked Questions about csharp-standards

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

FAQPage Schema
What are the standard C# coding conventions for .NET development?

Standard C# coding conventions enforce PascalCase for public members, camelCase for private members, consistent braces, and modern syntax to ensure readable and maintainable .NET codebases.

How do I format C# code to use modern language features correctly?

To format C# code with modern features, apply expression-bodied members, use var for type inference, implement pattern matching, and utilize null-conditional operators for cleaner code structure.

What are the best practices for asynchronous programming in C#?

Best practices for asynchronous programming in C# include using the Async suffix for method names and applying ConfigureAwait to maintain consistent execution context and prevent deadlocks.

Does this Skill enforce documentation standards for public C# APIs?

Yes, this Skill enforces documentation standards by guiding developers to use XML documentation comments for public APIs, ensuring consistent codebase documentation and developer onboarding.

Can I use this Skill to review existing C# code for magic numbers and formatting issues?

Yes, you can use this Skill to review existing C# code, as it enforces consistent spacing, brace usage, and rules to avoid magic numbers for better code quality and team collaboration.