dotnet-code-quality

Run Roslyn analyzers on .NET/C# projects and generate SARIF logs.

Updated Jul 9, 2026
One-click install
npx skills add https://github.com/albertoirurueta/ai-catalog --skill dotnet-code-quality-albertoirurueta
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-code-quality
Source: https://github.com/albertoirurueta/ai-catalog/tree/main/.claude/skills/dotnet-code-quality
Command: npx skills add https://github.com/albertoirurueta/ai-catalog --skill dotnet-code-quality-albertoirurueta

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of running Roslyn analyzers on .NET/C# projects, providing a detailed report on code quality, style, and security issues.

Core Features & Use Cases

  • Static Analysis: Runs StyleCop.Analyzers for style/formatting and Microsoft.CodeAnalysis.NetAnalyzers for bug detection.
  • SARIF Logging: Outputs findings in SARIF format for easy integration with other tools.
  • Scalable: Supports checking the whole solution or specific project/files/classes.
  • Use Case: When you want to perform a lint/static-analysis pass separate from testing or coverage checks.

Quick Start

To analyze the entire solution, run /dotnet-code-quality. To focus on a specific project, run /dotnet-code-quality <path-to-project>.

Frequently Asked Questions about dotnet-code-quality

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

FAQPage Schema
How do I run static code analysis on a .NET/C# project?

To run .NET static code analysis, execute this Skill against your solution or a specific project path. It utilizes Roslyn analyzers to automatically detect and report code quality, style, and security issues.

What static analysis tools are used for .NET code quality checks?

For .NET code quality checks, this Skill uses StyleCop.Analyzers for style and formatting, alongside Microsoft.CodeAnalysis.NetAnalyzers for bug detection, generating detailed SARIF logs of the findings.

Can I analyze a specific C# file or class instead of the whole solution?

Yes, you can analyze specific projects, files, or classes by providing the path as an argument. This allows targeted static analysis checks instead of scanning the entire .NET solution.

Does this .NET static analysis tool output SARIF logs?

Yes, this .NET static analysis tool outputs findings in SARIF format. This standard output allows easy integration with other software engineering tools and automated code quality workflows.

When should I use a separate static analysis pass for C# code?

You should use a separate static analysis pass for C# code when you want to check code quality, style, and security independently from your testing or coverage checks.

Do I need to install Roslyn analyzers manually to check .NET code quality?

No, you do not need to manually install Roslyn analyzers to check .NET code quality. The Skill automates the process of running these analyzers and generating the analysis report.