Refactoring Skill Improve code structure and quality while preserving behavior. Name han-core:refactor - Restructure code to improve quality without changing behavior Synopsis Core Principle Tests are your safety net. Never refactor without tests. The Refactoring Cycle 1. Ensure tests exist and pass 2. Make ONE small change 3. Run tests (must still pass) 4. Commit (keep changes isolated) 5. Repeat Each step must be reversible. If tests fail, revert and try smaller change. Pre-Refactoring Checklist STOP if any of these are false: - [ ] Tests exist for code being refactored - [ ] All tests curr…