coding-conventions

Enforce .NET/C# coding conventions for naming, layout, and modern syntax.

4|Updated Dec 7, 2025
One-click install
npx skills add https://github.com/icartsh/icartsh_plugin --skill coding-conventions-icartsh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coding-conventions
Source: https://github.com/icartsh/icartsh_plugin/tree/main/icartsh-plugin/skills/coding-conventions
Command: npx skills add https://github.com/icartsh/icartsh_plugin --skill coding-conventions-icartsh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill codifies contemporary C#/.NET coding conventions, naming, layout, and patterns to align team code.

Core Features & Use Cases

  • Naming conventions: types, members, parameters
  • Modern syntax guidance: nullable references, pattern matching, primary constructors
  • Style guidance: editorconfig, formatting rules, and linting practices

Quick Start

Apply the conventions in your project via the repository's .editorconfig and codified rules; reference the coding-conventions SKILL.md for examples.

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 C# naming conventions across my .NET team?

C# naming conventions standardize types, members, variables, and parameters across projects. This Skill codifies modern .NET naming rules—PascalCase for types and public members, camelCase for parameters and local variables—and provides .editorconfig configuration to automatically enforce them in your IDE and CI/CD pipeline, eliminating style inconsistencies during code reviews.

What are the current C# and .NET coding standards I should follow in 2024?

Modern C# coding standards emphasize nullable references, pattern matching, and recent language features (C# 12–14, .NET 8–10) such as primary constructors, collection expressions, and advanced LINQ patterns. This Skill aligns your team with Microsoft's official guidelines, bans underscore-prefixed backing fields, requires explicit braces, and promotes contemporary syntax to keep codebases maintainable and performant.

How do I set up .editorconfig rules for C# formatting and linting?

Apply coding conventions in your .NET project via .editorconfig files and linting rules. This Skill provides pre-configured formatting and naming conventions that enforce consistent indentation, brace placement, and code layout, integrating directly with Visual Studio and other C# IDEs to validate style automatically during development and pull request reviews.

Can I use primary constructors and collection expressions in my legacy .NET project?

Primary constructors and collection expressions require C# 12+ and .NET 8+. This Skill guides adoption of these modern features where your project's target framework supports them, helping you incrementally modernize syntax in existing codebases while maintaining backward compatibility and explaining when each feature is appropriate.

What's the best way to enforce coding style consistently across a distributed team?

Distributed teams maintain style consistency by codifying conventions in version-controlled .editorconfig and linting configuration files. This Skill provides a centralized reference for naming, layout, and modern C# patterns, ensuring every developer—regardless of IDE—follows identical rules, reducing merge conflicts and making code reviews focus on logic rather than formatting.

Do I need to rewrite existing code to meet modern C# conventions?

Modern C# conventions apply prospectively to new code and refactored sections. This Skill distinguishes between critical rules (nullable references, explicit braces) and optional modernizations (primary constructors, advanced LINQ), allowing teams to adopt conventions incrementally without requiring full codebase rewrites while still achieving uniform style over time.