SwiftData Migration Writer
Installation
SKILL.md
SwiftData Migration Writer
Create migration from UserDefaults to SwiftData:
-
Map keys to entity fields
-
Write migration method:
func migrateXIfNeeded() async throws { guard !hasMigrated("X") else { return } // Read UserDefaults // Create/update entity // Archive old keys // Mark migrated } -
Add to PreferencesStore extension
-
Call on first load
-
Test data preservation
Related skills
More from willsigmon/sigstack
fastlane expert
Fastlane automation - build, test, deploy iOS apps, TestFlight, App Store Connect
39swiftlint-autofix
Run SwiftFormat and fix all auto-correctable SwiftLint issues
30manus ai agent integration
Use this skill when delegating complex autonomous tasks to Manus AI - an AI agent that can browse the web, execute code, generate files, and comple...
24find-bug-root-cause
Deep investigation to find actual root cause (not just symptoms)
23dead code eliminator
Find and delete unused files, disabled code blocks, Enhanced variants, deprecated features, test files in production for Leavn app
22bitrise expert
Bitrise CI/CD - iOS builds, automated testing, deployment, managed macOS runners
21