cloudkit-sync

Featured

Generate CloudKit sync infrastructure using CKSyncEngine with conflict resolution, sharing, and account monitoring. Use when adding iCloud sync to an iOS/macOS app.

DevOps & Infrastructure 719 stars 68 forks Updated 1 months ago MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
95
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# CloudKit Sync Generator Generate production-ready CloudKit sync infrastructure using `CKSyncEngine` (iOS 17+ / macOS 14+), the modern replacement for manual `CKOperation` chains. ## When This Skill Activates Use this skill when the user: - Asks to "add iCloud sync" or "sync data across devices" - Mentions "CloudKit", "CKSyncEngine", or "cloud sync" - Wants to "share data between users" via iCloud - Asks about "conflict resolution" for synced data - Mentions "CKRecord", "CKShare", or "CKRecordZone" ## Pre-Generation Checks ### 1. Project Context Detection Before generating, ALWAYS check: ```bash # Check deployment target (CKSyncEngine requires iOS 17+ / macOS 14+) grep -r "platform" Package.swift 2>/dev/null || true grep -r "IPHONEOS_DEPLOYMENT_TARGET\|MACOSX_DEPLOYMENT_TARGET" --include="*.pbxproj" | head -3 # Find existing CloudKit implementations rg -l "CKSyncEngine\|CKContainer\|CKRecord\|CKOperation" --type swift | head -10 # Check for existing entitlements find . -name "*.entitlements" -exec cat {} \; 2>/dev/null | grep -i "icloud" # Check existing persistence layer rg -l "@Model\|NSManagedObject\|PersistentModel" --type swift | head -5 # Check for existing sync infrastructure rg "CKSyncEngineDelegate\|CKSubscription\|CKFetchRecordZoneChanges" --type swift | head -5 ``` ### 2. Compatibility Verification **CKSyncEngine requires:** - iOS 17.0+ / macOS 14.0+ / watchOS 10.0+ / tvOS 17.0+ - CloudKit entitlement - Active iCloud account on device If deployment t...

Details

Author
rshankras
Repository
rshankras/claude-code-apple-skills
Created
10 months ago
Last Updated
1 months ago
Language
Swift
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

DevOps & Infrastructure Listed

cloudkit

Implement, review, or improve CloudKit and iCloud sync in iOS/macOS apps. Use when working with CKContainer, CKRecord, CKQuery, CKSubscription, CKSyncEngine, CKShare, NSUbiquitousKeyValueStore, or iCloud Drive file coordination; when syncing SwiftData models via ModelConfiguration with cloudKitDatabase; when handling CKError codes for conflict resolution, network failures, or quota limits; or when checking iCloud account status before performing sync operations.

3 Updated 5 days ago
thiennc-tesoglobal
AI & Automation Listed

apple-cktool-js

Builds and troubleshoots CloudKit automation with Apple's CKTool JS packages, including `@apple/cktool.database`, `@apple/cktool.target.nodejs`, and `@apple/cktool.target.browser`. Use when Codex needs typed JavaScript or TypeScript for CloudKit schema import, export, validation, or reset; container and team discovery; record queries, creation, updates, or deletion; Node.js or browser configuration; Promise-based API calls; CI integration; token injection; or migration from `xcrun cktool` shell scripts. Use `apple-cktool` alongside this skill for the Xcode-bundled macOS CLI.

7 Updated 1 months ago
bastos
DevOps & Infrastructure Listed

cloudkit-schema-source-of-truth

Committed `.ckdb` as the CloudKit schema source of truth, with `xcrun cktool` export / validate / import against Development and Production promotion kept as a Console-only gate. Use when a CloudKit-backed persistence layer adds or edits a record type, field, or index; before any Production schema deploy; or when asked "how do I push CloudKit schema to Production", "why can't cktool deploy to prod", "why is a field silently missing in Production". Does NOT own the Swift persistence seam → swift-dependency-injection, or token storage → apple-public-repo-security.

19 Updated today
wei18