csharp-validator

Community

Automate C# code quality, security, and best practices.

AuthorErnestPenaJr
Version1.0.0
Installs0

System Documentation

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>

Dependency Matrix

Required Modules

Microsoft.CodeAnalysis.NetAnalyzersStyleCop.AnalyzersSonarAnalyzer.CSharpRoslynator.Analyzers

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: csharp-validator
Download link: https://github.com/ErnestPenaJr/Project-32/archive/main.zip#csharp-validator

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.