Confirm successful installation by checking the skill directory location:
.cursor/skills/cloudkit-sync
Restart Cursor to activate cloudkit-sync. Access via /cloudkit-sync in your agent's command palette.
β
Security Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
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. Targets iOS 26+
with Swift 6.2; older availability noted where relevant.
Custom zones support atomic commits, change tracking, and sharing.
let zoneID =CKRecordZone.ID(zoneName:"NotesZone")let zone =CKRecordZone(zoneID: zoneID)tryawait privateDB.save(zone)let recordID =CKRecord.ID(recordName:UUID().uuidString, zoneID: zoneID)let record =CKRecord(recordType:"Note", recordID: recordID)
CKQuery
Query records with NSPredicate. Supported: ==, !=, <, >, <=, >=,
BEGINSWITH, CONTAINS, IN, AND, NOT, BETWEEN,
distanceToLocation:fromLocation:.
let predicate =NSPredicate(format:"title BEGINSWITH %@","Meeting")let query =CKQuery(recordType:"Note", predicate: predicate)query.sortDescriptors =[NSSortDescriptor(key:"createdAt", ascending:false)]let(results,_)=tryawait privateDB.records(matching: query)for(_, result)in results {let record =try result.get()print(record["title"]as?String??"")}// Fetch all records of a typelet allQuery =CKQuery(recordType:"Note", predicate:NSPredicate(value:true))// Full-text search across string fieldslet searchQuery =CKQuery( recordType:"Note", predicate:NSPredicate(format:"self CONTAINS %@","roadmap"))// Compound predicatelet compound =NSCompoundPredicate(andPredicateWithSubpredicates:[NSPredicate(format:"createdAt > %@", cutoffDate asNSDate),NSPredicate(format:"tags CONTAINS %@","work")])
CKSubscription
Subscriptions trigger push notifications when records change server-side.
CloudKit auto-enables APNs -- no explicit push entitlement needed.
// Query subscription -- fires when matching records changelet subscription =CKQuerySubscription( recordType:"Note", predicate:NSPredicate(format:"tags CONTAINS %@","urgent"), subscriptionID:"urgent-notes", options:[.firesOnRecordCreation,.firesOnRecordUpdate])let notifInfo =CKSubscription.NotificationInfo()notifInfo.shouldSendContentAvailable =true// silent pushsubscription.notificationInfo = notifInfo
tryawait privateDB.save(subscription)// Database subscription -- fires on any database changelet dbSub =CKDatabaseSubscription(subscriptionID:"private-db-changes")dbSub.notificationInfo = notifInfo
tryawait privateDB.save(dbSub)// Record zone subscription -- fires on changes within a zonelet zoneSub =CKRecordZoneSubscription( zoneID:CKRecordZone.ID(zoneName:"NotesZone"), subscriptionID:"notes-zone-changes")zoneSub.notificationInfo = notifInfo
tryawait privateDB
Implementation Guide
Prerequisites
βΊClaude Desktop or compatible AI client with skill support
βΊClear understanding of task or problem to solve
βΊWillingness to iterate and refine outputs
Time Estimate
15-45 minutes depending on use case complexity
Steps
1Install skill using provided installation command
2Test with simple use case relevant to your work
3Evaluate output quality and relevance
4Iterate on prompts to improve results
5Integrate into regular workflow if valuable
Common Pitfalls
β Expecting perfect results without iteration
β Not providing enough context in prompts
β Using skill for tasks outside its intended scope
β Accepting outputs without review and validation
Best Practices
β Do
+Start with clear, specific prompts
+Provide relevant context and constraints
+Review and refine all outputs before using
+Iterate to improve output quality
+Document successful prompt patterns
β Don't
βDon't use without understanding skill limitations
βDon't skip validation of outputs
βDon't share sensitive information in prompts
βDon't expect skill to replace human judgment
π‘ Pro Tips
β Be specific about desired format and style
β Ask for multiple options to choose from
β Request explanations to understand reasoning
β Combine AI efficiency with human expertise
When to Use This
β Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
β Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
Learning Path
1Familiarize yourself with skill capabilities and limitations
2Start with low-risk, non-critical tasks
3Progress to more complex and valuable use cases
4Build expertise through regular use and experimentation