Skip to main content
skill CX Codex

dotnet-roslyn-analyzers — Claude Code skill: install

The dotnet-roslyn-analyzers Claude Code skill guides work on Roslyn analyzers, code fixes, and refactorings. It activates when an agent is asked to build custom C# diagnostics.

no license 100 installs ★ 92 updated 2026-02-27

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add wshaddix/dotnet-skills --skill dotnet-roslyn-analyzers -a claude-code
Open on GitHub

What dotnet-roslyn-analyzers does

The skill covers authoring Roslyn analyzers, code-fix and refactoring providers, plus diagnostic suppressors. It walks through project setup, analysis-context registration, diagnostic conventions, tests, NuGet packaging, and performance considerations.

Analyzer projects must target netstandard2.0. The examples use Microsoft.CodeAnalysis.CSharp and Microsoft.CodeAnalysis.Analyzers, and the guidance spans Roslyn versions 3.8 through 4.14. Its scope is building analyzer tooling, rather than configuring existing rules.

What it helps with

  • build a Roslyn analyzer for a C# code pattern
  • attach a code fix to a diagnostic
  • create a refactoring provider
  • target multiple Roslyn versions in an analyzer project

Example prompts for the agent

  • Write a Roslyn analyzer that flags public fields in C#.
  • Add a code fix for this diagnostic and choose the analysis registration.
  • Set up an analyzer project to support several Roslyn versions.

How to install dotnet-roslyn-analyzers

1Skills CLI (Vercel)

npx skills add wshaddix/dotnet-skills --skill dotnet-roslyn-analyzers -a claude-code

2Manually: put the files in place

~/.claude/skills/dotnet-roslyn-analyzers/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/dotnet-roslyn-analyzers/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about dotnet-roslyn-analyzers

How do I install dotnet-roslyn-analyzers in Claude Code?

Run npx skills add wshaddix/dotnet-skills --skill dotnet-roslyn-analyzers -a claude-code. The skill file is at ~/.claude/skills/dotnet-roslyn-analyzers/SKILL.md.

What does dotnet-roslyn-analyzers do?

It guides the creation of Roslyn analyzers, code fixes, refactorings, and diagnostic suppressors. It also covers project setup and analysis registration.

Which target framework does an analyzer project need?

The project must target netstandard2.0. The examples use Microsoft.CodeAnalysis.CSharp and Microsoft.CodeAnalysis.Analyzers.

Similar skills

All skills for Programming languages →

From the same set24

The whole set →
bootstrap5-ui bootstrap5-ui provides Bootstrap 5.3 layout patterns and component snippets for HTML and ASP.NET Core Razor views. CX Codex +1 122installs dotnet-performance-patterns dotnet-performance-patterns is a Claude Code skill for .NET 8+ architecture patterns that reduce allocations using Span, Memory, and ArrayPool. CX Codex +1 122installs Razor Pages Patterns The Razor Pages Patterns skill gives the agent a fixed set of rules for ASP.NET Core Razor Pages: page layout, PageModel design, binding and validation, form security. Fits projects on .NET 8+ with Razor Pages as the UI. CX Codex +1 121installs dotnet-solid-principles dotnet-solid-principles — a skill for Claude Code that applies SOLID, DRY, and SRP principles in .NET projects. Detects C# anti-patterns and suggests specific refactoring steps. CX Codex +1 112installs dotnet-integration-testing The dotnet-integration-testing Claude Code skill covers .NET integration tests against real infrastructure. Ask for API test setup with an in-process server or a database running in Docker. CX Codex +1 111installs signalr-integration The signalr-integration skill provides SignalR patterns for ASP.NET Core Razor Pages, including hubs and client connections. Use it when adding live notifications or order updates. CX Codex +1 107installs dotnet-blazor-patterns The dotnet-blazor-patterns Claude Code skill covers Blazor project setup, hosting choices, and render modes. It applies to routing, prerendering, and streaming-render tasks. CX Codex +1 104installs dotnet-winui The dotnet-winui Claude Code skill supports WinUI 3 app development. It covers project setup, XAML patterns, deployment choices, and moving apps from UWP. CX Codex +1 103installs

Project sponsors

Companies that keep this analytics open