What problem does it solve?
This Skill provides a comprehensive guide and best practices for implementing Clean Architecture patterns in Swift and SwiftUI iOS projects, ensuring maintainable, scalable, and testable codebases.
Core Features & Use Cases
- Architectural Blueprint: Outlines a clear project structure with domain separation, bounded contexts, and the Ports & Adapters pattern.
- Layered Rules: Defines strict guidelines for each layer (Domain, App) to maintain separation of concerns.
- Dependency Management: Illustrates effective dependency injection strategies and composition roots for apps and extensions.
- Error Handling: Provides clear guidance on when to use
throws versus Result and how to define custom errors.
- Workflow Guidance: Offers step-by-step instructions for creating features, use cases, and refactoring to bounded contexts.
- Use Case: When starting a new Swift/SwiftUI project or refactoring an existing one to improve its architecture, consult this guide for structure, layer rules, and dependency management.
Quick Start
Use the clean-archi-swiftui skill to understand the recommended project structure for a new Swift/SwiftUI Clean Architecture project.