axiom-ios-data

0
1
Source

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.

Install

mkdir -p .claude/skills/axiom-ios-data && curl -L -o skill.zip "https://mcp.directory/api/skills/download/6766" && unzip -o skill.zip -d .claude/skills/axiom-ios-data && rm skill.zip

Installs to .claude/skills/axiom-ios-data

About this skill

iOS Data & Persistence Router

You MUST use this skill for ANY data persistence, database, axiom-storage, CloudKit, or serialization work.

When to Use

Use this router when working with:

  • Databases (SwiftData, Core Data, GRDB, SQLiteData)
  • Schema migrations
  • CloudKit sync
  • File storage (iCloud Drive, local storage)
  • Data serialization (Codable, JSON)
  • Storage strategy decisions
  • Keychain / secure credential storage
  • Encryption, signing, key management (CryptoKit)

Routing Logic

SwiftData

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

Other Databases

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

Migrations

Database migration safety/skill axiom-database-migration (critical - prevents data loss)

Serialization

Codable issues/skill axiom-codable

Cloud Storage

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

Keychain & Encryption

Keychain / secure credential storage/skill axiom-keychain Keychain errors/skill axiom-keychain-diag Keychain API reference/skill axiom-keychain-ref Encryption / signing / key management/skill axiom-cryptokit CryptoKit API reference/skill axiom-cryptokit-ref

File Storage

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

tvOS Storage

tvOS data persistence/skill axiom-tvos (CRITICAL: no persistent local storage on tvOS) tvOS + CloudKit/skill axiom-sqlitedata (recommended: SyncEngine as persistent store)

Automated Scanning

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)

Decision Tree

  1. SwiftData? → swiftdata, swiftdata-migration
  2. Core Data? → core-data, core-data-diag
  3. GRDB? → grdb
  4. SQLiteData? → sqlitedata, sqlitedata-ref
  5. ANY schema migration? → database-migration (ALWAYS — prevents data loss)
  6. Realm migration? → realm-migration-ref
  7. SwiftData vs SQLiteData? → sqlitedata-migration
  8. Cloud sync architecture? → cloud-sync
  9. CloudKit? → cloudkit-ref
  10. iCloud Drive? → icloud-drive-ref
  11. Cloud sync errors? → cloud-sync-diag
  12. Codable/JSON serialization? → codable
  13. File storage strategy? → storage, storage-diag, storage-management-ref
  14. File protection? → file-protection-ref
  15. Keychain / storing tokens, passwords, secrets securely? → keychain, keychain-diag, keychain-ref
  16. SecItem errors (errSecDuplicateItem, errSecItemNotFound, errSecInteractionNotAllowed)? → keychain-diag
  17. Encryption, signing, Secure Enclave, CryptoKit? → cryptokit, cryptokit-ref
  18. Quantum-secure cryptography, HPKE, ML-KEM? → cryptokit
  19. Want Core Data safety scan? → core-data-auditor (Agent)
  20. Want Codable anti-pattern scan? → codable-auditor (Agent)
  21. Want iCloud sync audit? → icloud-auditor (Agent)
  22. Want storage location audit? → storage-auditor (Agent)
  23. tvOS data persistence? → axiom-tvos (CRITICAL: no persistent local storage) + axiom-sqlitedata (CloudKit SyncEngine)

Anti-Rationalization

ThoughtReality
"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.
"I'll use local storage on tvOS"tvOS has NO persistent local storage. System deletes Caches at any time. axiom-tvos explains the iCloud-first pattern.
"UserDefaults is fine for this token"UserDefaults is unencrypted, backed up to iCloud, and visible to MDM profiles. One audit catches it. keychain stores tokens securely.
"I'll encrypt it myself with CommonCrypto"CryptoKit replaced CommonCrypto's buffer-management nightmares with one-line APIs. cryptokit prevents misuse.

Critical Pattern: Migrations

ALWAYS invoke /skill axiom-database-migration when adding/modifying database columns.

This prevents:

  • "FOREIGN KEY constraint failed" errors
  • "no such column" crashes
  • Data loss from unsafe migrations

Example Invocations

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

User: "How do I persist data on tvOS?" → Invoke: /skill axiom-tvos + /skill axiom-sqlitedata

User: "My tvOS app loses data between launches" → Invoke: /skill axiom-tvos

User: "How do I store an auth token securely?" → Invoke: /skill axiom-keychain

User: "errSecDuplicateItem but I checked and the item doesn't exist" → Invoke: /skill axiom-keychain-diag

User: "How do I encrypt data with AES in Swift?" → Invoke: /skill axiom-cryptokit

User: "I need to sign data with the Secure Enclave" → Invoke: /skill axiom-cryptokit

User: "What's ML-KEM and should I use it?" → Invoke: /skill axiom-cryptokit

axiom-swiftui-nav-diag

CharlesWiltgen

Use when debugging navigation not responding, unexpected pops, deep links showing wrong screen, state lost on tab switch or background, crashes in navigationDestination, or any SwiftUI navigation failure - systematic diagnostics with production crisis defense

54

axiom-swiftui-26-ref

CharlesWiltgen

Use when implementing iOS 26 SwiftUI features - covers Liquid Glass design system, performance improvements, @Animatable macro, 3D spatial layout, scene bridging, WebView/WebPage, AttributedString rich text editing, drag and drop enhancements, and visionOS integration for iOS 26+

33

axiom-extensions-widgets-ref

CharlesWiltgen

Use when implementing widgets, Live Activities, Control Center controls, or app extensions - comprehensive API reference for WidgetKit, ActivityKit, App Groups, and extension lifecycle for iOS 14+

13

axiom-ios-build

CharlesWiltgen

Use when ANY iOS build fails, test crashes, Xcode misbehaves, or environment issue occurs before debugging code. Covers build failures, compilation errors, dependency conflicts, simulator problems, environment-first diagnostics.

253

axiom-camera-capture-ref

CharlesWiltgen

Reference — AVCaptureSession, AVCapturePhotoSettings, AVCapturePhotoOutput, RotationCoordinator, photoQualityPrioritization, deferred processing, AVCaptureMovieFileOutput, session presets, capture device APIs

42

coreml

CharlesWiltgen

Use when deploying custom ML models on-device, converting PyTorch models, compressing models, implementing LLM inference, or optimizing CoreML performance. Covers model conversion, compression, stateful models, KV-cache, multi-function models, MLTensor.

42

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

1,6881,430

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

1,2721,337

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

1,5471,153

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

1,359809

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

1,269732

pdf-to-markdown

aliceisjustplaying

Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions "load the whole PDF", "bring the PDF into context", "read the entire PDF", or when partial extraction/grepping would miss important context. This is the preferred method for PDF text extraction over page-by-page or grep approaches.

1,498687