What problem does it solve? Refactoring often drifts into unintended feature changes, broken interfaces, or schema regressions. This Skill enforces a disciplined workflow that improves internal structure while keeping approved behavior, public interfaces, data compatibility, and outputs exactly as they were. ## Core Features & Use Cases - Baseline Contract Locking: Fixes normal, failure, and boundary behavior plus API, schema, output, and performance baselines before any change. - Guided Smell Audit and Refactor Modes: Follows the sequence baseline-contract, smell-audit, refactor, regression-validate, and report, with a detailed checklist in references for duplication, long units, deep conditionals, and tight coupling. - Regression Evidence Reporting: Produces a structured report separating structural improvements from behavior changes, with preservation evidence and remaining risks. - Use Case: When simplifying a tangled module or an overgrown document, use this Skill to extract functions, merge duplication, and rename unclear units while proving through tests and golden outputs that nothing observable changed. ## Quick Start Refactor this module to reduce duplication and simplify its conditionals while preserving all existing behavior, interfaces, and outputs, then show the regression evidence.