cloudkit-code-review
БесплатноБез исполняемых скриптовНе проверенReviews CloudKit code for container setup, record handling, CKSyncEngine, subscriptions, and sharing patterns. Use when reviewing code with import CloudKit…
от existential-birds★ 92 звезды на GitHubОб этом скилле
CloudKit Code Review
Quick Reference
| Issue Type | Reference |
|---|---|
| CKContainer, databases, zones, CKSyncEngine, entitlements | references/container-setup.md |
| CKRecord, references, CKAsset, 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 (
try await container.accountStatus()) - Custom zones used (not default zone) for production data
-
CKSyncEngine(iOS 17+) preferred over manualCKOperationsync loops for new sync implementations - All CloudKit errors handled with
retryAfterSecondsrespected -
serverRecordChangedconflicts handled with proper merge logic -
CKErrorPartialFailureparsed for individual record errors - Batch operations used (
database.modifyRecords(saving:deleting:)orCKModifyRecordsOperation) instead of individual saves - Large binary data stored as
CKAsset(records have 1 MB limit), and fetchedCKAsset.fileURLcopied/moved out of temporary staging storage - Record keys type-safe (enums) not string literals
- UI updates isolated on
@MainActor(or dispatched to main actor from legacy completion handlers) -
CKAccountChangednotification observed for account switches - Subscriptions have unique IDs to prevent duplicates and use async
modifySubscriptions(saving:deleting:)/modifySubscriptionsResultBlock -
CKShareuses custom zone and saves root record together atomically
When to Load References
- Reviewing container/database setup, zones, or
CKSyncEngine-> container-setup.md - Reviewing record CRUD,
CKAsset, 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] CKRecord saved to default zone instead of custom zone[SyncManager.swift:156] Unhandled CKError.partialFailure[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)?
Hard gates (before reporting)
Complete in order for each finding you intend to report. Do not advance until the pass condition is satisfied.
- Location artifact — The finding includes
[FILE:LINE](or a line range) copied from the current file contents; the path resolves in this repo. - Scope read — You read the full surrounding unit: the type or function that owns the CloudKit work (for example the
CKSyncEngineDelegate,CKDatabaseasync call,CKOperationusage, orCKRecordlifecycle), not only a diff hunk or isolated snippet. - CloudKit or deployment claim (only if the finding depends on container identifiers, public vs private database choice, custom zone requirement, iCloud account state, entitlements, or production schema) — You name one concrete artifact you inspected (for example
com.apple.developer.icloud-container-environmentor container ID in the entitlements file,CKContainer.default()vs custom identifier in source,Info.plist/ target capability, or evidence that schema is deployed) or you downgrade the item to an open question in Review Questions. - Protocol — Pre-report steps in
review-verification-protocol(../review-verification-protocol/SKILL.md if installed) are satisfied for this item (no finding if they are not).
Use the issue format [FILE:LINE] ISSUE_TITLE for each reported finding. Hard gate 4 is the full pre-report checklist for this skill’s review type.
Установить cloudkit-code-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл cloudkit-code-review?
Reviews CloudKit code for container setup, record handling, CKSyncEngine, subscriptions, and sharing patterns. Use when reviewing code with import CloudKit, CKContainer, CKRecord, CKShare, CKSubscription, or CKSyncEngine.
Как установить скилл cloudkit-code-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cloudkit-code-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic