What problem does it solve?
Codebases often grow into flat folders, unowned shared buckets, or ceremonial architecture layers that hide real boundaries. This Skill designs, audits, and migrates physical source and package structures so the tree truthfully reflects capabilities, ownership, and dependency rules.
Core Features & Use Cases
- Structure Design and Audit: Produces annotated target trees with placement rules, allowed and forbidden dependency directions, and proportionate automated enforcement for backends, frontends, BFFs, CLIs, and monorepos.
- Hexagonal and DDD Placement: Decides when a ports-and-adapters hexagon or bounded context is genuinely earned, and locates ports, adapters, composition roots, and test interactors correctly.
- Safe Migration Planning: Provides staged migration sequences with characterization tests, dependency inversion, package reparenting, and validation gates.
- Use Case: Ask it to review a monorepo where all code sits under a flat src folder; it will propose a capability-first tree with enforced package boundaries and a step-by-step migration plan.
Quick Start
Use the structure-codebase skill to analyze this repository and propose an enforceable target source tree with dependency rules.