dotnet-roslyn-analyzers

Community

Author custom Roslyn analyzers.

AuthorAGIBuild
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides comprehensive guidance for developers who need to create their own Roslyn analyzers, code fix providers, and code refactoring providers to enforce custom coding standards or identify specific code patterns within C# projects.

Core Features & Use Cases

  • Analyzer Authoring: Learn to implement DiagnosticAnalyzer for detecting code issues.
  • Code Fixes & Refactorings: Implement CodeFixProvider and CodeRefactoringProvider for automated code corrections and transformations.
  • Multi-Version Targeting: Support multiple Roslyn versions for broader compatibility.
  • Testing Strategies: Utilize Microsoft.CodeAnalysis.Testing for robust unit tests.
  • Use Case: A team wants to enforce a specific naming convention for asynchronous methods. They can create a custom Roslyn analyzer using this Skill to automatically flag violations and provide a code fix to rename the methods correctly.

Quick Start

Create a new C# project targeting netstandard2.0 and add the necessary Roslyn SDK NuGet packages to begin authoring your analyzer.

Dependency Matrix

Required Modules

Microsoft.CodeAnalysis.CSharpMicrosoft.CodeAnalysis.AnalyzersMicrosoft.CodeAnalysis.CSharp.Analyzer.TestingMicrosoft.CodeAnalysis.CSharp.CodeFix.Testingxunit.v3

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: dotnet-roslyn-analyzers
Download link: https://github.com/AGIBuild/Agibuild.Fulora/archive/main.zip#dotnet-roslyn-analyzers

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.