Architectural Refactor & Deepening
Analyzes codebase structure to identify shallow modules and proposes high-leverage architectural refactors for improved testability and AI-navigability.
The Improve Architecture skill surfaces architectural friction by identifying 'shallow' modules that add complexity without providing significant behavior. It calculates objective scores for Depth, Leverage, and Locality to propose 'deepening' opportunities—refactors that hide large implementation machinery behind small, stable interfaces. By consolidating logic and enforcing strict seam discipline, it improves long-term maintainability and makes it significantly easier for AI agents to reason about the system without traversing unnecessary indirection.
Key Features
01Automated detection of shallow modules and redundant indirection
02Structured YAML proposal payloads for programmatic consumption by refactoring tools
03Dependency classification to determine optimal testing and seam strategies
04Scored architectural proposals based on depth, leverage, and locality metrics
05Context-aware naming using domain glossaries and existing Architecture Decision Records (ADRs)
0675 GitHub stars
Use Cases
01Consolidating fragmented logic split across multiple shallow wrappers into high-leverage modules
02Designing stable ports and adapters for external dependencies to improve system testability
03Conducting pre-refactor audits to identify high-impact areas for structural improvement