coding-conventions

Enforce .NET/C# coding conventions for naming, layout, and C# 12+ features.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/RevTechStudio/rts-plugins --skill coding-conventions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coding-conventions
Source: https://github.com/RevTechStudio/rts-plugins/tree/main/rts-foundation/skills/coding-conventions
Command: npx skills add https://github.com/RevTechStudio/rts-plugins --skill coding-conventions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures all .NET/C# code adheres to consistent, modern coding standards, improving readability, maintainability, and performance. It actively promotes the use of the latest C# features (12/13/14) while enforcing strict formatting and naming rules.

Core Features & Use Cases

  • Modern C# Feature Adoption: Guides the use of C# 12+ features like Primary Constructors, Collection Expressions, and field keyword, ensuring code is up-to-date and concise.
  • Strict Naming & Layout: Enforces PascalCase for types/members, CamelCase for local variables/parameters, and Allman style for braces, with no brace omission.
  • Code Quality Principles: Prohibits practices like underscore prefixes for private fields and inline comments, promoting cleaner, more consistent code.
  • Use Case: When writing new C# code, use this skill to automatically check if your class definitions use Primary Constructors, if collection initializations use Collection Expressions, and if all formatting (indentation, brace style) and naming conventions are correctly applied, ensuring high code quality.

Quick Start

Explain the coding conventions for C#/.NET, focusing on naming rules, code layout, and the use of C# 12+ features.

Frequently Asked Questions about coding-conventions

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

FAQPage Schema
How do I enforce consistent naming conventions across a C# codebase?

C# naming conventions standardize identifiers using PascalCase for types and members, CamelCase for local variables and parameters. This Skill enforces Microsoft official guidelines across your entire .NET codebase, ensuring consistency in naming patterns that improve readability and reduce cognitive load when reviewing code.

What are C# 12+ features I should use for modern code quality?

C# 12 and later introduce Primary Constructors, Collection Expressions, Default Lambda Parameters, and the field keyword for backing fields. This Skill guides adoption of these features to make code more concise, readable, and maintainable while enforcing their correct usage across .NET 8+ projects.

Can I automatically check if my code follows modern C# and .NET standards?

Yes. This Skill enforces comprehensive .NET/C# coding conventions by checking naming rules, formatting (Allman-style braces, indentation), prohibition of underscore-prefixed backing fields, and usage of modern C# features, automatically validating code quality across your entire codebase.

Why should I avoid underscore-prefixed backing fields in modern C#?

Modern C# coding standards prohibit underscore prefixes for private fields to keep naming patterns consistent and leverage newer features like the field keyword instead. This Skill enforces this convention to align with Microsoft guidelines and promote cleaner, more maintainable code structure.

Does this apply to existing .NET projects or only new code?

This Skill applies to all codebases targeting .NET 8 and later. It can validate both new and existing code against modern C# conventions, helping teams incrementally adopt modern standards and features while maintaining consistent quality across the entire project.

What formatting rules does C# code need to follow?

C# code formatting enforces Allman-style braces (opening braces on new lines), proper indentation, and mandatory braces for all control structures—no omission allowed. This Skill checks these rules automatically, ensuring uniform layout and preventing subtle bugs caused by missing braces.