Files
ca-marketplace-scraper/.claude/skills/tdd/refactoring.md
Dmytro Stanchiev 7cf21546e2 chore: ai agent config
Signed-off-by: Dmytro Stanchiev <git@dmytros.dev>
2026-04-21 20:37:55 -04:00

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