What problem does it solve? Codebases accumulate structural debt over time, and unstructured refactoring often breaks behavior silently. This Skill enforces a disciplined, test-guarded refactoring process so every structural change is verified, committed, and reversible. ## Core Features & Use Cases - Test-First Safety Gate: Requires a fully passing test suite and a clean commit before any structural change begins. - One-Step-at-a-Time Workflow: Each refactoring (extract, rename, move, inline) is followed by a test run and an isolated commit, never combining multiple changes. - Concrete Patterns: Provides guidance for extracting modules from oversized files, extracting traits, reducing public API surface, and separating architectural layers. - Use Case: A Rust file like tools.rs grows past 500 lines. Use this Skill to extract it into a tools/ directory module step by step, running the test suite after each move so nothing breaks. ## Quick Start Refactor this module by extracting its helper functions into a separate file, running the tests after each step and committing each structural change individually.