dotnet-best-practices

Analyze .NET projects for SOLID principles and modern C# best practices.

1|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/afonsoft/VideoChat --skill dotnet-best-practices-afonsoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-best-practices
Source: https://github.com/afonsoft/VideoChat/tree/main/.agents/skills/dotnet-best-practices
Command: npx skills add https://github.com/afonsoft/VideoChat --skill dotnet-best-practices-afonsoft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ensures .NET/C# code follows modern best practices, SOLID principles, and industry standards for production-ready applications.

Core Features & Use Cases

  • Code reviews to validate SOLID adherence and modern C# usage
  • Refactoring guidance to improve maintainability, testability, and performance
  • Architectural guidance for clean architecture, DI, and testability
  • Use Case: a legacy .NET project is upgraded to align with SOLID and modern patterns

Quick Start

Audit a .NET project to identify violations and produce a prioritized set of actionable improvements.

Frequently Asked Questions about dotnet-best-practices

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

FAQPage Schema
How do I audit a .NET project for SOLID principle violations?

You audit a .NET project for SOLID violations by analyzing the C# codebase against modern best practices to identify issues and produce a prioritized set of actionable refactoring improvements. This ensures adherence to clean architecture patterns.

What are the best practices for refactoring legacy C# code?

Best practices for refactoring legacy C# code involve enforcing null-safety, strong typing, and dependency injection. Analyze the project to improve maintainability, testability, and performance while aligning with modern .NET industry standards.

Does this approach work for enterprise-level .NET codebases?

Yes, this approach works for enterprise-level .NET codebases by applying architectural guidance for clean architecture, dependency injection, and testability. It validates modern C# usage and enforces production-ready application standards.

How does clean architecture improve dependency injection in C#?

Clean architecture improves dependency injection in C# by enforcing strong typing and separating concerns, which enhances testability and maintainability. Analyzing the project ensures modern best practices are applied to enterprise-level codebases.

Why should I enforce null-safety and strong typing in .NET projects?

You enforce null-safety and strong typing in .NET projects to ensure production-ready applications that follow SOLID principles. This modern C# usage reduces runtime errors and improves overall codebase maintainability and testability.

Can I get code review guidance for modern C# usage?

Yes, you can get code review guidance for modern C# usage to validate SOLID adherence. The analysis checks your .NET project for null-safety, strong typing, and dependency injection to ensure industry standards are met.