Architectural Refactoring & Code Deepening
Refactors shallow modules into deep, high-leverage architectural components to improve codebase testability and AI-navigability.
This skill empowers Claude to analyze your codebase through the lens of architectural depth, identifying 'shallow' modules where the interface is nearly as complex as the implementation. By leveraging existing project context and Architecture Decision Records (ADRs), it proposes strategic refactors that concentrate complexity behind simple, powerful interfaces. The skill facilitates an interactive 'grilling loop' to stress-test design decisions, ensuring that changes enhance code locality, simplify testing, and make the codebase significantly easier for both humans and AI agents to navigate.
Key Features
01Identification of shallow modules and architectural friction points
02Automated 'deletion tests' to validate module utility and leverage
03Automatic synchronization of ADRs and domain model documentation
04Domain-aware refactoring based on CONTEXT.md and ADR history
05Interactive 'grilling loop' for collaborative design refinement
060 GitHub stars
Use Cases
01Consolidating tightly-coupled modules into high-leverage architectural units
02Improving codebase 'AI-navigability' to help agents perform better on complex tasks
03Formalizing design decisions and domain language within a growing project