app-store
App Store optimization and marketing skills for descriptions, screenshots, keywords, review responses, and comprehensive…
Generate CloudKit sync infrastructure using CKSyncEngine with conflict resolution, sharing, and account monitoring. Use when adding iCloud sync to an iOS/macOS app.
Claude Code
$ npx -y skills add rshankras/claude-code-apple-skills --skill cloudkit-sync --agent claude-code
Codex
$ npx skills add rshankras/claude-code-apple-skills --skill cloudkit-sync -a codex -y
Cursor
$ npx skills add rshankras/claude-code-apple-skills --skill cloudkit-sync -a cursor -y
Gemini CLI
$ npx skills add rshankras/claude-code-apple-skills --skill cloudkit-sync -a gemini-cli -y
GitHub Copilot
$ npx skills add rshankras/claude-code-apple-skills --skill cloudkit-sync -a github-copilot -y
OpenCode
$ npx skills add rshankras/claude-code-apple-skills --skill cloudkit-sync -a opencode -y
Windsurf
$ npx skills add rshankras/claude-code-apple-skills --skill cloudkit-sync -a windsurf -y
name: cloudkit-sync description: Generate CloudKit sync infrastructure using CKSyncEngine with conflict resolution, sharing, and account monitoring. Use when adding iCloud sync to an iOS/macOS app. allowed-tools: [Read, Write, Edit, Glob, Grep, Bash, AskUserQuestion] last_verified: 2026-07-16 review_by: 2027-06-22 os_version: iOS 27 / macOS 27
Generate production-ready CloudKit sync infrastructure using `CKSyncEngine` (iOS 17+ / macOS 14+), the modern replacement for manual `CKOperation` chains.
Use this skill when the user:
Before generating, ALWAYS check:
# 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**CKSyncEngine requires:**
If deployment target is below iOS 17 / macOS 14, warn the user that CKSyncEngine is not available and suggest either raising the target or using the older CKOperation approach (which this generator does not cover).
If existing CloudKit code is found:
Ask user via AskUserQuestion:
1. **What data needs syncing?**
2. **Database scope?**
3. **Conflict resolution strategy?**
4. **Existing persistence layer?**
Read code templates from this skill:
Generate these files based on configuration:
**Always generate:**
Sources/CloudSync/ ├── SyncEngine.swift # CKSyncEngine setup + CKSyncEngineDelegate ├── SyncConfiguration.swift # Zone names, container ID, database scope ├── RecordMapping.swift # CKRecord <-> local model conversion ├── ConflictResolver.swift # Conflict resolution strategy ├── SyncMonitor.swift # Account status + sync state observation └── CloudSyncError.swift # Typed error handling with CKError mapping
**If sharing enabled:**
Sources/CloudSync/Sharing/ ├── ShareManager.swift # CKShare creation and management └── ShareParticipantView.swift # UICloudSharingController wrapper
Check project structure:
Adapt templates to match:
Generate or update entitlements file with required CloudKit capabilities.
1. **iCloud** capability:
2. **Background Modes** (recommended):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.developer.icloud-container-identifiers</key>
<array>
<string>iCloud.com.yourcompany.yourapp</string>
</array>
<key>com.apple.developer.icloud-services</key>
<array>
<string>CloudKit</string>
</array>
</dict>
</plist>1. Go to [CloudKit Dashboard](https://icloud.developer.apple.com/) 2. Select your container 3. Record types are auto-created when you first save a CKRecord of that type during development 4. **Deploy schema to production before App Store release** 5. Indexes are required for queryable fields -- add them in the dashboard
After generation, provide:
Sources/CloudSync/ ├── SyncEngine.swift # CKSyncEngine + delegate implementation ├── SyncConfiguration.swift # Container, zone, and scope config ├── RecordMapping.swift # CKRecord <-> model bridging ├── ConflictResolver.swift # Pluggable conflict resolution ├─
A collection of Claude Code skills for iOS, macOS, watchOS, visionOS, and Apple platform development. These skills help you plan and build apps, maintain code quality, ensure HIG compliance, and guide you from idea to App Store.
App Store optimization and marketing skills for descriptions, screenshots, keywords, review responses, and comprehensive…
Privacy-preserving ad measurement with AdAttributionKit (SKAdNetwork's successor) — install and re-engagement attribution,…
Generate compelling App Store descriptions that convert browsers into users. Use when writing initial descriptions, improving…
Apple Search Ads campaign strategy for indie developers — paid acquisition, keyword bidding, budget planning, and ROAS…
Take a one-time in-app purchase from MISSING_METADATA to READY_TO_SUBMIT in App Store Connect — set its price schedule and…
Optimize app title, subtitle, and keywords for maximum App Store discoverability. Use when launching a new app, improving search…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.