app-store
App Store optimization and marketing skills for descriptions, screenshots, keywords, review responses, and comprehensive promotional strategy. Use when user…
Generate CloudKit sync infrastructure using CKSyncEngine with conflict resolution, sharing, and account monitoring. Use when adding iCloud sync to an iOS/macOS app.
$ npx -y skills add rshankras/claude-code-apple-skills --skill cloudkit-sync --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/cloudkit-syncContext preview
The summary Claude sees to decide when to auto-load this skill.
Generate CloudKit sync infrastructure using CKSyncEngine with conflict resolution, sharing, and account monitoring. Use when adding iCloud sync to an iOS/macOS app.
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.
Repo: rshankras/claude-code-apple-skills
App Store optimization and marketing skills for descriptions, screenshots, keywords, review responses, and comprehensive promotional strategy. Use when user…
Privacy-preserving ad measurement with AdAttributionKit (SKAdNetwork's successor) — install and re-engagement attribution, conversion-value strategy under…
Generate compelling App Store descriptions that convert browsers into users. Use when writing initial descriptions, improving existing copy, or drafting…
Apple Search Ads campaign strategy for indie developers — paid acquisition, keyword bidding, budget planning, and ROAS optimization. Use when user asks about…
Take a one-time in-app purchase from MISSING_METADATA to READY_TO_SUBMIT in App Store Connect — set its price schedule and localized display name/description…
Optimize app title, subtitle, and keywords for maximum App Store discoverability. Use when launching a new app, improving search rankings, entering new…