corridorkey-mrp-mlx/.agents/skills/tdd/refactoring.md
cmoyates 62645a2e93
chore: add TDD skill definitions
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 09:45:43 -03:30

387 B

Refactor Candidates

After TDD cycle, look for:

  • Duplication → Extract function/class
  • Long methods → Break into private helpers (keep tests on public interface)
  • Shallow modules → Combine or deepen
  • Feature envy → Move logic to where data lives
  • Primitive obsession → Introduce value objects
  • Existing code the new code reveals as problematic