roslynator

Analyze, fix, and format C# code in .NET solutions with Roslynator CLI.

32|3|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/asynkron/asynkron-skills --skill roslynator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: roslynator
Source: https://github.com/asynkron/asynkron-skills/tree/main/skills/roslynator
Command: npx skills add https://github.com/asynkron/asynkron-skills --skill roslynator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Roslynator provides comprehensive static analysis, refactorings, and code fixes for C# projects, helping teams maintain code quality and consistency while reducing manual review workload.

Core Features & Use Cases

  • Static analysis across large code bases with actionable diagnostics.
  • Auto-fixes and code formatting to align with coding standards.
  • Find-unused code and refactor for cleaner, maintainable projects.
  • Use Case: You inherit a legacy .NET project full of warnings; run Roslynator to automatically fix issues, clean up code, and enforce style rules during CI.

Quick Start

Run Roslynator against a solution or project to analyze, fix, and format code in one pass.

Frequently Asked Questions about roslynator

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

FAQPage Schema
How do I run static analysis and auto-fix C# warnings across a .NET solution?

Static analysis and auto-fixes for C# warnings across .NET solutions are executed by running the Roslynator CLI against a specified solution or project path to analyze, fix, and format code in a single pass.

What is the best way to enforce C# formatting and coding standards during CI workflows?

Enforcing C# formatting and coding standards during CI workflows is achieved by integrating Roslynator CLI tooling into your pipeline to automatically analyze code, apply fixes, and format files consistently.

Can I automatically detect and clean up unused code in a legacy .NET project?

Detecting and cleaning up unused code in legacy .NET projects is supported by Roslynator's static analysis capabilities, which identify unused code and apply refactorings for cleaner, maintainable files.

Do I need the Roslynator CLI tooling installed to analyze and format C# files?

Yes, the Roslynator CLI tooling is required to execute static analysis, code fixes, and formatting across C# projects, along with a valid solution or project path to operate on.

Does Roslynator work with large code bases for static analysis and refactorings?

Roslynator performs static analysis and refactorings across large code bases, providing actionable diagnostics and code fixes to help teams maintain code quality and consistency at scale.

How does Roslynator compare to other static analysis tools for maintaining .NET code quality?

Roslynator distinguishes itself from other static analysis tools by combining comprehensive diagnostics, auto-fixes, code formatting, and unused code detection into a single CLI-driven workflow for .NET solutions.