dotnet-roslynator

Integrate Roslynator analyzers into .NET C# projects via .editorconfig.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenge of maintaining high code quality and consistency in .NET C# projects by leveraging advanced static analysis tools.

Core Features & Use Cases

  • Automated Code Analysis: Integrates Roslynator analyzers to identify potential issues, code smells, and areas for improvement.
  • Code Fixes: Provides automated or semi-automated fixes for detected code quality problems.
  • Customizable Rules: Allows configuration of analysis rules and severity levels via .editorconfig.
  • CLI Integration: Supports Roslynator CLI for explicit analysis, fixing, and formatting workflows.
  • Use Case: Automatically scan a C# codebase for unused variables, suggest performance optimizations, and enforce consistent coding styles, ensuring a cleaner and more maintainable project.

Quick Start

Add Roslynator analyzers to the current C# project.

Frequently Asked Questions about dotnet-roslynator

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

FAQPage Schema
How do I enforce C# code quality and consistency using static analysis?

Static analysis enforces C# code quality by integrating Roslynator analyzers into your .NET projects to identify code smells and suggest fixes during build-time or via CLI workflows.

Can I auto-fix code smells and format my C# codebase?

You can auto-fix code smells and format C# codebases using the Roslynator CLI, which provides explicit analysis, automated fixing, and formatting workflows for detected issues.

How do I configure static analysis rule severity for my dotnet project?

You configure static analysis rule severity for dotnet projects via `.editorconfig` files, which allow fine-grained control over analyzer behavior and rule enforcement levels.

Does Roslynator work with NuGet for build-time code checks?

Roslynator works with NuGet analyzer packages to enable build-time code checks, seamlessly integrating static analysis into your .NET C# compilation pipeline.

What is the best way to scan a C# codebase for unused variables and performance issues?

Scanning a C# codebase for unused variables and performance issues is best handled by adding Roslynator analyzers to automatically detect problems and enforce consistent coding styles.

Do I need .editorconfig to use Roslynator for code analysis?

While Roslynator functions with default rules, an `.editorconfig` file is required to customize analysis rules and severity levels for fine-grained control over your code quality standards.