csharp-standards

Enforce C# coding standards and conventions for .NET development.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/devbyray/nuxt-layers-component-lib-poc --skill csharp-standards-devbyray
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: csharp-standards
Source: https://github.com/devbyray/nuxt-layers-component-lib-poc/tree/main/.github/skills/csharp-standards
Command: npx skills add https://github.com/devbyray/nuxt-layers-component-lib-poc --skill csharp-standards-devbyray

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to C# coding standards and best practices, ensuring code consistency, readability, and maintainability across .NET projects.

Core Features & Use Cases

  • Naming Conventions: Enforces PascalCase and camelCase for different code elements.
  • Access Modifiers: Promotes explicit declaration of access levels.
  • Modern C# Features: Encourages the use of expression-bodied members, var, and pattern matching.
  • Code Structure: Guides on using braces, avoiding magic numbers, and proper string/char literals.
  • Documentation: Emphasizes XML documentation comments for public APIs.
  • Async/Await: Provides best practices for asynchronous programming.
  • Use Case: When starting a new C# project or reviewing existing code, use this Skill to ensure adherence to established .NET coding guidelines, leading to cleaner and more robust software.

Quick Start

Apply the C# coding standards to the provided code snippet.

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 and camelCase naming, explicit access modifiers, modern C# features, proper code structure, and XML documentation to ensure code consistency, readability, and maintainability.

How do I enforce C# best practices for asynchronous programming?

To enforce C# asynchronous programming best practices, apply established async and await guidelines that ensure robust execution, proper code structure, and consistent readability across your .NET project.

When should I use modern C# features like expression-bodied members and pattern matching?

Use modern C# features like expression-bodied members, pattern matching, and var to enforce coding standards, improve code structure, and align your .NET development with established best practices.

Does this C# coding standards guide cover naming conventions and access modifiers?

Yes, this C# coding standards guide explicitly covers naming conventions using PascalCase and camelCase, and promotes the explicit declaration of access modifiers for all code elements.

How do I document public APIs in C# projects?

Document public APIs in C# projects by applying XML documentation comments, which is an enforced coding standard that ensures code consistency and maintainability across .NET development.

What is the best way to avoid magic numbers in C# code?

The best way to avoid magic numbers in C# code is to follow coding standards that guide proper code structure, ensuring cleaner and more robust software through established .NET guidelines.