dotnet-best-practices

Enforces .NET/C# code quality through best practices and design patterns.

Updated Mar 9, 2026
One-click install
npx skills add https://github.com/Cripacx/agentic-dotnet --skill dotnet-best-practices-cripacx
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: dotnet-best-practices
Source: https://github.com/Cripacx/agentic-dotnet/tree/main/skills/dotnet-best-practices
Command: npx skills add https://github.com/Cripacx/agentic-dotnet --skill dotnet-best-practices-cripacx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures that .NET/C# code adheres to established best practices, improving code quality, maintainability, and performance.

Core Features & Use Cases

  • Code Quality Enforcement: Enforces standards for documentation, design patterns, dependency injection, and error handling.
  • Best Practice Guidance: Provides specific recommendations for async/await, testing, configuration, and AI integration.
  • Use Case: Review a newly written C# class to ensure it follows SOLID principles, uses constructor injection correctly, and has comprehensive XML documentation.

Quick Start

Ensure the C# code in the current selection meets .NET best practices.

Frequently Asked Questions about dotnet-best-practices

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

FAQPage Schema
How do I enforce .NET best practices and SOLID principles in my C# code?▼

To enforce .NET best practices, review your C# code against standards for SOLID principles, constructor injection, and comprehensive XML documentation to ensure maintainability and high code quality.

What are the best practices for using async/await and dependency injection in C#?▼

Best practices for async/await and dependency injection in C# involve using specific patterns like constructor injection correctly and following established guidelines to prevent resource mismanagement and improve performance.

Can I use this to review a newly written C# class for design patterns and error handling?▼

Yes, you can review a newly written C# class to ensure it follows design patterns like Command Handler and Factory, uses correct error handling, and adheres to established testing standards.

Does this C# code quality guidance cover configuration and security standards?▼

Yes, the C# code quality guidance covers configuration and security standards, applying specific rules across resource management, performance, and general code quality principles within a .NET solution.

When should I apply Command Handler and Factory patterns in .NET development?▼

You should apply Command Handler and Factory patterns in .NET development when refactoring code to adhere to SOLID principles, ensuring your project structure follows established architectural design patterns.