Architectural Refactoring & Depth Optimizer
Identifies architectural friction and refactors shallow modules into deep ones to improve testability and AI-navigability.
This skill empowers developers to evolve their codebase by identifying 'shallow' modules—where the interface is as complex as the implementation—and proposing 'deepening' opportunities. By focusing on principles like leverage, locality, and architectural seams, it helps consolidate tightly-coupled code into high-leverage modules. The skill integrates deeply with your project's domain glossary (CONTEXT.md) and Architecture Decision Records (ADRs), ensuring that refactoring suggestions are both context-aware and aligned with existing design constraints. It moves beyond simple linting to provide a structured 'grilling loop' for refining complex system designs.