Official agent skill

Refactoring Code

by JetBrains in JetBrains/skills

A skill your agent uses when semantic refactoring is needed in Rider-supported solutions and projects, including .NET/C, F, VB, C++, Unity, Unreal Engine, XAML, Razor, and other GameDev or…

OfficialNo licenceAuto-check passedDevelopment

Install Refactoring Code

skills CLI
$ npx skills add JetBrains/skills --skill refactoring-code -a claude-code

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

GitHub CLI
$ gh skill install JetBrains/skills refactoring-code --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/JetBrains/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/refactoring-code .claude/skills/refactoring-code && 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
refactoring-code
GitHub stars
363
Used in
1 other repo
Token cost
~1.9k tokens
SKILL.md length
937 words
Files
10
Skills in repo
79
Repo updated
First seen
Licence
None found

At a glance

A skill your agent uses when semantic refactoring is needed in Rider-supported solutions and projects, including .NET/C, F, VB, C++, Unity, Unreal Engine, XAML, Razor, and other GameDev or…

  • Works in 5 steps: Prefer the MCP tool. It resolves… → Trust the success signal. When a tool… → Do not retry blindly. Adjust the… → …
  • Semantic refactoring is needed in Rider-supported solutions and projects
  • SKILL.md covers Invoking a tool, Shared rules, Preview before applying and Conflicts and ambiguity, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Refactoring Code is an agent skill from JetBrains/skills, published by the product's own GitHub organization. Use when semantic refactoring is needed in Rider-supported solutions and projects, including .NET/C, F, VB, C++, Unity, Unreal Engine, XAML, Razor, and other GameDev or mixed-language projects. Trigger when edits must update declarations and usages across IDE-resolved references — rename symbols, move types or namespaces, safe-delete unused code, extract interface/base class/method, change signatures, or reorganize namespaces. Do not use for file-only moves, config keys, strings, comments, prose-only edits…

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files (for example `reference/tools.md`, `reference/tools/change_api_signature.md` and `reference/tools/extract_base_class.md`).

It sits in Development, covering Refactoring and Game development. It works with C++, C#, .NET and Unreal Engine. The repository describes itself as: Curated agent skills collection verified by JetBrains.

When your agent uses it

  • Semantic refactoring is needed in Rider-supported solutions and projects
  • Including .NET/C
  • Mixed-language projects
  • Edits must update declarations and usages across IDE-resolved references — rename symbols

Example prompts

  • “/refactoring-code”

Requirements

  • Pre-approved tools (allowed-tools): execute_tool

Workflow steps

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

  1. Prefer the MCP tool. It resolves references semantically across the solution; a text edit cannot. On any error you cannot fix by adjusting…
  2. Trust the success signal. When a tool reports success, do not re-read the mutated files to verify. When a tool reports a count of…
  3. Do not retry blindly. Adjust the arguments (query, name, file path, namespace, member selection) between calls; a second identical call…
  4. Argument hygiene. Parameter names are camelCase — hyphenated variants like --new-name are rejected. Pass real values or omit optional…
  5. Library / external symbols cannot be refactored — the change must be made upstream. Confirm with the user.

What it can do on your machine

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

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • execute_tool

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    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

Refactoring Code loads about 1.9k tokens when it runs. Until then it costs about 150 tokens; SKILL.md has 937 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~150
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

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

Without a licence we can't republish the file, so here is its outline and opening line. It has 937 words (~1,884 tokens).

“Rider/ReSharper-driven semantic refactorings across solutions opened in Rider. Each tool resolves the target through the IDE's reference index and rewrites every affected site — language-aware usages such as nameof, XML-doc , XAML x:Name`, Razor, C++/Unreal references, and ordinary references that…”

— opening of SKILL.md by JetBrains
name
refactoring-code
allowed-tools
execute_tool
metadata.author
JetBrains

Read the full SKILL.md on GitHub

Files

SKILL.md and 9 other files in refactoring-code of JetBrains/skills.

  • SKILL.md
  • reference/tools.md
  • reference/tools/change_api_signature.md
  • reference/tools/extract_base_class.md
  • reference/tools/extract_interface.md
  • reference/tools/extract_method.md
  • reference/tools/move_type_to_namespace.md
  • reference/tools/rename_refactoring.md
  • reference/tools/reorganize_namespaces.md
  • reference/tools/safe_delete.md

Open the folder on GitHubat commit e0f258b

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in JetBrains/skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Refactoring Code 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.

