
Cloudkit
Handles CloudKit and iCloud sync for iOS and macOS apps. You'll reach for this when implementing record CRUD, queries, subscriptions, or when setting up CKSyncEngine for automatic conflict resolution and change tracking. Covers the full stack from container setup and custom zones to SwiftData integration and iCloud Drive file coordination. The CKSyncEngine section is solid if you're on iOS 17+, it's the modern approach that handles retry logic and push notifications for you. Includes practical error handling patterns for network failures and quota limits, plus a conflict resolution guide. Targets Swift 6.3 but notes backward compatibility where it matters.
- skills.sh installs
- 3.5K
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add dpearson2699/swift-ios-skills --skill cloudkit --agent claude-codeInstalls into .claude/skills of the current project.
Files
CloudKit
Sync data across devices using CloudKit, iCloud key-value storage, and iCloud Drive. Covers container setup, record CRUD, queries, subscriptions, CKSyncEngine, SwiftData integration, conflict resolution, and error handling.
Contents
- Container and Database Setup
- Workflow
- CKRecord CRUD
- CKQuery
- CKSubscription
- CKSyncEngine (iOS 17+)
- SwiftData + CloudKit
- NSUbiquitousKeyValueStore
- iCloud Drive File Sync
- Account Status and Error Handling
- Conflict Resolution
- Common Mistakes
- Review Checklist
- References
Workflow
Sponsors
Details
- Repository
- github.com/dpearson2699/swift-ios-skills
- Categories
- Git & Pull Requests, Code Review & Quality, Sales & Marketing, Mobile Development
- First seen
- May 16, 2026
More from dpearson2699/swift-ios-skills
All 98- Photokit3.4K
- Mapkit3.4K
- Swiftui Webkit3.4K
- Realitykit3.4K
- Avkit3.4K
- Spritekit3.3K
- Cryptokit3.3K
- Metrickit3.3K
- Pdfkit3.3K
- Gamekit3.3K
- Eventkit3.3K
- Musickit3.3K
- Swift Architecture3.3K
- Pencilkit3.3K
- Carplay3.2K
- Ios Simulator3.2K
- Scenekit3.2K
- Homekit3.2K
- Accessorysetupkit3.2K
- Callkit3.2K
- Cryptotokenkit3.2K
- Financekit3.2K
- Adattributionkit3.2K
- Paperkit3.2K