What problem does it solve?
This skill automates scaffolding a production-grade persistence layer for iOS/macOS apps, generating SwiftData or CoreData stacks with optional iCloud (CloudKit) sync to enable local storage and cross-device data synchronization.
Core Features & Use Cases
- Scaffolds a ready-to-use PersistenceController with a ModelContainer (SwiftData) or NSPersistentContainer (CoreData), including optional CloudKit sync configuration.
- Generates Repository and data access patterns to simplify fetch/insert/delete/save operations and speed up integration into the app lifecycle.
- Supports flexible configurations (local-only, cloud-synced, or multi-store setups) and adapts to project naming conventions and existing models.
- Real-world use case: Start a new iOS app with offline-first data persistence and optional cloud-backed synchronization across devices.
Quick Start
Describe your project’s target platform and whether to enable iCloud sync, then run the generator to produce the PersistenceController, repositories, and optional CloudKit configuration.