dotnet-best-practices

Validate .NET/C# code against comprehensive best practices for your solution and project.

github ↓ 14k
Claude Code
View source ↗

What it does

  • Create comprehensive XML documentation comments for all public classes, interfaces, methods, and properties
  • Include parameter descriptions and return value descriptions in XML comments
  • Follow the established namespace structure: {Core|Console|App|Service}.{Feature}
  • Use primary constructor syntax for dependency injection (e.g., public class MyClass(IDependency dependency))
  • Implement the Command Handler pattern with generic base classes (e.g., CommandHandler<TOptions>)
  • Use interface segregation with clear naming conventions (prefix interfaces with 'I')
  • Follow the Factory pattern for complex object creation.

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

Validate .NET/C# code against comprehensive best practices for your solution and project.

Source

Repository: https://github.com/github/awesome-copilot

dotnet-best-practices FAQ

What does the dotnet-best-practices skill do?

Ensure .NET/C# code meets best practices for the solution/project. Create comprehensive XML documentation comments for all public classes, interfaces, methods, and properties Include parameter descriptions and return value descriptions in XML comments

How do I install dotnet-best-practices?

Run: npx -y skills add https://github.com/github/awesome-copilot --skill dotnet-best-practices --agent claude-code — the source lives at github.com/github/awesome-copilot.

Maintain dotnet-best-practices?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

dotnet-best-practices on getagentictools
[![dotnet-best-practices on getagentictools](https://getagentictools.com/badge/skills/github-awesome-copilot-dotnet-best-practices.svg)](https://getagentictools.com/skills/github-awesome-copilot-dotnet-best-practices?ref=badge)
npx agentictools info skills/github-awesome-copilot-dotnet-best-practices

The second line is the CLI lookup for this page — handy in READMEs and docs.