What problem does it solve?
When designing or restructuring code in a Stacks project, it is easy to end up with shallow modules whose interfaces are as complex as their implementations, scattered seams, and untestable code. This Skill provides a shared vocabulary (module, interface, depth, seam, adapter, leverage, locality) and concrete principles for designing deep modules that are testable through their interface.
Core Features & Use Cases
- Deep-module design vocabulary: Standardized terms for module, interface, seam, adapter, depth, leverage, and locality so teams name architectural concepts consistently across Stacks packages.
- Dependency-aware deepening guidance: Classifies dependencies (in-process, local-substitutable, remote-owned, true external) and prescribes the right seam and adapter strategy for each, including when to use ports and adapters versus mocks.
- Design-it-twice workflow: Spawns parallel sub-agents to produce radically different interface designs for a candidate module, then compares them on depth, locality, and seam placement.
- Use Case: When writing the fifth near-identical action in a Stacks app, use this Skill to decide whether a model trait should be born, where the seam belongs, and how to test through the new interface.
Quick Start
Ask the AI to review a Stacks action or package interface and recommend how to deepen it using the module, seam, and adapter vocabulary.