What problem does it solve? Legacy or hastily written C# code often accumulates code smells, violates SOLID principles, and uses outdated syntax, making it hard to maintain. This Skill systematically analyzes C# files and applies targeted refactorings while preserving existing behavior. ## Core Features & Use Cases - SOLID Refactoring: Detects violations of SRP, OCP, LSP, ISP, and DIP, then applies fixes such as extracting classes, splitting interfaces, and introducing dependency injection. - Design Pattern Introduction: Maps common code smells to patterns like Builder, Strategy, Facade, Decorator, and Chain of Responsibility. - Modern C# Syntax Upgrades: Reads the TargetFramework from the .csproj file and only suggests features supported by that version, such as primary constructors, collection expressions, switch expressions, and record types. - Use Case: Point the Skill at a legacy service class with long methods and switch statements; it extracts focused methods, replaces conditionals with a Strategy pattern, and modernizes syntax, then reports every change with before/after code. ## Quick Start Ask the assistant to refactor the file OrderService.cs using all refactoring categories and report the applied changes.