new skills according to mattpocock

This commit is contained in:
2026-04-25 14:52:24 -03:00
parent f8135d0e1b
commit fcaec5ea46
17 changed files with 964 additions and 0 deletions

10
skills/tdd/refactoring.md Normal file
View File

@@ -0,0 +1,10 @@
# 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