What problem does it solve? Codebases often grow into flat folders, global buckets like utils or services, and cosmetic layers that hide real architectural boundaries. This Skill helps you design, audit, and migrate physical source and package structures so the tree truthfully reflects capabilities, ownership, and dependency direction. ## Core Features & Use Cases - Structure Design & Audit: Produces annotated target trees with placement rules, allowed/forbidden dependency directions, and proportionate enforcement for backends, frontends, BFFs, CLIs, and monorepos. - Hexagonal & DDD Boundaries: Makes ports, adapters, composition roots, and bounded contexts physically visible only when the project has genuinely earned them. - Safe Migration Planning: Provides staged migration sequences with characterization tests, enforcement gates, and deep workspace discovery checks before moving files. - Use Case: Ask it to review a monorepo where all code sits in packages/shared; it will propose a capability-grouped tree with package-role rules, import restrictions, and a step-by-step migration plan. ## Quick Start Use the structure-codebase skill to audit this repository's folder layout and propose an enforceable target source tree with dependency rules.