mcaf-dotnet-roslynator

Integrate Roslynator analyzers into .NET projects for C# static analysis and auto-fixing.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the need for comprehensive static analysis in .NET projects, helping to identify and fix code quality issues, detect dead code, and enforce coding standards beyond the default SDK analyzers.

Core Features & Use Cases

  • Static Analysis: Leverages Roslynator's powerful analyzers to find potential bugs, code smells, and style violations.
  • Automated Fixing: Can automatically apply suggested code fixes to improve code quality and consistency.
  • Dead Code Detection: Identifies and helps remove unused code, reducing project bloat.
  • CLI Integration: Supports Roslynator's command-line interface for specific workflows like analysis, fixing, and formatting.
  • Use Case: A developer wants to ensure their C# codebase adheres to best practices and is free of common errors. They can use this Skill to integrate Roslynator analyzers into their project and run automated fixes.

Quick Start

Use the mcaf-dotnet-roslynator skill to add Roslynator analyzers to the current .NET project.

Frequently Asked Questions about mcaf-dotnet-roslynator

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

FAQPage Schema
How do I run static analysis and find dead code in a C# .NET project?

Static analysis and dead code detection in a .NET project are handled by integrating Roslynator analyzers to identify bugs, code smells, and unused code beyond default SDK checks. The process leverages Roslynator's CLI for automated analysis and formatting.

How do I automatically fix C# code quality issues in my repository?

Automated C# code fixing applies suggested corrections from Roslynator analyzers to improve consistency and resolve style violations. This Skill integrates the analyzer to apply automated refactoring across your .NET repository.

Can I use Roslynator analyzers with my existing .NET SDK repository?

Yes, Roslynator analyzers work with your existing .NET SDK repository. The integration requires a .NET SDK-based setup and respects AGENTS.md for command execution to enforce coding standards.

What is the best way to remove unused code and reduce bloat in a .NET codebase?

The best way to remove unused code in a .NET codebase is using Roslynator's dead code detection features. It identifies unused code to reduce project bloat and helps apply automated fixes for comprehensive code quality.

Does this static analysis Skill support command-line interface workflows for C#?

Yes, this Skill supports Roslynator's command-line interface for specific C# workflows. The CLI integration enables targeted analysis, fixing, and formatting actions directly within your .NET project environment.

Why use Roslynator for C# static analysis instead of standard .NET SDK analyzers?

Roslynator is used for C# static analysis to enforce coding standards and detect issues beyond the default standard .NET SDK analyzers. It provides advanced code quality checks, dead code detection, and automated refactoring capabilities.