ios-swiftdata/SKILL.md
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.
npx skillsauth add peterbamuhigire/skills-web-dev ios-swiftdataInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
ios-swiftdata or would be better handled by a more specific companion skill.SKILL.md first, then load only the referenced deep-dive files that are necessary for the task.iOS 17+, Swift 5.9+. Primary local storage layer — built on Core Data with modern Swift macros.
| Skill | When to Apply |
|---|---|
| ios-data-persistence | Offline-first sync engine, repository pattern, pending ops queue |
| ios-development | MVVM architecture, SwiftUI integration, references/concurrency.md |
@Model ──→ ModelContainer ──→ ModelContext ──→ View (@Query)
defines stores operates displays
@Model — Macro that defines a persistent class. Also makes it @Observable.ModelContainer — Manages schema + storage config. Sendable — safe across actors.ModelContext — In-memory workspace: insert, fetch, delete, save, rollback. NOT Sendable.@Query — SwiftUI property wrapper for reactive, always-fresh data. MainActor-bound.Extended guidance for ios-swiftdata was moved to references/skill-deep-dive.md to keep this entrypoint compact and fast to load.
Use that deep dive for:
2. @Model Macro3. @Attribute Options4. @Relationship5. ModelContainer Setup6. ModelContext Full API7. FetchDescriptor8. @Query9. Schema Migration10. ModelActor (Background Work)11. Testing12. CloudKit Requirements13. Anti-Patterns & Gotchasdata-ai
Use when adding AI-powered analytics to a SaaS platform — semantic search over business data, natural language queries, trend detection, anomaly alerts, and AI-generated insights for dashboards. Covers embeddings, NL2SQL, and per-tenant analytics...
data-ai
Design AI-powered analytics dashboards — what metrics to show, how to display AI predictions and confidence, drill-down patterns, KPI cards, trend visualisation, AI Insights panels, export design, and role-based dashboard variants. Invoke when...
development
Use when designing, building, reviewing, or upgrading production software systems that must be secure, performant, maintainable, scalable, and user-centered. Apply before writing specs, code, architecture, APIs, databases, mobile apps, SaaS platforms, or ERP systems.
development
Professional web app UI using commercial templates (Tabler/Bootstrap 5) with strong frontend design direction when needed. Use for CRUD interfaces, dashboards, admin panels with SweetAlert2, DataTables, Flatpickr. Clone seeder-page.php, use...