dotnet-roslynator

Configure Roslynator analyzers and CLI for C# static analysis.

8|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/Postpartum-genushyacinthus29/dotnet-skills --skill dotnet-roslynator-postpartum-genushyacinthus29
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-roslynator
Source: https://github.com/Postpartum-genushyacinthus29/dotnet-skills/tree/main/skills/dotnet-roslynator
Command: npx skills add https://github.com/Postpartum-genushyacinthus29/dotnet-skills --skill dotnet-roslynator-postpartum-genushyacinthus29

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Roslynator provides open-source analyzers and an optional CLI to extend .NET code analysis, enabling deeper static analysis, auto-fix workflows, and broader rule coverage beyond SDK analyzers.

Core Features & Use Cases

  • Broad static analysis with Roslynator.Analyzers for C#
  • Optional CLI workflows for analyze, fix, and find-unused code
  • EditorConfig-driven customization to fit team standards and CI pipelines

Quick Start

Install Roslynator and run a basic analysis to identify actionable improvements.

Frequently Asked Questions about dotnet-roslynator

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

FAQPage Schema
How do I run C# static analysis to find code quality issues in a .NET repository?

C# static analysis identifies code quality issues by installing Roslynator.Analyzers packages and running the Roslynator CLI to scan .NET repositories for actionable improvements. This extends coverage beyond default SDK analyzers to detect dead code and enforce broader rule sets.

Can I auto-fix C# code issues directly from the command line?

Yes, you can auto-fix C# code issues using the Roslynator CLI fix command. The CLI workflow applies automated code corrections for detected analyzer violations, enabling batch processing of auto-fix workflows during local development or CI pipeline execution.

How do I configure C# analyzer rules to match my team's code standards?

You configure C# analyzer rules by defining rule behavior and severity levels in an .editorconfig file. This EditorConfig-driven customization ensures Roslynator analysis adheres to specific team standards and integrates consistently across local development and CI environments.

What is the best way to detect unused code in a C# project?

The best way to detect unused code in a C# project is using the Roslynator CLI find-unused code command. This dead-code detection feature scans .NET repositories to locate and report unreachable code elements for safe removal.

Does Roslynator work with existing .NET SDK analyzers?

Yes, Roslynator works alongside existing .NET SDK analyzers by providing broader static analysis and additional rule coverage. It extends default SDK capabilities with open-source analyzers, optional CLI workflows, and auto-fix features without replacing the built-in SDK tooling.

How do I integrate C# static analysis into a CI pipeline?

You integrate C# static analysis into a CI pipeline by configuring the Roslynator CLI to run analyze checks during the build process. EditorConfig files define the rule behavior, ensuring consistent code-quality gates and automated violation reporting across continuous integration environments.