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 564 stars 47 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
92
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
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
9 months ago
Last Updated
3 days 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

xcode-cloud

Xcode Cloud CI/CD configuration, workflows, custom scripts, testing, deployment, and optimization. Use when setting up or troubleshooting Xcode Cloud pipelines.

0 Updated today
Insolvent-pyrene754
AI & Automation Listed

apple-developer-provisioning-workflow

Plan and safely automate officially supported Apple Developer provisioning and CloudKit workflows through the App Store Connect REST API, Xcode-aware local discovery, cktool, and CKTool JS. Use when inspecting or changing bundle IDs, capabilities, certificates, devices, provisioning profiles, CloudKit schemas, or sandbox test data while keeping portal-only configuration, credentials, dry runs, and confirmation gates explicit.

6 Updated 3 days ago
gaelic-ghost
DevOps & Infrastructure Listed

cloudkit-schema-source-of-truth

Use when a CloudKit-backed app's persistence layer adds or edits a record type, field, or index and the schema needs to reach a container, or when asked "how do I push CloudKit schema to Production", "why can't cktool deploy to prod", or "why is a field silently missing in Production". Covers one committed `.ckdb` per app as the schema source of truth, `xcrun cktool` export/validate/deploy against Development (management token from an env file, passed positionally since cktool rejects piped stdin, purged after use), Production promotion as an irreversible Console-button-only gate `cktool` cannot reach, Production fields/indexes being add-only, and Just-In-Time schema existing only in Development — a field the code writes that Production was never seeded with fails silently.

0 Updated 4 days ago
wei18