What problem does it solve?
This Skill solves the friction caused by shallow, tightly coupled code modules that are hard to test, maintain, and for AI tools to navigate, by surfacing actionable refactoring opportunities to consolidate logic into deeper, more maintainable structures.
Core Features & Use Cases
- Architecture Exploration: Organically scans codebases to identify shallow modules, tightly coupled seams, and untested areas using the deletion test to validate candidates.
- ADR & Domain Alignment: Respects existing project architectural decision records (ADRs) and domain language from CONTEXT.md to avoid re-litigating past decisions and ensure suggestions fit the project's context.
- Deepening Refactor Proposals: Surfaces concrete opportunities to turn shallow modules into deep ones, improving testability by making the module interface the sole test surface and concentrating change locality for maintainers.
- Use Case: For a codebase with scattered, duplicated payment processing logic across multiple small modules, this Skill identifies the opportunity to consolidate the logic into a single deep module with a clear interface, eliminating duplicate code and simplifying test suites.
Quick Start
Use the improve-codebase-architecture skill to analyze the current project's codebase and identify the top 3 highest-impact opportunities to consolidate shallow modules into deeper, more maintainable architecture.