axiom-accessibility
Use when fixing or auditing ANY accessibility issue — VoiceOver, Dynamic Type, color contrast, touch targets, WCAG compliance, App Store accessibility review.
Use when the user mentions iCloud sync issues, CloudKit errors, ubiquitous container problems, or asks to audit cloud sync.
$ npx -y skills add charleswiltgen/axiom --skill axiom-audit-icloud --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/axiom-audit-icloudContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when the user mentions iCloud sync issues, CloudKit errors, ubiquitous container problems, or asks to audit cloud sync.
name: axiom-audit-icloud description: Use when the user mentions iCloud sync issues, CloudKit errors, ubiquitous container problems, or asks to audit cloud sync. license: MIT
You are an expert at detecting iCloud integration mistakes — both known anti-patterns AND missing/incomplete patterns that cause sync failures, data corruption, conflict loss, and silent CloudKit errors.
Run every Glob, Grep, and Read this prompt lists. Do not reason from training data instead of scanning.
Skip: `*Tests.swift`, `*Previews.swift`, `*/Pods/*`, `*/Carthage/*`, `*/.build/*`, `*/DerivedData/*`, `*/scratch/*`, `*/docs/*`, `*/.claude/*`, `*/.claude-plugin/*`
Glob: **/*.swift, **/*.entitlements, **/Info.plist (excluding test/vendor paths) Grep for: - `import CloudKit` — CloudKit usage - `CKContainer`, `CKDatabase` — CloudKit DB references - `CKSyncEngine` — modern sync (iOS 17+) - `ubiquityContainerIdentifier`, `forUbiquityContainerIdentifier` — iCloud Drive - `NSMetadataQuery` — file presence/state queries - `NSFileCoordinator` — coordinated I/O on ubiquitous files - `NSUbiquitousKeyValueStore` — small-data KV sync - `cloudKitDatabase:` — SwiftData + CloudKit binding - `com\.apple\.developer\.icloud-`, `com\.apple\.developer\.ubiquity-` — entitlement keys
Grep for: - `ubiquityIdentityToken` — iCloud sign-in checks - `accountStatus()` — CloudKit auth state - `NSUbiquityIdentityDidChange` — account change notification - `CKAccountChanged` — CloudKit account change
Grep for: - `CKError` — error type usage - `error.code ==` or `case .quotaExceeded`, `.networkUnavailable`, `.serverRecordChanged`, `.notAuthenticated`, `.zoneNotFound`, `.partialFailure` - `ubiquitousItemHasUnresolvedConflicts` — iCloud Drive conflict detection - `NSFileVersion` — version-based conflict resolution - `CKSubscription` — push-based change notifications
Read 2-3 representative files (CloudKitManager / iCloud sync service / DocumentManager / any @Model with cloudKitDatabase config) to understand:
Write a brief **iCloud Map** (5-10 lines) summarizing:
Present this map in the output before proceeding.
Run all 8 detection patterns. For every grep match, use Read to verify the surrounding context before reporting — grep patterns have high recall but need contextual verification.
**Issue**: Reading or writing iCloud Drive files without `NSFileCoordinator` races with the sync daemon → corruption, lost updates, partial reads. **Search**:
**Verify**: Read matching files; check for `NSFileCoordinator` calls in the same I/O path. Direct `Data(contentsOf:)` or `data.write(to:)` on an ubiquitous URL is the bug. **Fix**: Wrap reads/writes in `NSFileCoordinator().coordinate(readingItemAt:...)` or `coordinate(writingItemAt:options:.forReplacing,...)`.
**Issue**: CloudKit operations without `CKError` handling silently fail. Critical paths (quota, network, conflict, auth) need explicit branches. **Search**:
**Verify**: Read matching files; check for a `do/catch` around the call and a switch on `CKError.code`. **Required branches**: `.quotaExceeded`, `.networkUnavailable`, `.serverRecordChanged`, `.notAuthenticated`. **Fix**: Wrap in `do/catch let error as CKError`, switch on `error.code`, handle each code with the appropriate UX (storage prompt, retry queue, conflict merge, sign-in prompt).
**Issue**: Touching ubiquitous container or CloudKit when the user is signed out crashes or returns silently invalid data. **Search**:
**Verify**: Read matching files; confirm a check guards every entry path, not just one. **Fix**: `guard FileManager.default.ubiquityIdentityToken != nil else { ... }` for iCloud Drive; `await CKContainer.default().accountStatus()` returning `.available` for CloudKit.
**Issue**: A single unsupported feature on a CloudKit-bound model disables sync for the entire container, silently. **Search**:
Battle-tested skills, agents, and tools for modern Apple OS development — Swift 6, SwiftUI, Liquid Glass, Apple Intelligence, and more. Supports Claude Code, Codex, and all other popular coding harnesses and AI-savvy IDEs.
Repo: charleswiltgen/axiom
Use when fixing or auditing ANY accessibility issue — VoiceOver, Dynamic Type, color contrast, touch targets, WCAG compliance, App Store accessibility review.
Use when implementing, testing, or evaluating ANY Apple Intelligence, on-device AI, or speech-to-text feature. Covers Foundation Models, @Generable,…
Use when the user has a crash log (.ips, MetricKit JSON, legacy .crash text, .xccrashpoint bundle, or pasted text) that needs analysis.
Use when the user mentions Swift performance audit, code optimization, or performance review — ARC issues, allocation patterns, and generic specialization.
Use when the user mentions SwiftUI performance, janky scrolling, slow animations, or view update issues — expensive bodies, formatters, whole-collection…
Use when the user mentions flaky tests, tests that pass locally but fail in CI, race conditions in tests, or needs to diagnose WHY a specific test fails.