ai/ios-skills/ios-axiom-ios-data/SKILL.md
Use when working with ANY data persistence, database, axiom-storage, CloudKit, migration, or serialization. Covers SwiftData, Core Data, GRDB, SQLite, CloudKit sync, file storage, Codable, migrations.
npx skillsauth add kurko/dotfiles axiom-ios-dataInstall 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.
You MUST use this skill for ANY data persistence, database, axiom-storage, CloudKit, or serialization work.
Use this router when working with:
Working with SwiftData → /skill axiom-swiftdata
Schema migration → /skill axiom-swiftdata-migration
Migration issues → /skill axiom-swiftdata-migration-diag
Migrating from Realm → /skill axiom-realm-migration-ref
SwiftData vs SQLiteData → /skill axiom-sqlitedata-migration
GRDB queries → /skill axiom-grdb
SQLiteData → /skill axiom-sqlitedata
Advanced SQLiteData → /skill axiom-sqlitedata-ref
Core Data patterns → /skill axiom-core-data
Core Data issues → /skill axiom-core-data-diag
Database migration safety → /skill axiom-database-migration (critical - prevents data loss)
Codable issues → /skill axiom-codable
Cloud sync patterns → /skill axiom-cloud-sync
CloudKit → /skill axiom-cloudkit-ref
iCloud Drive → /skill axiom-icloud-drive-ref
Cloud sync errors → /skill axiom-cloud-sync-diag
Storage strategy → /skill axiom-storage
Storage issues → /skill axiom-storage-diag
Storage management → /skill axiom-storage-management-ref
File protection → /skill axiom-file-protection-ref
Core Data audit → Launch core-data-auditor agent or /axiom:audit core-data (migration risks, thread-confinement, N+1 queries, production data loss)
Codable audit → Launch codable-auditor agent or /axiom:audit codable (try? swallowing errors, JSONSerialization, date handling)
iCloud audit → Launch icloud-auditor agent or /axiom:audit icloud (entitlement checks, file coordination, CloudKit anti-patterns)
Storage audit → Launch storage-auditor agent or /axiom:audit storage (wrong file locations, missing backup exclusions, data loss risks)
| 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. |
ALWAYS invoke /skill axiom-database-migration when adding/modifying database columns.
This prevents:
User: "I need to add a column to my SwiftData model"
→ Invoke: /skill axiom-database-migration (critical - prevents data loss)
User: "How do I query SwiftData with complex filters?"
→ Invoke: /skill axiom-swiftdata
User: "CloudKit sync isn't working"
→ Invoke: /skill axiom-cloud-sync-diag
User: "Should I use SwiftData or SQLiteData?"
→ Invoke: /skill axiom-sqlitedata-migration
User: "Check my Core Data code for safety issues"
→ Invoke: core-data-auditor agent
User: "Scan for Codable anti-patterns before release"
→ Invoke: codable-auditor agent
User: "Audit my iCloud sync implementation"
→ Invoke: icloud-auditor agent
User: "Check if my files are stored in the right locations"
→ Invoke: storage-auditor agent
tools
Create a GitHub pull request from the current branch. Use when user asks to create a PR, open a PR, submit a PR, push and create PR, or similar pull request workflows. Activates for phrases like "create a PR", "open a pull request", "submit PR", "push and PR", "make a PR for this", "open a draft PR".
data-ai
Merge the current worktree branch into main and sync main back. Use when the user says "merge to main", "ship it", "merge and continue", or after completing a task in a worktree and wanting to continue with the next one.
tools
Synchronize AI agent skills, commands, configs, permissions, hooks, and instructions across Claude Code, Codex CLI, and other Agent Skills-compatible tools. Use when the user asks to pull skills from Claude into Codex, sync Codex work back to Claude, migrate agent commands, reconcile frontmatter, update permissions, or keep agent setup files in parity.
testing
Write or update UI-independent use cases for QA. Use when the user says "write use cases", "add use cases", "QA use cases", "update use cases", "compose use cases", or when starting implementation of a new feature (after plan approval). Also activates for "what should we test", "regression cases", or "use cases for QA".