/dotnet:dotnet-refactoringfrom dotnet
Guides safe refactoring of C#/.NET code beyond what a green build checks. Covers runtime name references, serialization, configuration binding, reflection, and cross-boundary renames.
Ships in dotnet. 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.
None: SKILL.md is the whole skill.
A refactor changes structure, not behavior. The compiler finds every reference you missed, and the tests find the behavior they cover. This skill is about the rest: changes that compile, pass, and still break something.
Apply the rules that match the change. Renaming a private member in one file needs none of them.
A name can be used by code the compiler does not see. Before renaming or moving a type, member or parameter, search for its name as text and check whether any of these reads it:
dynamic, and data binding paths in markup, such as XAML {Binding Name}When one does, change every place in the repository that names it, so the code stays consistent. Then run something that goes through that path: a round-trip test, a configuration load, the page that binds it. If nothing covers it, say so in your report instead of calling the rename safe.
Some of these names leave the repository: a serialized member that is stored or sent over the wire, a table or column name from a database mapping, a configuration key that an environment can also set, a route or another public contract. Whether anything outside already depends on such a name is not visible in the code, so your instructions decide:
[JsonPropertyName("oldName")], or migrate the stored data and settings as part of the change. Say in your report which one you did.A missed reference fails the build. An extra edit does not: after a find-and-replace, a string literal, a comment that documents a wire format, a log message that a test or a dashboard matches, and an unrelated overload with the same name all still compile. Change the references the compiler or a language server reports, and treat every other textual match as a separate decision.
B repeats logic that A owns, make B call A. Do not move ownership because either direction compiles.partial declaration of a type before changing it. They can be in other files and other folders.*.g.cs or anything under obj/: the next build overwrites them without an error. Change what the generator reads.Code under #if, in a multi-targeted project, or in a file that only some target frameworks compile is not checked by a build of one target.
dotnet build -f <target framework> when they say nothing.When a request combines restructuring with a change in behavior, do both, as separate steps, and say in your report which change is which. Never edit a test only to make it pass after a refactor: a test that fails after a structural change is reporting a behavior change.
What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/cli-e2e-testingUse when creating, modifying, debugging, or reviewing end-to-end tests for any CLI tool that must run in a real terminal, accept keyboard input, and expose observable terminal output. Prefer Hex1b terminal automation for PTY/headless terminal flows./dotnet-livecharts2LiveCharts2 development guide — installation, XAML source generator integration, theme config, gotchas, and sample index with exact repo file paths. Use when implementing any LiveCharts2 chart (line, area, bar, pie, gauge, heatmap, scatter, polar, financial). Covers all platforms (WinUI, Uno, Avalonia, MAUI, WPF, Blazor, WinForms, Eto)./dotnet-modern-csharp-editorconfignpx claudepluginhub vincenth-net/dotnet-agentic-engineering --plugin dotnetOther plugins' skills for the same job