dotnet/skills
csharp-refactoring
Safely refactors C#/.NET code without changing behavior. USE FOR any request to refactor, rename, move, extract, inline, merge, consolidate, deduplicate, split, or modernize C# code, including partial/generated declarations, wrappers, public APIs, serialization/reflection/configuration names, friend assemblies, conditional compilation, and multi-targeted projects. Also use when a request calls a feature, bug fix, package/framework upgrade, or public nullability change a refactor and the behavior-changing part must be separated or declined. DO NOT USE FOR ordinary feature or bug fixes not presented as refactoring; standalone upgrades after reclassification (use dotnet-upgrade); adding tests; or formatting-only work.
Installation
npx skills add https://github.com/dotnet/skills
Similar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Refactoring using Extract Methods in Java Language
9.3K installsRefactoring using Remove Parameter in Java Language
8.9K installsGolang refactoring — safe, at-scale restructuring of existing Go code: a coverage-adaptive safe…
263 installsAudit and fix visual hierarchy, spacing, color, and depth in web UIs. Use when the user mention…
75 installsApply named refactoring transformations to improve code structure without changing behavior. Us…
46 installsRefactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component --…
3.7K installsAlso in this package
Other skills from dotnet/skills · top by installs.
npx skills add dotnet/skills
More details
Agent compatibility
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Repository health
main