About
This skill provides a structured framework for the 'Refactor' phase of Test-Driven Development (TDD), ensuring code quality is improved through a safety-first approach. It guides developers through a 'commit-before-refactor' protocol to create a reliable recovery point and provides a clear prioritization matrix for identifying code smells like magic numbers or deep nesting. By focusing on semantic DRY principles and the elimination of speculative code, this skill helps maintain clean, professional codebases while preserving the integrity of existing functionality.