スキル一覧に戻る
willsigmon

swiftdata-migration-writer

by willsigmon

Website for sigstack.dev - Claude Code stack showcase

0🍴 0📅 2026年1月23日
GitHubで見るManusで実行

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:

  1. Map keys to entity fields

  2. Write migration method:

    func migrateXIfNeeded() async throws {
        guard !hasMigrated("X") else { return }
        // Read UserDefaults
        // Create/update entity
        // Archive old keys
        // Mark migrated
    }
    
  3. Add to PreferencesStore extension

  4. Call on first load

  5. Test data preservation

Use when: Creating SwiftData entities, migrating preferences, data persistence

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

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

レビュー

💬

レビュー機能は近日公開予定です