The Surgical Code Refactor skill empowers Claude to perform precise, incremental improvements to existing codebases by identifying and resolving common architectural issues. Rather than suggesting risky, large-scale rewrites, this skill focuses on the 'evolution, not revolution' approach—extracting functions, breaking down god objects, eliminating magic numbers, and simplifying nested logic. It provides a structured framework for tackling technical debt, enhancing type safety, and applying proven design patterns, ensuring that code remains clean, testable, and easy to extend as project requirements change.
Key Features
01Identification and elimination of common code smells like Long Method and Primitive Obsession
02Enhancement of type safety through domain-specific types and interfaces
03Simplification of 'arrow code' using guard clauses and early returns
04Automated extraction of focused, reusable functions from complex logic
05Application of design patterns like Strategy and Builder for cleaner architecture
065 GitHub stars