Architectural Refactor & Deepening

•
1
•

Analyzes codebase architecture to identify refactoring opportunities that transform shallow modules into high-leverage, deep modules for better testability and AI-navigability.

This skill helps developers evolve their codebases by surfacing architectural friction and proposing deepening opportunities based on domain-driven design principles. It leverages existing project context (CONTEXT.md) and Architecture Decision Records (ADRs) to suggest refactors that concentrate complexity behind simple interfaces, improving code locality and system leverage. By focusing on seams and adapters rather than just generic services, it guides users through a structured process to make code more maintainable, easier to test, and optimized for AI-assisted development.

Key Features

01Deletion Testing: Evaluates module value by simulating the impact of their removal on overall codebase complexity.
02Context-Aware Analysis: Uses project domain language and ADRs to ensure suggestions respect existing business logic and past decisions.
031 GitHub stars
04Structured Grilling Loop: Facilitates a deep-dive conversation to validate design constraints and naming before implementation.
05Automated Documentation Sync: Automatically updates CONTEXT.md and ADRs as architectural decisions crystallize during the refactor.
06Deepening Opportunities: Identifies shallow modules that should be consolidated for higher architectural leverage.

Use Cases

01Reducing technical debt by consolidating tightly-coupled, shallow modules into deep, high-leverage abstractions.
02Optimizing a legacy codebase for AI-assisted development by improving code locality and interface clarity.
03Improving codebase testability by identifying and implementing proper architectural seams and adapters.