Architectural Refactoring & Depth Optimizer

•
3
•

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.

主要功能

01Applies the 'deletion test' to validate the necessity and impact of modules.
023 GitHub stars
03Integrates with CONTEXT.md and ADRs to maintain domain-specific architectural alignment.
04Facilitates a 'grilling loop' to explore design constraints and alternative interfaces.
05Automates documentation updates for domain glossaries and architectural decisions.
06Identifies shallow modules and proposes high-leverage deepening opportunities.

使用场景

01Improving codebase testability by identifying proper architectural seams and adapters.
02Optimizing software structure for better AI-assisted development and navigation.
03Modernizing legacy codebases by consolidating fragmented utilities into deep modules.