An Agent Skill focused on Apple’s Core Data framework, helping with data modeling, fetch requests, performance, and common persistence patterns.
npx skills add https://github.com/avdlee/core-data-agent-skill --skill core-data-expertInstall this skill with the CLI and start using the SKILL.md workflow in your workspace.
Expert guidance for any AI coding tool that supports the Agent Skills open format — safe persistence, performance optimization, and schema migration.
Based on the Core Data Best Practices repo, WeTransfer production apps, and WWDC sessions, distilled into actionable, concise references for agents.
Install this skill with a single command:
npx skills add https://github.com/avdlee/core-data-agent-skill --skill core-data-expert
For more information, visit the skills.sh platform page.
Then use the skill in your AI agent, for example:
Use the core data skill and analyze the current project for Core Data improvements
To install this Skill for your personal use in Claude Code:
Add the marketplace:
/plugin marketplace add AvdLee/Core-Data-Agent-Skill
Install the Skill:
/plugin install core-data-expert@core-data-agent-skill
To automatically provide this Skill to everyone working in a repository, configure the repository's .claude/settings.json:
{
"enabledPlugins": {
"core-data-expert@core-data-agent-skill": true
},
"extraKnownMarketplaces": {
"core-data-agent-skill": {
"source": {
"source": "github",
"repo": "AvdLee/Core-Data-Agent-Skill"
}
}
}
}
When team members open the project, Claude Code will prompt them to install the Skill.
core-data-expert/ folder following your tool's official skills installation docs (see links below).Follow your tool's official documentation, here are a few popular ones:
How to verify:
Your agent should reference the triage/playbook in core-data-expert/SKILL.md and jump into the relevant reference file for your error or task.
This skill gives your AI coding tool comprehensive Core Data guidance. It can:
Expert Knowledge: Based primarily on the comprehensive SwiftLee Core Data articles and the Core Data Best Practices repository, with additional insights from WWDC sessions. All content reflects real-world experience from production apps like Collect by WeTransfer.
Non-Opinionated: Focuses on industry-standard best practices and compile-time safety, not architectural preferences. Works with any Swift project, coding style, or architecture.
Modern Core Data: Covers the latest features including:
Practical & Concise: Assumes your AI agent is already smart. Focuses on what developers need to know, not what they already understand. Includes code examples for every pattern.
core-data-expert/
├── SKILL.md # Main skill file with decision trees
└── references/
├── _index.md # Navigation index
├── batch-operations.md # NSBatchInsertRequest, NSBatchDeleteRequest, NSBatchUpdateRequest
├── cloudkit-integration.md # NSPersistentCloudKitContainer, schema design, monitoring
├── fetch-requests.md # Query optimization, NSFetchedResultsController, aggregates
├── glossary.md # Core Data terminology and quick definitions
├── migration.md # Lightweight, staged, and deferred migration strategies
├── model-configuration.md # Constraints, derived attributes, transformables, validation
├── performance.md # Profiling with Instruments, memory management, optimization
├── persistent-history.md # History tracking setup, Observer/Fetcher/Merger/Cleaner
├── project-audit.md # Checklist to discover a project's Core Data setup
├── saving.md # Conditional saving, hasPersistentChanges, save timing
├── stack-setup.md # NSPersistentContainer setup, merge policies, contexts
├── testing.md # In-memory stores, shared models, data generators
└── threading.md # NSManagedObjectID, perform vs performAndWait, concurrency
This skill is based primarily on:
Additional resources:
Contributions are welcome! This repository follows the Agent Skills open format, which has specific structural requirements.
We strongly recommend using AI assistance for contributions:
Please read CONTRIBUTING.md for:
This skill is maintained to reflect the latest Core Data best practices and will be updated as the framework evolves.
Created by Antoine van der Lee, a Swift expert with years of experience building production apps with Core Data. He developed the Collect by WeTransfer app for over four years and has published numerous articles on Core Data on his blog called SwiftLee.
This skill is open-source and available under the MIT License. See LICENSE for details.