Skip to main content
skill CX Codex

core-data — Claude Code skill: Core Data without SwiftData

A skill for Core Data work in apps that have not moved to SwiftData: stack setup, concurrency, batch operations and migrations.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add dpearson2699/swift-ios-skills --skill core-data -a claude-code
Open on GitHub

What core-data does

The skill covers building a stack on NSPersistentContainer and keeping contexts off each other's queues. Its rules are blunt: reach a context through perform, hand NSManagedObjectID across threads and re-fetch, and turn on change merging for viewContext.

Other sections deal with NSFetchedResultsController driving a UITableView or UICollectionView, bulk inserts and deletes, persistent history tracking, staged schema migration and testing. There is a common-mistakes list and a review checklist. One hard requirement: a fetched results controller needs at least one sort descriptor, so a request without one will not work.

This is Swift work. Without familiarity with NSManagedObject and NSFetchRequest the material will not carry you far. If Core Data and SwiftData have to live together, the author points you to the swiftdata skill.

What it helps with

  • Set up a Core Data stack that survives background writes
  • Drive a list view from NSFetchedResultsController
  • Run a bulk import without loading objects into memory
  • Wire persistent history for multi-target sync
  • Break a schema migration into stages

Example prompts for the agent

  • Set up a Core Data stack with a background context for writes
  • Review my NSFetchedResultsController, the list does not refresh after a save
  • Rewrite this import as a batch insert with NSBatchInsertRequest

How to install core-data

1Skills CLI (Vercel)

npx skills add dpearson2699/swift-ios-skills --skill core-data -a claude-code

2Manually: put the files in place

~/.claude/skills/core-data/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/core-data/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about core-data

How do I install core-data in Claude Code?

Run npx skills add dpearson2699/swift-ios-skills --skill core-data -a claude-code. The skill file then lives at ~/.claude/skills/core-data/SKILL.md.

What does core-data do?

It guides writing and reviewing Core Data persistence code: stack, threading, batch requests, history tracking, migrations and testing.

How is core-data different from the swiftdata skill?

core-data targets apps that still use Core Data. Coexistence with SwiftData and migration between the two belong to swiftdata.

Similar skills

Everything for Mobile →

From the same set86

financekit Walks an agent through FinanceKit and FinanceKitUI in a Swift app: Wallet accounts, balances, transactions, the transaction picker and orders. CX Codex +1 3,000installs app-store-optimization Structures App Store Connect metadata to improve organic search ranking and download conversion. It balances keywords across titles, subtitles, and the indexed keyword field. CX Codex +1 2,900installs tabletopkit Guides work on visionOS spatial board games using TabletopKit, including game pieces, turns, participant sync, and RealityKit rendering. CX Codex +1 2,900installs swift-api-design-guidelines Applies Apple's official Swift API Design Guidelines to codebases. It guides argument labels, naming conventions for mutating methods, and structured documentation comments. CX Codex +1 2,800installs swift-formatstyle Teaches AI assistants to replace legacy Formatter subclasses with Foundation FormatStyle in Swift and SwiftUI. Useful for locale-safe numbers, dates, and currencies. CX Codex +1 2,700installs swiftlint Sets up SwiftLint for Swift projects, covering rules, suppressions, baselines and CI checks. Use it when adding linting to a build or bringing existing code under review. CX Codex +1 2,700installs focus-engine An AI-coding skill for focus handling in SwiftUI and UIKit: keyboard and directional movement, scene values, restoration after presentation changes. Useful when Siri Remote or Tab navigation lands on the wrong control. CX Codex +1 2,600installs ios-ettrace-performance This skill guides a focused iOS ETTrace capture from matching dSYMs to per-thread analysis. Use it when comparing a repeatable launch or runtime flow. CX Codex +1 1,200installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor