{"enrichment":{"faq":[{"a":"persistence-setup guides you through establishing a robust data persistence layer for Apple platform apps. The skill helps you choose between SwiftData and CoreData, then provides structured setup patterns and best practices for implementing either framework. You'll learn to configure your storage foundation correctly from the start, ensuring your app can reliably save and retrieve user data between launches.","q":"How do I add local storage to my iOS app with persistence-setup?"},{"a":"persistence-setup covers both frameworks to help you make the right choice. SwiftData is Apple's modern, Swift-native approach with simpler syntax, while CoreData is the established framework with broader compatibility and more mature tooling. The skill provides examples and guidance for both, helping you understand which fits your app's requirements, platform targets, and team expertise.","q":"What's the difference between SwiftData and CoreData?"},{"a":"persistence-setup includes structured guidance for CloudKit integration and iCloud synchronization. The skill walks you through setting up CloudKit containers, configuring your data models for cloud sync, and implementing the necessary infrastructure to keep user data synchronized across multiple devices. You'll learn production-ready patterns for offline-first storage with cloud fallback.","q":"How can I enable iCloud sync for my app?"},{"a":"persistence-setup provides step-by-step setup patterns for SwiftData, including model container configuration. The skill guides you through defining your data models, configuring the model container with appropriate storage options, and establishing best practices for schema management. You'll get production-ready infrastructure code tailored to iOS 17 and later platforms.","q":"How do I set up SwiftData with a model container configuration?"},{"a":"Yes. persistence-setup includes guidance on implementing the repository pattern for testable data access. This approach abstracts your persistence layer, making it easier to test your app's business logic independently of CoreData or SwiftData. The skill shows you how to structure your data access layer for maintainability and flexibility.","q":"Can persistence-setup help me implement a repository pattern?"},{"a":"persistence-setup covers migration and extension of existing CoreData stacks. Whether you're modernizing legacy persistence code or extending your current setup, the skill provides patterns and best practices for managing schema changes, data migration, and incremental improvements to your storage layer.","q":"Does persistence-setup support migrating an existing CoreData stack?"}],"shadow_tags":["database-setup","cloud-synchronization","offline-capability","data-layer-architecture","device-sync","storage-framework","model-persistence","icloud-integration","repository-pattern"],"summary_rewrite":"This skill guides you through establishing a robust data persistence layer for Apple platform apps. Whether you're choosing between SwiftData and CoreData or implementing either framework, it provides structured setup patterns and best practices tailored to iOS, macOS, and other Apple platforms. Get your app's storage foundation right from the start."},"files":[{"bytes":7690,"path":"skills/generators/persistence-setup/SKILL.md","sha256":"071b9656c62283b71af758907bc3b1ffc54f35bc88212866f36e5fe55f5a35ec","url":"https://skillfed.io/files/rshankras/claude-code-apple-skills/persistence-setup/d9da2b3d/SKILL.md"}],"id":"rshankras/claude-code-apple-skills/persistence-setup","links":{"html":"https://skillfed.io/rshankras/claude-code-apple-skills/persistence-setup","md":"https://skillfed.io/rshankras/claude-code-apple-skills/persistence-setup.md","repo":"https://github.com/rshankras/claude-code-apple-skills"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":47,"language":"Swift","last_updated":"2026-07-24","license":"MIT","name":"persistence-setup","publisher":"rshankras","stars":565},"relations":{"similar":[{"id":"rshankras/claude-code-apple-skills/cloudkit-sync"},{"id":"dpearson2699/swift-ios-skills/swiftdata"},{"id":"vanab/SwiftData-agent-skill/swiftdata-expert-skill"},{"id":"rshankras/claude-code-apple-skills/integration-test-scaffold"},{"id":"rshankras/claude-code-apple-skills/architecture-spec"},{"id":"dpearson2699/swift-ios-skills/cloudkit"},{"id":"rshankras/claude-code-apple-skills/implementation-guide"},{"id":"CharlesWiltgen/Axiom/axiom-data"},{"id":"rshankras/claude-code-apple-skills/account-deletion"},{"id":"dpearson2699/swift-ios-skills/core-data"}]},"slug":{"owner":"rshankras","repo":"claude-code-apple-skills","skill":"persistence-setup"},"version":"d9da2b3d"}
