
Description
This agent skill helps an iOS developer build, review or improve Core Data persistence in an app that has not moved to SwiftData. It applies to projects that use NSManagedObject subclasses. The skill covers the whole persistence stack. It sets up the stack, handles concurrency so that work on managed objects happens on the right thread, and uses batch operations for large changes. It covers NSFetchedResultsController for keeping a list in step with stored data. It also covers persistent history tracking, which records changes so that other parts of the app or extensions can react to them. Staged migration is included, for changing the data model between app versions without losing user data. The skill ends with testing guidance. It is written as an instruction set for an AI coding agent working on Swift code, and it is part of the swift-ios-skills repository by dpearson2699, which has about 1.3K stars on GitHub. It is for maintaining an existing Core Data app, and it is not a recommendation to choose Core Data over SwiftData for a new project.…
Highlights
- Set up the Core Data stack
- Handle concurrency on managed object contexts
- Run batch operations for large changes
- Use NSFetchedResultsController for lists
- Plan staged migrations between data model versions
Ratings & Reviews
No ratings yet
Be the first to rate core-data.
People also visit

macos-development
Comprehensive macOS development guidance including Swift 6+, SwiftUI, SwiftData
core-data FAQ
Who is it for?
It is for apps that use Core Data and have not adopted SwiftData.
What does staged migration mean here?
The skill covers changing the data model across versions in stages, so existing user data is carried over.
Does it cover testing?
Yes. The skill includes guidance on testing Core Data code.
How do I install it?
Run npx skills add https://github.com/dpearson2699/swift-ios-skills --skill core-data.
What security audits has it passed?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best core-data alternatives?
Popular alternatives to core-data include swiftdata, swiftdata-pro and axiom-data. See all core-data alternatives















