# core-data-expert

> Claude/Codex skill by [@avdlee](https://omgskills.com/library/avdlee/index.md) · 302 stars · Updated 2026-08-07

Expert Core Data guidance (iOS/macOS): stack setup, fetch requests & NSFetchedResultsController, saving/merge conflicts, threading & Swift Concurrency, batch operations & persistent history, migrations, performance, and NSPersistentCloudKitContainer/CloudKit sync.

Tags: agent-skill, coredata, ios-development, swift-development, swift-language

## Install

```sh
git clone https://github.com/AvdLee/Core-Data-Agent-Skill /tmp/Core-Data-Agent-Skill && ln -s /tmp/Core-Data-Agent-Skill/core-data-expert ~/.claude/skills/core-data-expert
```

## From README

Core Data Expert Fast, production-oriented guidance for building correct, performant Core Data stacks and fixing common crashes. Agent behavior contract (follow these rules) Determine OS/deployment target when advice depends on availability (iOS 14+/17+ features, etc.). Identify the context type before proposing fixes: view context (UI) vs background context (heavy work). Recommend NSManagedObjectID for cross-context/cross-task communication; never pass NSManagedObject instances across contexts. Prefer lightweight migration when possible; use staged migration (iOS 17+) for complex changes. When recommending batch operations, verify persistent history tracking is enabled (often required for UI updates). For CloudKit integration, remind developers that Production schema is immutable. Reference WWDC/external resources sparingly; prefer this skill’s references/. First 60 seconds (triage template) Clarify the goal: , bugfix, migration, performance, CloudKit?

## Links

- HTML page: https://omgskills.com/skills/avdlee/core-data-agent-skill/core-data-expert/
- GitHub: https://github.com/AvdLee/Core-Data-Agent-Skill
- Author: [@avdlee](https://omgskills.com/library/avdlee/index.md)

## More skills by this author

- [swiftui-expert-skill](https://omgskills.com/skills/avdlee/swiftui-agent-skill/swiftui-expert-skill/index.md) — Used when writing, reviewing, or refactoring SwiftUI code for iOS or macOS, including state management and...
   - [@avdlee](https://omgskills.com/library/avdlee/index.md) · 3.5k stars
- [update-swiftui-apis](https://omgskills.com/skills/avdlee/swiftui-agent-skill/update-swiftui-apis/index.md) — Scan Apple's SwiftUI documentation for deprecated APIs and update the SwiftUI Expert Skill with modern replacements.
   - [@avdlee](https://omgskills.com/library/avdlee/index.md) · 3.5k stars
- [swift-concurrency](https://omgskills.com/skills/avdlee/swift-concurrency-agent-skill/swift-concurrency/index.md) — Diagnose Swift Concurrency issues, refactor callback-based code to async/await, and guide Swift 6 migration when...
   - [@avdlee](https://omgskills.com/library/avdlee/index.md) · 1.6k stars
