cloudkit-code-review
Review CloudKit code for secure container setup, batch record handling, and syncing.
Install
mkdir -p .claude/skills/cloudkit-code-review && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/16491" && unzip -o skill.zip -d .claude/skills/cloudkit-code-review && rm skill.zipInstalls to .claude/skills/cloudkit-code-review
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Reviews CloudKit code for container setup, record handling, subscriptions, and sharing patterns. Use when reviewing code with import CloudKit, CKContainer, CKRecord, CKShare, or CKSubscription.Key capabilities
- →Check account status before database operations
- →Verify custom zones are used for production data
- →Ensure all CloudKit errors are handled with `retryAfterSeconds`
- →Confirm `serverRecordChanged` conflicts are handled with merge logic
- →Parse `CKErrorPartialFailure` for individual record errors
- →Validate batch operations are used instead of individual saves
How it works
The skill reviews CloudKit code against a checklist of best practices and common pitfalls, focusing on container setup, record handling, subscriptions, and sharing patterns.
Inputs & outputs
When to use cloudkit-code-review
- →Review CloudKit container setup
- →Check record CRUD operations
- →Audit sync and push logic
About this skill
CloudKit Code Review
Quick Reference
| Issue Type | Reference |
|---|---|
| CKContainer, databases, zones, entitlements | references/container-setup.md |
| CKRecord, references, assets, batch operations | references/records.md |
| CKSubscription, push notifications, silent sync | references/subscriptions.md |
| CKShare, participants, permissions, acceptance | references/sharing.md |
Review Checklist
- Account status checked before private/shared database operations
- Custom zones used (not default zone) for production data
- All CloudKit errors handled with
retryAfterSecondsrespected -
serverRecordChangedconflicts handled with proper merge logic -
CKErrorPartialFailureparsed for individual record errors - Batch operations used (
CKModifyRecordsOperation) not individual saves - Large binary data stored as
CKAsset(records have 1MB limit) - Record keys type-safe (enums) not string literals
- UI updates dispatched to main thread from callbacks
-
CKAccountChangedNotificationobserved for account switches - Subscriptions have unique IDs to prevent duplicates
- CKShare uses custom zone (sharing requires custom zones)
When to Load References
- Reviewing container/database setup or zones -> container-setup.md
- Reviewing record CRUD or relationships -> records.md
- Reviewing push notifications or sync triggers -> subscriptions.md
- Reviewing sharing or collaboration features -> sharing.md
Output Format
Report issues using: [FILE:LINE] ISSUE_TITLE
Examples:
[AppDelegate.swift:24] CKContainer not in custom zone[SyncManager.swift:156] Unhandled CKErrorPartialFailure[DataStore.swift:89] Missing retryAfterSeconds backoff
Review Questions
- What happens when the user is signed out of iCloud?
- Does error handling respect rate limiting (
retryAfterSeconds)? - Are conflicts resolved or does data get overwritten silently?
- Is the schema deployed to production before App Store release?
- Are shared records in custom zones (required for CKShare)?
When not to use it
- →When reviewing code unrelated to CloudKit
- →When the code does not import CloudKit or use CKContainer, CKRecord, CKShare, or CKSubscription
- →When the user is not interested in security or performance standards
Limitations
- →Focuses only on CloudKit-specific logic
- →Relies on a predefined checklist for review
- →Does not cover general Swift/iOS code quality
How it compares
This skill provides a specialized checklist for CloudKit code, ensuring adherence to specific Apple guidelines and common error handling, which a general code review might miss.
Compared to similar skills
cloudkit-code-review side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| cloudkit-code-review (this skill) | 0 | 6mo | No flags | Advanced |
| build-macos-apps | 70 | 8mo | Review | Intermediate |
| ios-simulator-skill | 27 | 2mo | Review | Advanced |
| build-iphone-apps | 14 | 8mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by ray-manaloto
View all by ray-manaloto →You might also like
build-macos-apps
glittercowboy
Build professional native macOS apps in Swift with SwiftUI and AppKit. Full lifecycle - build, debug, test, optimize, ship. CLI-only, no Xcode.
ios-simulator-skill
conorluddy
21 production-ready scripts for iOS app testing, building, and automation. Provides semantic UI navigation, build automation, accessibility testing, and simulator lifecycle management. Optimized for AI agents with minimal token output.
build-iphone-apps
glittercowboy
Build professional native iPhone apps in Swift with SwiftUI and UIKit. Full lifecycle - build, debug, test, optimize, ship. CLI-only, no Xcode. Targets iOS 26 with iOS 18 compatibility.
ios-developer
sickn33
Develop native iOS applications with Swift/SwiftUI. Masters iOS 18, SwiftUI, UIKit integration, Core Data, networking, and App Store optimization. Use PROACTIVELY for iOS-specific features, App Store optimization, or native iOS development.
xcodebuildmcp
cameroncooke
Official skill for XcodeBuildMCP. Use when doing iOS/macOS/watchOS/tvOS/visionOS work (build, test, run, debug, log, UI automation).
mobile-games
davila7
Mobile game development principles. Touch input, battery, performance, app stores.