ios-swiftdata
Installation
SKILL.md
iOS SwiftData
Use When
- Comprehensive SwiftData API reference (iOS 17+) — @Model, @Attribute, @Relationship, ModelContainer, ModelContext, FetchDescriptor, @Query, schema migrations, ModelActor for background work, CloudKit requirements, testing, and 10 anti-patterns. Use alongside ios-data-persistence for offline-first sync engine.
- The task needs reusable judgment, domain constraints, or a proven workflow rather than ad hoc advice.
Do Not Use When
- The task is unrelated to
ios-swiftdataor would be better handled by a more specific companion skill. - The request only needs a trivial answer and none of this skill's constraints or references materially help.
Required Inputs
- Gather relevant project context, constraints, and the concrete problem to solve; load
referencesonly as needed. - Confirm the desired deliverable: design, code, review, migration plan, audit, or documentation.