What problem does it solve?
Building reliable CloudKit sync for iOS and macOS apps requires handling complex edge cases like conflict resolution, account status changes, offline queuing, and schema management, which is time-consuming and error-prone to implement manually.
Core Features & Use Cases
- Full CKSyncEngine Infrastructure: Generates production-ready sync code using Apple's modern CKSyncEngine API for iOS 17+ and macOS 14+ apps, replacing manual CKOperation chains.
- Pluggable Conflict Resolution: Supports multiple built-in strategies (server-wins, client-wins, timestamp-based merge, custom field-level merge) to handle synced record conflicts automatically.
- Optional iCloud Sharing: Includes pre-built CKShare management for collaborative features, letting users share synced data with other iCloud users.
- Use Case: A task management app can use this skill to sync user to-do lists across their iPhone, iPad, and Mac, and allow users to share task lists with family members via iCloud.
Quick Start
Use the cloudkit-sync skill to generate a complete iCloud sync system for your Swift iOS or macOS app with your chosen conflict resolution strategy and optional sharing support.