Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

roslyn-analyzers

Skill by github

Builds, reviews, debugs, packages and tests Roslyn diagnostic analyzers, code fix providers and incremental source generators. Aimed at C# and .NET developers who work with Microsoft.CodeAnalysis.

  • Score 94
  • 42k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install roslyn-analyzers

Built from the published package, never by AI.

git clone --depth 1 https://github.com/github/awesome-copilot /tmp/awesome-copilot && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-copilot/skills/roslyn-analyzers ~/.claude/skills/roslyn-analyzers

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install roslyn-analyzers in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill guides an AI assistant through work on Roslyn diagnostic analyzers, code fix providers, and incremental source generators. It sets out design rules, an implementation workflow, a sample analyzer, and steps for tests and packaging. Its main guidance is to prefer IOperation-based analysis, keep analyzers and code fixes in separate assemblies, and avoid string-based symbol checks.

It also covers source generators built on IIncrementalGenerator with a SourceWriter abstraction, per-commit assembly versioning, Docfx diagnostic documentation, and dependency pinning. The skill is aimed at .NET developers who write or maintain Roslyn analyzers and need to package them as NuGet packages.

Written from the project's SKILL.md and checked against it.

What it can do

  • Analyzer designGuides choosing operation, symbol or syntax actions for a semantic rule, with IOperation-based analysis preferred.
  • Code fix providersCovers adding code fixes in a separate assembly, with stable equivalence keys and careful use of FixAllProvider.
  • Incremental source generatorsCovers building IIncrementalGenerator pipelines that keep unchanged inputs cached.
  • Symbol identity checksExplains resolving named types and members from the Compilation and comparing symbols without display strings.
  • Test guidanceDescribes positive, negative, edge and code-fix tests, run from the narrow test class first.
  • Packaging and versioningCovers analyzer NuGet packaging and per-project version.json settings for unique assembly versions.
  • Diagnostic documentationExplains documenting each diagnostic ID, including Docfx pages and help link URIs.

What you need

  • Microsoft.CodeAnalysis (Roslyn) packages

Try asking

  • Write a Roslyn analyzer that flags blocking calls on Task using IOperation.
  • Add a code fix provider for my analyzer in a separate assembly.
  • Review my IIncrementalGenerator pipeline for caching problems.

Good to know

  • VB.NET support is optional until requested or required by repository precedent.
  • Docfx and Nerdbank.GitVersioning guidance applies only when the repository uses them.
  • Analyzer projects must not reference Roslyn Workspaces packages.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/roslyn-analyzers/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md38 KB
  • references/CSharpCodeFixVerifier.cs2 KB
  • references/SourceWriter.cs11 KB

Alternatives to roslyn-analyzers

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

roslyn-analyzers: common questions

Does this skill support source generators?

Yes. It says source generators must implement IIncrementalGenerator, not ISourceGenerator, and includes a SourceWriter starting point.

Can it help with code fixes?

Yes. The skill covers adding code fixes in a separate code-fix assembly, preserving trivia and providing stable equivalence keys.

Does it cover testing analyzers?

Yes. It recommends testing through public DiagnosticAnalyzer and CodeFixProvider APIs with the Roslyn test harness and avoids InternalsVisibleTo.

How do I install roslyn-analyzers?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is roslyn-analyzers free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is roslyn-analyzers safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to roslyn-analyzers?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

roslyn-analyzers Install

Add to stack

Loading.