Improve Codebase Architecture
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
Surface architectural friction and propose deepening opportunities — refactors that turn shallow modules into deep ones.
Read the project's domain glossary (CONTEXT.md) and any ADRs in the area you're touching first.
Walk the codebase. Don't follow rigid heuristics — explore organically and note where you experience friction:
Apply the deletion test to anything you suspect is shallow: would deleting it concentrate complexity, or just move it?
Write a self-contained HTML file to the OS temp directory. For each candidate, render a card with:
Strong, Worth exploring, SpeculativeEnd the report with a Top recommendation section.
Once the user picks a candidate, run the /grilling skill to walk the design tree with them.
Side effects happen inline as decisions crystallize — run the /domain-modeling skill to keep the domain model current as you go.