AI Code Refactoring
Overview
AI-generated code has a unique failure mode: it looks like it works, but has hidden logic errors (75% higher than human code), no design system, and inconsistent structure. Refactoring it without a safety net is "disarming a bomb in the dark."
Core principle: Audit first, test second, refactor third. Never skip steps.
The Iron Law
NO REFACTORING WITHOUT CHARACTERIZATION TESTS FIRST
If you haven't written tests that capture current behavior,
[Description truncada. Veja o README completo no GitHub.]