{"enrichment":{"faq":[{"a":"axiom-data guides you through SwiftData integration from setup to production. Start by defining your models with @Model macros, configure your ModelContainer at app launch, and use @Query in SwiftUI views for reactive data binding. axiom-data covers threading best practices, background context handling, and common pitfalls like N+1 queries that degrade performance on tvOS and other platforms.","q":"How to use SwiftData in my app?"},{"a":"axiom-data helps you choose the right framework for your needs. SwiftData is Apple's modern, Swift-native alternative with simpler syntax and built-in CloudKit sync; Core Data offers deeper control and broader iOS version support. axiom-data breaks down trade-offs: SwiftData excels for new projects targeting iOS 17+, while Core Data remains essential for legacy apps or complex multi-store architectures.","q":"Core Data vs SwiftData\u2014which should I use?"},{"a":"axiom-data provides migration patterns to add columns without data loss. Update your @Model definition with the new property, then use VersionedSchema and MigrationPlan to define the schema version and migration logic. axiom-data emphasizes testing migrations in staging first, using lightweight migrations when possible, and validating data integrity before deploying to production.","q":"How do I safely add a column to a SwiftData model?"},{"a":"axiom-data teaches defensive migration strategies: version your schemas explicitly, test migrations with production-like data volumes, use lightweight migrations for simple changes, and implement rollback procedures. It covers both SwiftData and Core Data approaches, including handling edge cases like concurrent migrations and ensuring CloudKit sync consistency during schema evolution.","q":"What database schema migration safety practices does axiom-data cover?"},{"a":"axiom-data explains modern sync architectures combining SwiftData's CloudKit integration with offline-first patterns. Configure CloudKit containers, handle sync conflicts gracefully, and implement local-first writes with background sync. axiom-data covers detecting connectivity, queuing changes offline, and reconciling state when the device reconnects\u2014critical for widget apps and tvOS environments.","q":"How do I set up cloud sync and offline-first data persistence?"},{"a":"axiom-data recommends Keychain for tokens and secrets, never storing them in SwiftData or Core Data. Use CryptoKit for encryption when needed, handle errSecDuplicateItem errors gracefully, and follow best practices for credential lifecycle management. axiom-data also covers secure serialization with Codable, avoiding common mistakes like logging sensitive values or persisting them to iCloud Drive.","q":"How should I securely store sensitive data like tokens?"}],"shadow_tags":["db-frameworks","sync-architecture","migration-safety","query-patterns","secure-storage","cloud-integration","schema-design","data-serialization","performance-tuning","cross-platform-data"],"summary_rewrite":"axiom-data equips AI coding assistants with production-grade database expertise for Apple ecosystem development. Navigate persistence patterns, framework selection, and data architecture decisions with confidence\u2014avoiding common pitfalls that lead to performance issues and data integrity problems. Built for Swift 6, SwiftUI, and modern Apple Intelligence workflows."},"files":[{"bytes":12607,"path":"axiom-codex/skills/axiom-data/SKILL.md","sha256":"542d0aee1d9a48b503b9e82e18a476fad2338831817d4ebfa477bbf7098209a0","url":"https://skillfed.io/files/CharlesWiltgen/Axiom/axiom-data/968ff574/SKILL.md"}],"id":"CharlesWiltgen/Axiom/axiom-data","links":{"html":"https://skillfed.io/CharlesWiltgen/Axiom/axiom-data","md":"https://skillfed.io/CharlesWiltgen/Axiom/axiom-data.md","repo":"https://github.com/CharlesWiltgen/Axiom"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":81,"language":"Go","last_updated":"2026-07-27","license":"MIT","name":"axiom-data","publisher":"CharlesWiltgen","stars":1095},"relations":{"similar":[{"id":"CharlesWiltgen/Axiom/axiom-security"},{"id":"CharlesWiltgen/Axiom/axiom-swift"},{"id":"CharlesWiltgen/Axiom/axiom-health"},{"id":"CharlesWiltgen/Axiom/axiom-audit-icloud"},{"id":"johnrogers/claude-swift-engineering/grdb"},{"id":"CharlesWiltgen/Axiom/axiom-macos"},{"id":"CharlesWiltgen/Axiom/axiom-audit-grdb-performance"},{"id":"dpearson2699/swift-ios-skills/swiftdata"},{"id":"rshankras/claude-code-apple-skills/persistence-setup"},{"id":"CharlesWiltgen/Axiom/axiom-swiftui"}]},"slug":{"owner":"CharlesWiltgen","repo":"Axiom","skill":"axiom-data"},"version":"968ff574"}
