roslynator: Skill for Claude Code

.claude/skills/add-compiler-diagnostic-fix/SKILL.md

add-compiler-diagnostic-fix is a skill for Claude Code from dotnet/roslynator. It costs 92 tokens per session (1,037 once invoked), scanned A, original, no licence file.

A project guide for adding Roslynator code fixes for C# compiler errors or Roslynator diagnostic rules. Roslynator is a set of tools that checks and improves C# code.

In plain words
What is it for?
Use it when implementing and testing a fix for errors such as CS0106 or Roslynator rules such as RCF####.
Why use it?
It removes uncertainty about which XML files, diagnostic IDs, and test verifier to use when adding a code fix.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is dotnet/roslynator's own configuration. It tells Claude Code how to work on roslynator itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything roslynator configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dotnet/roslynator. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/dotnet/roslynator/main/.claude/skills/add-compiler-diagnostic-fix/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/dotnet/roslynator

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for add-compiler-diagnostic-fix

README.md
[![agentmods](https://agentmods.dev/badge/skills/dotnet/roslynator/add-compiler-diagnostic-fix/github.svg)](https://agentmods.dev/skills/dotnet/roslynator/add-compiler-diagnostic-fix)
Your own site
<a href="https://agentmods.dev/skills/dotnet/roslynator/add-compiler-diagnostic-fix"><img src="https://agentmods.dev/badge/skills/dotnet/roslynator/add-compiler-diagnostic-fix/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for add-compiler-diagnostic-fix

Your own site · 80×15
<a href="https://agentmods.dev/skills/dotnet/roslynator/add-compiler-diagnostic-fix"><img src="https://agentmods.dev/badge/skills/dotnet/roslynator/add-compiler-diagnostic-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,037 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00092 $0.01037
Opus 5 $0.00046 $0.00518
Sonnet 5 $0.00018 $0.00207
Haiku 4.5 $0.00009 $0.00104

Measured 9d ago against content hash 7deb37f705c4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

add-compiler-diagnostic-fix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/add-compiler-diagnostic-fix/SKILL.md · 83 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 83 lines · 92 tokens per session scan A 7deb37f705c4

Subscribe to this mod's changes

add-compiler-diagnostic-fix is a skill published in the GitHub repository dotnet/roslynator (3,477 stars, last pushed 6d ago), with no licence file. It adds 92 tokens to every session and 1,037 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

roslyn-codelens

Use when working with any .NET / C# code (.cs/.csproj/.sln/.slnx files), finding callers/references/implementations, checking compiler errors or warnings, running dotnet build for diagnostics, searching for a type/method/interface by name, inspecting DI registrations, detecting dead code or circular dependencies…

MarcelRoozekrans/roslyn-codelens-mcp · 104 tokens

profiling

Use the free official .NET diagnostics CLI tools for profiling and runtime investigation in .NET repositories. USE FOR: the repo needs performance or runtime profiling for a .NET application; the user asks about slow code, high CPU, GC pressure, allocation growth, exception storms, lock. DO NOT USE FOR: replacing…

managedcode/dotnet-skills · 119 tokens

cs0618-hunter

Detects and fixes CS0618 obsolete API warnings in .NET builds. The compiler is the authoritative source for what your project actually triggers — it catches transitive obsoletions, overload-resolution surprises, and project-local [Obsolete] attributes that static inspection cannot see. Pair with the repository-pinned…

joslat/maf-doctor · 85 tokens

nuget-diff-analyzer

Post-processes the repository-pinned [email protected] -- diff output into a categorised report (breaking / additive / newly-obsolete) with each finding cross-referenced to the MAF obsolete-API registry.

joslat/maf-doctor · 56 tokens

dotnet-performance

Evidence-first performance engineering workflow for coding agents combining portable .NET diagnostics with platform-native profiling, BenchmarkDotNet, application benchmarking, statistical validation, deployment, container, graphics, and GPU procedures.

wieslawsoltes/Performance-Skill · 42 tokens

rider-search

Routing rules for code search in JetBrains Rider projects — use the Rider MCP symbol/reference/file tools instead of Bash grep. Use whenever searching for a symbol, definition, function, variable, type, or finding usages/references in a C#/.NET or Unreal C++ codebase open in Rider.

JSungMin/rider-mcp-enforcer · 60 tokens