What problem does it solve?
This Skill eliminates the high-cost, common problem of choosing the wrong data storage format or location for iOS/macOS apps, which leads to data loss, sync failures, backup bloat, App Store rejections, and hard-to-debug production crashes.
Core Features & Use Cases
- End-to-end decision guidance: Step-by-step decision trees to select the correct storage format (structured records, files, key-value, secrets) and location (local, iCloud, Keychain) for any data type.
- Multi-framework implementation guides: Detailed references for SwiftData, Core Data, GRDB, SQLiteData, CloudKit sync, iCloud Drive, Codable/JSON serialization, UserDefaults, file storage, and schema migrations, with production-ready code examples.
- Anti-pattern and diagnostic support: Explicit warnings for common mistakes (e.g., mixing Core Data and SwiftData, unsafe migrations, CloudKit schema deployment gaps) and step-by-step diagnostic steps for sync failures, migration crashes, and data loss scenarios.
- Use Case: For example, if you are building a cross-device task app, this Skill guides you to choose SwiftData + CloudKit for structured task records, iCloud Drive for user-exported PDFs, Keychain for auth tokens, and additive idempotent migrations for your existing user base, while avoiding pitfalls like tvOS local storage deletion.
Quick Start
Use the ios-data-persistence skill to select the correct storage solution for your iOS app's task data, implement SwiftData with CloudKit sync for cross-device access, and create safe additive schema migrations for your existing users.