Safe refactoring of legacy code using test-first techniques, dependency breaking, and proven patterns. Covers characterization tests, Golden Master, seams, Fowler's catalog, and anti-pattern remediation. Use when refactoring, fixing legacy bugs, modernizing code, or dealing with "big ball of mud", "spaghetti code", or "god class".