Files
junhong_cmp_fiber/.agents/skills/tdd/refactoring.md
break cf36f1447f
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 6m24s
尝试某个skills
2026-06-16 18:58:55 +09:00

11 lines
387 B
Markdown

# 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