reviewing-code-modularity
Installation
SKILL.md
Reviewing Code Modularity
Goal
Improve code structure by reducing complexity.
Prefer deep modules with small, stable public APIs that hide implementation details, point dependencies in a clear direction, and stay testable at their boundaries.
Avoid architecture cosplay. Do not add layers, interfaces, factories, dependency injection, repositories, adapters, or design patterns unless they reduce real complexity in the current codebase.
Core rule
Before changing structure, inspect the existing code.
Preserve local conventions unless they are clearly causing complexity. Use the smallest restructuring that makes the code easier to understand, change, and test.
Do not force every project into Clean Architecture, hexagonal architecture, DDD, SOLID-heavy structure, or enterprise layering.