Official agent skill

Deprecate Analyzer Or Refactoring

by dotnet in dotnet/roslynator

A skill your agent uses when obsoleting or retiring RCS, RR, or RCF in roslynator, replacing an analyzer with another id, or when tempted to use IsObsolete on an Analyzer entry — analyzers use…

OfficialCustom licenceAuto-check passedDevelopment

Install Deprecate Analyzer Or Refactoring

skills CLI
$ npx skills add dotnet/roslynator --skill deprecate-analyzer-or-refactoring -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dotnet/roslynator deprecate-analyzer-or-refactoring --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dotnet/roslynator.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/deprecate-analyzer-or-refactoring .claude/skills/deprecate-analyzer-or-refactoring && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
deprecate-analyzer-or-refactoring
GitHub stars
3.5k
Token cost
~511 tokens
SKILL.md length
169 words
Files
2 (incl. references)
Skills in repo
6
Repo updated
First seen
Licence
Custom licence

At a glance

A skill your agent uses when obsoleting or retiring RCS, RR, or RCF in roslynator, replacing an analyzer with another id, or when tempted to use IsObsolete on an Analyzer entry — analyzers use…

  • Works in 6 steps: Update XML (mechanism per artifact —… → cd tools && pwsh ./generate_code.ps1 → Remove implementation, registration, and… → …
  • RCF in roslynator
  • SKILL.md covers Overview, When to Use, Quick Reference and Implementation, plus 1 more section
  • Calls pwsh and dotnet

What it does

Deprecate Analyzer Or Refactoring is an agent skill from dotnet/roslynator, published by the product's own GitHub organization. Use when obsoleting or retiring RCS, RR, or RCF in roslynator, replacing an analyzer with another id, or when tempted to use IsObsolete on an Analyzer entry — analyzers use Status Obsolete, not IsObsolete.

Its SKILL.md is about 510 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/mechanisms.md`).

It sits in Development, covering Refactoring. It works with .NET and C#. The repository describes itself as: Roslynator is a set of code analysis tools for C, powered by Roslyn.

When your agent uses it

  • RCF in roslynator
  • Replacing an analyzer with another id
  • Tempted to use IsObsolete on an Analyzer entry — analyzers use Status Obsolete

Example prompts

  • “/deprecate-analyzer-or-refactoring”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Update XML (mechanism per artifact — references/mechanisms.md)
  2. cd tools && pwsh ./generate_code.ps1
  3. Remove implementation, registration, and *Tests.cs
  4. Keep the obsolete XML entry — analyzers (Status=Obsolete), refactorings/RCF (IsObsolete="true"). Delete the whole block only when retiring…
  5. dotnet build + format verify
  6. CHANGELOG.md under ### Changed

What it can do on your machine

Read from SKILL.md and the folder at commit 167f434. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pwsh
    • dotnet

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Deprecate Analyzer Or Refactoring loads about 511 tokens when it runs, and up to ~878 if it reads all its reference files. Until then it costs about 63 tokens; SKILL.md has 169 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~63
When it runs · the whole SKILL.md, loaded when a task matches
~511
With references · SKILL.md plus every file in references/, read only if the agent opens them
~878

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 169 words (~511 tokens).

“Deprecation mechanism differs by artifact type. Wrong choice causes compile errors.”

— opening of SKILL.md by dotnet, Custom licence
name
deprecate-analyzer-or-refactoring

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file (references) in .claude/skills/deprecate-analyzer-or-refactoring of dotnet/roslynator.

  • SKILL.md
  • references/mechanisms.md

Open the folder on GitHubat commit 167f434

Compare with similar skills

Deprecate Analyzer Or Refactoring next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Deprecate Analyzer Or Refactoring compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Deprecate Analyzer Or Refactoring this skilldotnet/roslynator3.5k—~511Automated safety check: PassCustom licence
Dynamo Dotnet ExpertDynamoDS/Dynamo2k—~922Automated safety check: PassApache-2.0
Okojo Test262akeit0/okojo160—~742Automated safety check: PassMIT
Dotnet10 Featuresrunceel/ReactiveProperty944—~2.7kAutomated safety check: PassMIT
Refactor AnalysisSamsung/TizenFX214—~2.6kAutomated safety check: PassApache-2.0
C# Behavior-Preserving Refactoringdotnet/skills5.6k1 repos~3.1kAutomated safety check: PassMIT

Similar skills

  • Dynamo Dotnet Expert

    DynamoDS/Dynamo

    Write and review C/.NET code in Dynamo following Dynamo coding standards, modern C patterns, and repo conventions.

    2k GitHub stars~922 tokensUpdated today
    DevelopmentAuto-check passed
  • Okojo Test262

    akeit0/okojo

    Run and continue Okojo Test262 compliance work. An agent skill from akeit0/okojo.

    160 GitHub stars~742 tokensUpdated 17 days ago
    DevelopmentAuto-check passed
  • Dotnet10 Features

    runceel/ReactiveProperty

    Reference for the .NET 10 / C 14 features that are relevant to the ReactiveProperty repository.

    944 GitHub stars~2.7k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Refactor Analysis

    Samsung/TizenFX

    Automatically scans the TizenFX codebase on a rotating schedule to discover .NET 8 / C 12+ refactoring targets and register them as GitHub Issues.

    214 GitHub stars~2.6k tokensUpdated today
    DevelopmentAuto-check passed
  • Official

    Refactors C# and .NET code without changing behavior, using binding-aware edits plus a build and tests, and separating out or declining anything that alters behavior.

    5.6k GitHub starsUsed in 1 repo~3.1k tokens
    DevelopmentAuto-check passed
  • Msbuild

    dotnet/skills

    Official

    Use only for MSBuild failure investigation, build-performance analysis, or review of existing build XML/extension contracts.

    5.6k GitHub starsUsed in 1 repo~2.2k tokens
    DevelopmentAuto-check passed

More from dotnet/roslynator

  • Add Analyzer

    dotnet/roslynator

    Official

    A skill your agent uses when adding a new RCS diagnostic in roslynator (RCS0 formatting, RCS1 general, RCS9 code-analysis), wiring roslynator EditorConfig options, or when docs say CHANGELOG.md…

    3.5k GitHub stars~1.3k tokensUpdated 4 days ago
    Auto-check passed
  • Official

    A skill your agent uses when adding a Roslynator code fix for C compiler error CS or RCF, editing Diagnostics.xml or CodeFixes.xml, or when compiler-diagnostic-fixes-testing.md shows…

    3.5k GitHub stars~1k tokensUpdated 4 days ago
    Auto-check passed
  • Add Refactoring

    dotnet/roslynator

    Official

    A skill your agent uses when adding a new RR refactoring in roslynator, editing Refactorings.xml, registering in RefactoringContext, or when refactorings-testing.md shows XunitRefactoringVerifier —…

    3.5k GitHub stars~946 tokensUpdated 4 days ago
    Auto-check passed
  • Fix Analyzer Bug

    dotnet/roslynator

    Official

    A skill your agent uses when fixing a Roslynator analyzer false positive or false negative, RCS, RR, or CS/RCF regression, incorrect diagnostic reporting, or bug report citing a specific rule id —…

    3.5k GitHub stars~1.1k tokensUpdated 4 days ago
    Auto-check passed
  • Release Roslynator

    dotnet/roslynator

    Official

    A skill your agent uses when shipping a roslynator release, rolling CHANGELOG.md [Unreleased], updating the VS Code extension changelog, creating a GitHub v release, or optionally tagging cli-v.

    3.5k GitHub stars~1k tokensUpdated 4 days ago
    Auto-check passed

Works with

Categories

Questions about Deprecate Analyzer Or Refactoring

What does Deprecate Analyzer Or Refactoring do?

A skill your agent uses when obsoleting or retiring RCS, RR, or RCF in roslynator, replacing an analyzer with another id, or when tempted to use IsObsolete on an Analyzer entry — analyzers use…. Deprecate Analyzer Or Refactoring is an agent skill from dotnet/roslynator, published by the product's own GitHub organization. Use when obsoleting or retiring RCS, RR, or RCF in roslynator, replacing an analyzer with another id, or when tempted to use IsObsolete on an Analyzer entry — analyzers use Status Obsolete, not IsObsolete.

When should I use Deprecate Analyzer Or Refactoring?

Deprecate Analyzer Or Refactoring fits situations like: RCF in roslynator; replacing an analyzer with another id; tempted to use IsObsolete on an Analyzer entry — analyzers use Status Obsolete.

How do I install Deprecate Analyzer Or Refactoring in Claude Code?

Run `npx skills add dotnet/roslynator --skill deprecate-analyzer-or-refactoring -a claude-code`. Or copy the skill folder (.claude/skills/deprecate-analyzer-or-refactoring in dotnet/roslynator) into .claude/skills/deprecate-analyzer-or-refactoring in your project. Claude Code loads it when a task matches its description.

How do I install Deprecate Analyzer Or Refactoring in Codex?

Run `npx skills add dotnet/roslynator --skill deprecate-analyzer-or-refactoring -a codex`. Or copy the skill folder (.claude/skills/deprecate-analyzer-or-refactoring in dotnet/roslynator) into .agents/skills/deprecate-analyzer-or-refactoring in your project. Codex loads it when a task matches its description.

Can I use Deprecate Analyzer Or Refactoring in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dotnet/roslynator --skill deprecate-analyzer-or-refactoring -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/deprecate-analyzer-or-refactoring, .gemini/skills/deprecate-analyzer-or-refactoring, .github/skills/deprecate-analyzer-or-refactoring and .opencode/skills/deprecate-analyzer-or-refactoring in your project.

What does Deprecate Analyzer Or Refactoring need to run?

Going by SKILL.md and its folder, Deprecate Analyzer Or Refactoring needs the command-line tools its instructions call (pwsh and dotnet).

Does Deprecate Analyzer Or Refactoring access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Deprecate Analyzer Or Refactoring safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Deprecate Analyzer Or Refactoring use?

Deprecate Analyzer Or Refactoring has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Deprecate Analyzer Or Refactoring use?

About 511 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 367 tokens, read only when the agent opens those files.

What are the alternatives to Deprecate Analyzer Or Refactoring?

Skills that share tags, products or a category with Deprecate Analyzer Or Refactoring: Dynamo Dotnet Expert (DynamoDS/Dynamo, 2k stars), Okojo Test262 (akeit0/okojo, 160 stars), Dotnet10 Features (runceel/ReactiveProperty, 944 stars) and Refactor Analysis (Samsung/TizenFX, 214 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Deprecate Analyzer Or Refactoring?

dotnet (a GitHub organization, an official publisher) maintains it in dotnet/roslynator, which has 3,485 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 4, 2026.

Source: dotnet/roslynator on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.