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
npx skills add wshaddix/dotnet-skills --skill dotnet-roslyn-analyzers -a claude-codeWhat 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-code2Manually: put the files in place
~/.claude/skills/dotnet-roslyn-analyzers/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/dotnet-roslyn-analyzers/
1Skills CLI (Vercel)
npx skills add wshaddix/dotnet-skills --skill dotnet-roslyn-analyzers -a codex2Manually: put the files in place
.agents/skills/dotnet-roslyn-analyzers/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add wshaddix/dotnet-skills --skill dotnet-roslyn-analyzers -a cursor2Manually: put the files in place
.cursor/skills/dotnet-roslyn-analyzers/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install wshaddix/dotnet-skills skills/dotnet-roslyn-analyzers2Manually: put the files in place
.github/skills/dotnet-roslyn-analyzers/SKILL.md1Skills CLI (Vercel)
npx skills add wshaddix/dotnet-skills --skill dotnet-roslyn-analyzers -a gemini-cli2Platform CLI
gemini skills install https://github.com/wshaddix/dotnet-skills --path skills/dotnet-roslyn-analyzersManually: put the files in place
.devin/skills/dotnet-roslyn-analyzers/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add wshaddix/dotnet-skills --skill dotnet-roslyn-analyzers -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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.