axiom-storage

Guide iOS storage decisions across data formats, directories, and CloudKit sync.

Updated Dec 3, 2025
One-click install
npx skills add https://github.com/tuliopc23/flying-dutchman-app --skill axiom-storage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: axiom-storage
Source: https://github.com/tuliopc23/flying-dutchman-app/tree/main/.claude/skills/axiom-storage
Command: npx skills add https://github.com/tuliopc23/flying-dutchman-app --skill axiom-storage

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive decision framework for choosing the right storage strategy for your iOS application, ensuring data integrity, efficient management, and optimal user experience.

Core Features & Use Cases

  • Format Selection: Guides you in choosing between structured data (SwiftData, Core Data, SQLite) and file-based storage.
  • Location Strategy: Helps determine the correct directory (Documents, Application Support, Caches, tmp) for different data types.
  • Cloud Integration: Advises on using CloudKit for structured data sync and iCloud Drive for file sync.
  • Use Case: When starting a new iOS project, use this Skill to decide whether to store user-generated notes in SwiftData with CloudKit sync, or if downloaded images should be cached locally.

Quick Start

Use the axiom-storage skill to decide where to store user-created documents.

Frequently Asked Questions about axiom-storage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose between SwiftData and Core Data for iOS data persistence?

iOS data persistence choices between SwiftData and Core Data depend on your structured data complexity. SwiftData offers modern Swift-native integration, while Core Data provides mature control for advanced schema relationships and migration workflows.

What is the best directory to store downloaded images in iOS file management?

For iOS file management, downloaded images should be stored in the Caches directory. This location allows the system to automatically purge files when disk space is low, since they can always be re-downloaded.

Does CloudKit work with SwiftData for syncing structured data to iCloud?

Yes, CloudKit integrates with SwiftData to sync structured data to iCloud. It handles automated conflict resolution and background synchronization for user-generated content across multiple iOS devices seamlessly.

When do I need iCloud Drive versus CloudKit for iOS storage?

You need iCloud Drive for file-based document synchronization, while CloudKit is required for structured database records. Choosing between them ensures correct data formatting and sync behavior for your specific iOS app requirements.

How to decide between SQLite and file storage for an iOS app?

Decide between SQLite and file storage by evaluating data structure. SQLite handles complex relational queries and structured persistence, whereas file storage in Documents or Application Support suits unstructured binary blobs.

Why should user-generated documents go in the Documents directory instead of Application Support?

User-generated documents should go in the Documents directory because it is visible to users and backed up to iCloud. Application Support is for hidden app-managed files that users do not directly interact with.