/rider-skills:refactoring-codefrom rider-skills
Performs semantic refactorings in Rider/ReSharper (.NET, C++, Unity, Unreal Engine, XAML, Razor) — rename types/members/namespaces, change method signatures, move types, delete dead code, extract interfaces/base classes/methods. Rewrites all references including nameof, XAML bindings, and C++/Unreal refs in one call.
Ships in rider-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Rider/ReSharper semantic refactorings on a solution open in Rider. Each tool rewrites every reference — nameof, <see cref>, XAML/Razor bindings, C++/Unreal — in one call. A grep-and-replace looks done but silently misses these, so prefer the tool over a text edit.
One MCP tool, execute_tool, on the IDE's MCP server (your client can show it as mcp__<server>__execute_tool). The first token of command is the tool name, then --flag value pairs. Always pass rootFolder, the directory that holds the .sln (usually your working directory); without it the IDE can refuse the call with Unable to determine the target project.
execute_tool(rootFolder="/path/to/solution", command="rename_refactoring --filePath API/Services/OrderService.cs --symbolName OrderService --newName OrderProcessor")
If your client calls tools from code, take the function from the tool list in the first cell. Do not list, print or filter the tools:
const ide = tools[ALL_TOOLS.find(t => t.name.endsWith("__execute_tool")).name];
const r = await ide({rootFolder: "/path/to/solution", command: "safe_delete --filePath src/A.cs --symbolName Foo"});
A refactoring on a large solution can run for 1 to 3 minutes. If a code cell returns Script running with cell ID <n>, wait for it once, with a long wait: wait with yield_time_ms: 180000. Each short poll is another turn. Several independent calls (for example one safe_delete per symbol) can go in one cell, awaited one after another.
| Refactor | Tool | Required flags |
|---|---|---|
| Rename a type or member + all usages | rename_refactoring | --filePath --symbolName --newName |
| Rename a namespace | move_type_to_namespace, once per type in it | --filePath --typeName --targetNamespace |
| Change a method signature (add/remove/reorder params) | change_api_signature | --filePath --methodName --parameters |
| Move a type to another namespace | move_type_to_namespace | --filePath --typeName --targetNamespace |
| Sync namespaces to folders | reorganize_namespaces | --scope |
| Delete a symbol only if unused | safe_delete | --filePath --symbolName |
| Extract an interface | extract_interface | --filePath --typeName --interfaceName --members |
| Extract a base class | extract_base_class | --filePath --typeName --baseClassName --members |
| Extract a method (C# only) | extract_method | --filePath --startLine --endLine --methodName |
--filePath is the file that declares the symbol, never . or a folder. --symbolName/--typeName take Name or Type.Member, written plainly: no <T>, no (args).change_api_signature that removes a parameter, to read its warnings.change_api_signature: pass a bare --methodName and --declaringType <FullyQualifiedType> on the first call. --parameters is a single-quoted JSON array of objects, the complete new list in order: '[{"name":"count"},{"name":"id"}]' swaps two; {"name":"limit","type":"int","defaultValue":"10"} adds one.rename_refactoring renames types and members only. For a namespace, move each type in it; for a parameter, use a text edit, never change_api_signature.safe_delete: cannot_delete_safely names the file that holds the use. A use only in a comment or <see cref> is not a code use: remove it and retry. A use by another symbol you were asked to delete means delete that one first. It cannot pick an overload: check that deleted names the one you meant.X and move it to Y") is one tool call per step, in sequence.reference/tools/<tool>.md (index: reference/tools.md). Read it once before the first call of extract_interface, extract_base_class, extract_method, a namespace rename or a parameter rename, and otherwise only when a call is refused. There is no --describe.execute_tool is unavailable without having made a call. Missing required parameters, Tool '<x>' not found, conflicts and ambiguous are fixable input mistakes: correct the argument and retry once. If the tool cannot do the change, finish that part with a text edit and say so."applied":true. A preview, ok:false, a conflict or an error wrote nothing.touched/affects/files are the confirmation: do not re-read files, grep or diff to check it. Surface a count of 1 (declaration only, no callers). Exception: when the request covers several places (a namespace, a list of symbols, "all X"), run one search for the old name(s) after the last call.dotnet build <solution> -v q -clp:ErrorsOnly. Fix errors from your change and build again; if the whole solution fails for an unrelated reason, build the projects you touched.The operation timed out does not mean nothing changed: the IDE can still finish. Before you call again or edit by hand, check once (one search for the new name, or for the deleted symbol). Never run the same refactoring twice. Flags are camelCase; pass real values or omit optional ones, and copy paths and names verbatim.A non-empty conflicts list means no files changed (except reorganize_namespaces, whose conflicts are advisory). An ambiguous/candidates list means the name matched several symbols: narrow it (Type.Member, or the current overload types). What to do per conflict kind and the known gaps are in reference/conflicts.md; read it only when a response contains conflicts or an error.
metadata.json (opens in a new tab)reference/conflicts.md (opens in a new tab)reference/tools.md (opens in a new tab)reference/tools/change_api_signature.md (opens in a new tab)reference/tools/extract_base_class.md (opens in a new tab)reference/tools/extract_interface.md (opens in a new tab)reference/tools/extract_method.md (opens in a new tab)reference/tools/move_type_to_namespace.md (opens in a new tab)reference/tools/rename_refactoring.md (opens in a new tab)reference/tools/reorganize_namespaces.md (opens in a new tab)reference/tools/safe_delete.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jetbrains/rider-skills --plugin rider-skills6 skills in this plugin
/debugging-codeUse for debugger-driven runtime root-cause analysis in Rider-supported solutions and projects, including .NET/C#, F#, VB, C++, Unity, Unreal Engine, and other GameDev or mixed-language projects. Trigger when runtime state or control-flow evidence is needed — actual values, branch taken, call order, thread context, whether execution reaches a chosen line — and cannot be derived confidently from source or logs; when pinning the relevant path would otherwise mean reading many files or tracing a deep call chain; or on an explicit request to debug, set breakpoints, step, or inspect runtime values. Do not use for compile-time or syntax errors, source-obvious bugs, failures already pinpointed by logs/tests, or code merely named debug/Debugger./finding-testsLocates existing tests for a given C# class and method using the test coverage data supplied by IDE. Triggers ONLY for C# production code (`.cs` files in a Rider .NET solution) when generating new tests, adding test coverage, finding existing tests, or when the user mentions uncovered lines, test files, or test suites. Must be used before writing or editing C# test code when finding already existing tests is necessary. Do NOT invoke for non-C# languages — the underlying tool only understands C# symbols and will not return useful results./ue-code-authoringUse when writing or modifying Unreal Engine C++ — classes, actors, components, subsystems, interfaces, ability-system (GAS) code, module dependencies, reflected UPROPERTY/UFUNCTION API, native gameplay tags, and testable gameplay behavior — in a project open in JetBrains Rider. Source changes go through Read/Grep/Glob/Edit/Write; Rider supplies symbol search, code analysis, formatting, and builds through its MCP execute_tool. Do not use for Blueprint-only tasks or editor automation with no C++ authoring./ue-live-debuggingUse when debugging UE C++ crashes, runtime bugs, or unexpected behavior with Rider MCP available. Value over bash/grep: analyze_calls traces C++ call hierarchies (ReSharper backend); get_file_problems surfaces IDE-detected issues; get_symbol_info confirms API contracts; xdebug_set_breakpoints sets live breakpoints; ue_execute_python queries live PIE state. DO NOT TRIGGER for: pure build errors with no runtime component, net-new feature work, Blueprint-only work. When Rider MCP is unavailable, runs in reduced mode — Bash/Grep only, IDE diagnostics skipped./ue-test-authoringUse when writing or modifying Unreal Engine automated tests — Automation (IMPLEMENT_SIMPLE_AUTOMATION_TEST, DEFINE_SPEC), CQTest, Functional, Gauntlet, LowLevel/Catch2 — along with test modules and the Build.cs dependencies they need, in a project open in JetBrains Rider. Test source goes through Read/Grep/Glob/Edit/Write; Rider supplies symbol lookup for the API under test, registration and include diagnostics, formatting, and builds through its MCP tools. Do not use for Blueprint-only testing, or for diagnosing an existing test failure that needs no test code change.Other plugins' skills for the same job