Refactoring Code compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Refactoring Code this skillJetBrains/skills3631 repos~1.9kAutomated safety check: PassNone
Add Refactoringdotnet/roslynator3.5k—~946Automated safety check: PassCustom licence
Dynamo Dotnet ExpertDynamoDS/Dynamo2k—~909Automated safety check: PassApache-2.0
Sokol Netelix22/Sokol.NET154—~2.8kAutomated safety check: PassMIT
Deprecate Analyzer Or Refactoringdotnet/roslynator3.5k—~511Automated safety check: PassCustom licence
Okojo Test262akeit0/okojo160—~742Automated safety check: PassMIT

Similar skills

  • 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 3 days ago
    DevelopmentAuto-check passed
  • 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~909 tokensUpdated today
    DevelopmentAuto-check passed
  • Sokol Net

    elix22/Sokol.NET

    Sokol.NET framework development — use for ANY work in this repo: creating or debugging examples, building/running for desktop/Android/iOS/Web, writing or compiling shaders, adding a new C/C++…

    154 GitHub stars~2.8k tokensUpdated yesterday
    Game DevelopmentAuto-check passed
  • Official

    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…

    3.5k GitHub stars~511 tokensUpdated 3 days ago
    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 16 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

More from JetBrains/skills

All 79 skills in this repo
  • Playwright

    JetBrains/skills

    Official

    A skill your agent uses when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging) via playwright-cli…

    363 GitHub starsUsed in 11 repos~986 tokens
    Auto-check passed
  • Skill Creator

    JetBrains/skills

    Official

    Guide for creating effective skills. An agent skill from JetBrains/skills.

    363 GitHub starsUsed in 120 repos~4.7k tokens
    Auto-check passed
  • Speech

    JetBrains/skills

    Official

    A skill your agent uses when the user asks for text-to-speech narration or voiceover, accessibility reads, audio prompts, or batch speech generation via the OpenAI Audio API; run the bundled CLI…

    363 GitHub starsUsed in 4 repos~1.9k tokens
    Auto-check passed
  • Transcribe

    JetBrains/skills

    Official

    Transcribe audio files to text with optional diarization and known-speaker hints.

    363 GitHub starsUsed in 4 repos~776 tokens
    Auto-check passed
  • Imagegen

    JetBrains/skills

    Official

    A skill your agent uses when the user asks to generate or edit images via the OpenAI Image API (for example: generate image, edit/inpaint/mask, background removal or replacement, transparent…

    363 GitHub starsUsed in 3 repos~2.5k tokens
    Auto-check passed
  • Screenshot

    JetBrains/skills

    Official

    A skill your agent uses when the user explicitly asks for a desktop or system screenshot (full screen, specific app or window, or a pixel region), or when tool-specific capture capabilities are…

    363 GitHub starsUsed in 6 repos~2k tokens
    Auto-check passed

Questions about Refactoring Code

What does Refactoring Code do?

A skill your agent uses when semantic refactoring is needed in Rider-supported solutions and projects, including .NET/C, F, VB, C++, Unity, Unreal Engine, XAML, Razor, and other GameDev or…. Refactoring Code is an agent skill from JetBrains/skills, published by the product's own GitHub organization.NET/C, F, VB, C++, Unity, Unreal Engine, XAML, Razor, and other GameDev or mixed-language projects.

When should I use Refactoring Code?

Refactoring Code fits situations like: semantic refactoring is needed in Rider-supported solutions and projects; including .NET/C; mixed-language projects; edits must update declarations and usages across IDE-resolved references — rename symbols.

How do I install Refactoring Code in Claude Code?

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

How do I install Refactoring Code in Codex?

Run `npx skills add JetBrains/skills --skill refactoring-code -a codex`. Or copy the skill folder (refactoring-code in JetBrains/skills) into .agents/skills/refactoring-code in your project. Codex loads it when a task matches its description.

Can I use Refactoring Code 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 JetBrains/skills --skill refactoring-code -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/refactoring-code, .gemini/skills/refactoring-code, .github/skills/refactoring-code and .opencode/skills/refactoring-code in your project.

What does Refactoring Code need to run?

SKILL.md names no scripts, command-line tools or credentials: Refactoring Code is instructions for the agent only. Its frontmatter pre-approves these tools: execute_tool.

Does Refactoring Code 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 Refactoring Code 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 Refactoring Code use?

No licence was found for Refactoring Code or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Refactoring Code use?

About 1.9k tokens (SKILL.md is roughly 7.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Refactoring Code?

Skills that share tags, products or a category with Refactoring Code: Add Refactoring (dotnet/roslynator, 3.5k stars), Dynamo Dotnet Expert (DynamoDS/Dynamo, 2k stars), Sokol Net (elix22/Sokol.NET, 154 stars) and Deprecate Analyzer Or Refactoring (dotnet/roslynator, 3.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Refactoring Code?

JetBrains (a GitHub organization, an official publisher) maintains it in JetBrains/skills, which has 363 GitHub stars. The repository holds 79 skills in this directory. The repository was last updated on June 29, 2026.

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