Skip to main content
Back to registry

dotnet-best-practices

github/awesome-copilot

Your task is to ensure .NET/C# code in ${selection} meets the best practices specific to this solution/project. This includes:

Installs7
Install command
npx skills add https://github.com/github/awesome-copilot --skill dotnet-best-practices
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
Your task is to ensure .NET/C# code in ${selection} meets the best practices specific to this solution/project. This includes: - 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 ) - Use interface segregation with clear naming conventions (prefix interfaces with 'I') - Follow the Factory pattern for complex object creation. - Use constructor dependency injection with null checks via ArgumentNullException - Register services with appropriate lifetimes (Singleton, Scoped, Transient) - Use Microsoft.Extensions.DependencyInjection patterns - Implement service interfaces for testability - Use ResourceManager for localized messages and error strings - Separate LogMessages and ErrorMessages resource files - Access resources via _resourceManager.GetString("MessageKey") - Use async/await for all I/O operations and long-running tasks - Return Task or Task from async methods - Use ConfigureAwait(false) where appropriate - Handle async exceptions properly - Use MSTest...

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does dotnet-best-practices do?

Your task is to ensure .NET/C# code in ${selection} meets the best practices specific to this solution/project. This includes:

Is dotnet-best-practices good?

dotnet-best-practices does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does dotnet-best-practices work with?

dotnet-best-practices currently lists compatibility with Agent compatibility has not been published yet..

What are alternatives to dotnet-best-practices?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install dotnet-best-practices?

npx skills add https://github.com/github/awesome-copilot --skill dotnet-best-practices

Related skills

More from github/awesome-copilot

Related skills

Alternatives in Software Engineering