What problem does it solve? Codebases accumulate technical debt through long methods, duplicated logic, tight coupling, and architecture violations, but refactoring without discipline risks breaking observable behavior. This Skill provides a structured method for identifying concrete code smells and executing safe, incremental refactoring while keeping all behavioral verification intact. ## Core Features & Use Cases - Smell Detection Catalog: Identify ten concrete smells including long methods, large classes, duplicated logic, tight coupling, primitive obsession, and architecture violations, each with clear indicators. - Behavior-Preserving Implementation: Apply one coherent transformation at a time while keeping protected verification artifacts frozen, running targeted tests and stack formatters after each step. - SOLID Review Method: Evaluate candidates against Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion principles, with a deletion test for shallow modules. - Use Case: When implementing an approved PURE_REFACTOR contract in a TypeScript, .NET, or Python codebase, use this Skill to review structural findings, execute incremental changes, and route any behavioral test conflicts back to the orchestrator instead of silently reclassifying them. ## Quick Start Ask the AI to review the target module for code smells and propose a safe incremental refactoring plan that preserves all existing test behavior.