refactor

Official

Safely refactor C# code, improve design.

AuthorCyberdineDevelopment
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Manual refactoring of C# code is risky and can introduce subtle bugs or break compilation. This skill performs safe, semantic-aware refactoring operations like renaming, extracting, and moving code, ensuring your codebase remains compilable and functional throughout the process.

Core Features & Use Cases

  • Semantic Renaming: Renames types, methods, properties, and variables across the entire solution, updating all references accurately.
  • Code Extraction: Extract methods, classes, or interfaces from existing code, improving modularity and testability.
  • Code Simplification: Identify and simplify complex methods, reducing cyclomatic complexity and improving readability.
  • Use Case: You need to rename the Product class to ProductEntity across your entire solution. Instead of manual find-and-replace, use refactor to perform a semantic rename that updates all references, including file names and XML docs, ensuring no broken code.

Quick Start

Use the refactor skill to rename the C# type "Product" to "ProductEntity" across the entire solution.

Dependency Matrix

Required Modules

dotnet

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: refactor
Download link: https://github.com/CyberdineDevelopment/claude-tools/archive/main.zip#refactor

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository