Agent skill · Databases

migration-patterns

Migration guides for CoreData to SwiftData, UIKit to SwiftUI, ObservableObject to @Observable, XCTest to Swift Testing, Objective-C to Swift, and StoreKit 1 to StoreKit 2. Use when migrating between Apple framework generations.

rshankrasgithub.com/rshankrasGitHub ↗
claude-coderead-onlyMIT
Install
npx skills add rshankras/claude-code-apple-skills --skill migration-patterns --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 7
SKILL.md size: 7 KB
Bundled scripts: none
Allowed tools: ReadGlobGrep
Path: skills/ios/migration-patterns/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 589
Language: Swift

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Migration Patterns Comprehensive guides for migrating between Apple framework generations. Each guide covers the full before/after mapping, coexistence strategies, and common pitfalls. ## When This Skill Activates - User asks how to migrate from CoreData to SwiftData - User is moving UIKit code to SwiftUI (or embedding one in the other) - User needs to update from ObservableObject/Combine to @Observable/AsyncSequence - User is converting XCTest tests to Swift Testing - User asks about coexistence strategies (running old and new frameworks side by side) - User wants to know whether a migration is worth doing for their situation - User is migrating Objective-C code to Swift (bridging headers, incremental migration) - User is migrating from StoreKit 1 to StoreKit 2 (in-app purchases, subscriptions) - User encounters errors during a framework migration ## Decision Tree ``` What are you migrating? | +-- Data persistence layer | +-- CoreData --> SwiftData | | See coredata-to-swiftdata.md | | Min: iOS 17 / macOS 14 | | | +-- Still need CoreData features SwiftData lacks? | Stay on CoreData or use coexistence mode | +-- UI framework | +-- UIKit --> SwiftUI | | See uikit-to-swiftui.md | |

What's inside
Steps it walks through
  1. When This Skill Activates
  2. Decision Tree
  3. Quick Reference
  4. Process
  5. 1. Assess the Migration
  6. 2. Load Relevant Reference File
  7. 3. Review the User's Code
  8. 4. Recommend a Migration Strategy
  9. General Migration Principles
  10. References
Ships with 6 files
  • coredata-to-swiftdata.md
  • objc-to-swift.md
  • observable-migration.md
  • storekit-migration.md
  • uikit-to-swiftui.md
  • xctest-to-swift-testing.md
More from claude-code-apple-skills
All skills →
About this skill
What does the migration-patterns skill do?

Migration guides for CoreData to SwiftData, UIKit to SwiftUI, ObservableObject to @Observable, XCTest to Swift Testing, Objective-C to Swift, and StoreKit 1 to StoreKit 2. Use when migrating between Apple framework generations.

How do I install it?

Run `npx skills add rshankras/claude-code-apple-skills --skill migration-patterns --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From rshankras/claude-code-apple-skills, a repository with 589 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going