Loading...
Loading...
Use when working with ANY data persistence, database, storage, CloudKit, migration, or serialization. Covers SwiftData, Core Data, GRDB, SQLite, CloudKit sync, file storage, Codable, migrations.
npx skill4agent add charleswiltgen/axiom axiom-data| Symptom / Task | Reference |
|---|---|
| SwiftData @Model, @Query, ModelContext | See |
| SwiftData schema migration, VersionedSchema | See |
| SwiftData migration crashes, data loss | See |
| Migrating from Realm to SwiftData | See |
| SwiftData vs SQLiteData decision | See |
| GRDB queries, ValueObservation, DatabaseMigrator | See |
| SQLiteData @Table, CRUD, SyncEngine | See |
| SQLiteData advanced patterns, CTEs, views | See |
| Core Data stack, relationships, concurrency | See |
| Core Data migration crashes, thread errors | See |
| ANY schema migration safety | See |
| Codable, JSON encoding/decoding | See |
| Cloud sync architecture, offline-first | See |
| CloudKit, CKSyncEngine, CKRecord | See |
| iCloud Drive, ubiquitous containers | See |
| Cloud sync errors, conflict resolution | See |
| Storage strategy, where to store data | See |
| Storage issues, files disappeared | See |
| Storage management, disk pressure | See |
| Keychain / secure credential storage | See axiom-security (skills/keychain.md) |
| Keychain errors (errSecDuplicateItem) | See axiom-security (skills/keychain-diag.md) |
| Keychain API reference | See axiom-security (skills/keychain-ref.md) |
| Encryption / signing / key management | See axiom-security (skills/cryptokit.md) |
| CryptoKit API reference | See axiom-security (skills/cryptokit-ref.md) |
| File protection, NSFileProtection | See axiom-security (skills/file-protection-ref.md) |
| tvOS data persistence (no local storage) | See axiom-swift (skills/tvos.md) |
| tvOS + CloudKit SyncEngine | See |
core-data-auditor/axiom:audit core-datacodable-auditor/axiom:audit codableicloud-auditor/axiom:audit icloudstorage-auditor/axiom:audit storagedatabase-schema-auditor/axiom:audit database-schemaswiftdata-auditor/axiom:audit swiftdataskills/swiftdata.mdskills/swiftdata-migration.mdskills/core-data.mdskills/core-data-diag.mdskills/grdb.mdskills/sqlitedata.mdskills/sqlitedata-ref.mdskills/database-migration.mdskills/realm-migration-ref.mdskills/sqlitedata-migration.mdskills/cloud-sync.mdskills/cloudkit-ref.mdskills/icloud-drive-ref.mdskills/cloud-sync-diag.mdskills/codable.mdskills/storage.mdskills/storage-diag.mdskills/storage-management-ref.mdskills/sqlitedata.md/skill axiom-concurrency/skill axiom-ai| Thought | Reality |
|---|---|
| "Just adding a column, no migration needed" | Schema changes without migration crash users. database-migration prevents data loss. |
| "I'll handle the migration manually" | Manual migrations miss edge cases. database-migration covers rollback and testing. |
| "Simple query, I don't need the skill" | Query patterns prevent N+1 and thread-safety issues. The skill has copy-paste solutions. |
| "CloudKit sync is straightforward" | CloudKit has 15+ failure modes. cloud-sync-diag diagnoses them systematically. |
| "I know Codable well enough" | Codable has silent data loss traps (try? swallows errors). codable skill prevents production bugs. |
| "I'll use local storage on tvOS" | tvOS has NO persistent local storage. System deletes Caches at any time. See axiom-swift (skills/tvos.md) for the iCloud-first pattern. |
| "UserDefaults is fine for this token" | UserDefaults is unencrypted, backed up to iCloud, and visible to MDM profiles. One audit catches it. keychain stores tokens securely. |
| "I'll encrypt it myself with CommonCrypto" | CryptoKit replaced CommonCrypto's buffer-management nightmares with one-line APIs. cryptokit prevents misuse. |
skills/database-migration.mdskills/database-migration.mdskills/swiftdata.mdskills/cloud-sync-diag.mdskills/sqlitedata-migration.mdcore-data-auditorcodable-auditoricloud-auditorstorage-auditordatabase-schema-auditorswiftdata-auditorskills/sqlitedata.md