What problem does it solve?
Manual C# code reviews are slow, inconsistent, and prone to missing critical issues like security vulnerabilities or SOLID principle violations. This skill automates that, ensuring high-quality, secure, and maintainable .NET applications.
Core Features & Use Cases
- Automated Code Review: Applies Roslyn Analyzers, .editorconfig, and senior developer standards (SOLID, async/await, nullable reference types).
- Security & Performance Checks: Identifies potential SQL injection, N+1 queries, and other common pitfalls.
- Use Case: Before a pull request, automatically validate all C# code changes against a comprehensive set of best practices, ensuring every commit meets high quality and security standards without manual oversight.
Quick Start
Install core Roslyn Analyzers:
dotnet add package Microsoft.CodeAnalysis.NetAnalyzers
dotnet add package StyleCop.Analyzers
dotnet add package SonarAnalyzer.CSharp
dotnet add package Roslynator.Analyzers
Then, enable all analyzers in Directory.Build.props:
<PropertyGroup>
<AnalysisMode>All</AnalysisMode>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors Condition="'$(Configuration)' == 'Release'">true</TreatWarningsAsErrors>
</PropertyGroup>