What problem does it solve? Monolithic Bash scripts mix I/O with business logic, making them untestable and fragile. This Skill applies clean architecture to shell scripts so domain logic stays pure, I/O lives in adapters, and use cases receive dependencies as function references. ## Core Features & Use Cases - Layered Architecture: Enforces domain, application, adapter, and composition layers with inward-only dependencies and domain__/uc__/adapter__ naming prefixes. - Dependency Inversion via Ports: Defines documented function-signature port contracts and passes adapter function names into use cases, enabling stub-based testing without mocking frameworks. - Three Operating Modes: GENERATE produces a full multi-file project, REVIEW audits scripts against violation checklists, and SCRIPT applies the layers logically inside a single file. - Use Case: Refactor a 500-line deployment script by extracting pure validation into domain__ functions, wrapping curl and file reads in adapters, and wiring everything in a main() composition root with structured exit codes. ## Quick Start Ask the AI to restructure your Bash script using clean architecture with pure domain functions, adapter-based I/O, and a composition root.