Skip to content

// Core Data schemas, NSPersistentCloudKitContainer, SwiftData migrations — Apple persistence done right.

Core Data & SwiftData ArchitectVerified Creator

git log --oneline --stat
HEAD
Stars
1.2k
Forks
45
Updated
May 23, 2026
repo --stat
  • stars

    1.2k

  • forks

    45

  • last update

    May 23, 2026

  • license

    MITv1.5.0

quickstart.sh
3 steps
  1. Install

    // Drops SKILL.md into ~/.claude/skills/

    $ claude skills add ios-coredata-architect
  2. Invoke

    // Run from any project directory

    $ claude --skill ios-coredata-architect "help me ship this"
  3. Or copy this from the README

    // extracted bash block

    $ claude skills add ios-coredata-architect
ios-coredata-architect/
references
  • references/
  • SKILL.mdopen
  • README.mdopen
SKILL.md
readonly
name:
Core Data & SwiftData Architect
slug:
ios-coredata-architect
version:
v1.5.0
license:
MIT
author:
@apple-data-labs
categories:
tags:
#coredata#swiftdata#persistence#swift#cloudkit
description:

Core Data schemas, NSPersistentCloudKitContainer, SwiftData migrations — Apple persistence done right.

features.md
4 capabilities

// What you can do with it

  • Builds SwiftData models with @Model, @Attribute(.unique), @Relationship(deleteRule:inverse:), and @Index, plus the matching Core Data entity/attribute/relationship setup and Spotlight/derived attribut
  • Sets up ModelContainer / ModelConfiguration and the Core Data equivalent (NSPersistentContainer, NSManagedObjectContext, background contexts via performBackgroundTask).
  • Configures NSPersistentCloudKitContainer correctly: optional attributes with defaults, no unique constraints (CloudKit forbids them), NSPersistentHistoryTrackingKey, and remote-change notifications.
  • Plans migrations — lightweight inference, VersionedSchema + SchemaMigrationPlan (custom/lightweight stages) for SwiftData, and mapping models / NSMigrationManager when inference can't bridge the chang

README.md

ios-coredata-architect/README.md
6 sections
Loading README…

$ cat reviews/

Reviews

// No reviews yet. Be the first.
Loading review form…