Architectural Deepening & Refactoring
Analyzes codebase architecture to identify shallow modules and propose structural improvements for better testability and AI navigability.
This skill helps developers evolve their codebase by identifying 'shallow' modules—where interfaces are nearly as complex as their implementations—and proposing 'deepening' opportunities. It uses project-specific domain language and existing Architecture Decision Records (ADRs) to ensure recommendations are context-aware. By applying the 'deletion test' and analyzing real-time test coverage, it surfaces architectural friction and generates visual reports with Mermaid diagrams, enabling teams to consolidate tightly-coupled logic into high-leverage modules with clear seams and improved locality.
Key Features
01Identifies shallow modules and architectural friction points using organic codebase exploration.
02Facilitates an iterative 'grilling loop' to refine interface designs before implementation.
03Generates interactive HTML reports with visual before-and-after Mermaid diagrams.
04Validates refactoring candidates with branch-level test coverage data.
051 GitHub stars
06Integrates project-specific domain vocabulary from CONTEXT.md and ADRs.
Use Cases
01Bridging the gap between domain logic and technical implementation through glossary-aligned refactoring.
02Refactoring legacy systems by consolidating tightly-coupled modules into high-leverage seams.
03Optimizing codebase structure for better navigation by both human developers and AI agents.