ios-data-persistence/SKILL.md
iOS data persistence standards with SwiftData as primary local storage and custom API backends for cloud sync. Covers UserDefaults, Keychain, SwiftData (models, queries, relationships, migrations), file storage, offline-first architecture, and...
npx skillsauth add peterbamuhigire/skills-web-dev ios-data-persistenceInstall 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-data-persistence or would be better handled by a more specific companion skill.references only as needed.SKILL.md first, then load only the referenced deep-dive files that are necessary for the task.references/ directory for deep detail after reading the core workflow below.| Skill | When to Apply |
|---|---|
| ios-swiftdata | Deep SwiftData API — @Attribute, @Relationship, ModelActor, migrations, 10 anti-patterns |
| dual-auth-rbac | JWT/refresh-token storage and rotation |
| api-pagination | Paginated data fetching with local caching |
| vibe-security-skill | Security baseline for all web/API calls |
| api-error-handling | Consistent error handling in repository layer |
| Data Type | Storage | Example | |---|---|---| | User preferences | UserDefaults | Theme, language, sort order | | Tokens / credentials | Keychain Services | JWT tokens, API keys, passwords | | Structured app data | SwiftData (iOS 17+) | Products, orders, customers | | Large files / images | FileManager | Photos, PDFs, exports | | Temporary cache | URLCache / NSCache | API response caching |
Rule of thumb: simple flag/scalar = UserDefaults. Secret = Keychain. Relationships/querying = SwiftData. Binary blob = FileManager.
Extended guidance for ios-data-persistence was moved to references/skill-deep-dive.md to keep this entrypoint compact and fast to load.
Use that deep dive for:
2. UserDefaults (Simple Preferences Only)3. Keychain Services (Security-Critical Data)4. SwiftData (Primary Local Storage — iOS 17+)5. Repository Pattern (API-Backed Sync)6. Offline-First Architecture7. DTO / Domain Model Mapping8. File Storage (Images, PDFs, Exports)9. iCloud Sync Options10. URLCache / NSCache (Temporary Caching)11. Cross-Skill References12. Anti-Patternsdata-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...