← Back to list

swiftdata-migration-writer
by willsigmon
Website for sigstack.dev - Claude Code stack showcase
⭐ 0🍴 0📅 Jan 23, 2026
SKILL.md
name: SwiftData Migration Writer description: Write UserDefaults to SwiftData migration logic for Leavn app with data preservation, rollback, and validation allowed-tools: Read, Write, Edit
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
Use when: Creating SwiftData entities, migrating preferences, data persistence
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon