core-data-expert

core-data-expert is a skill for Claude Code from AvdLee/Core-Data-Agent-Skill. It costs 58 tokens per session (1,082 once invoked), scanned A, original, MIT.

A specialist guide to Core Data, Apple's framework for storing and querying app data on iOS and macOS. It covers local databases, background work, migrations, and optional CloudKit syncing.

In plain words
What is it for?
Use it to set up Core Data, write fetches, resolve save conflicts, move work between contexts, perform batch operations, migrate schemas, or connect storage to CloudKit.
Why use it?
It helps avoid data-store crashes, thread-safety mistakes, slow database operations, and migration problems.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the core-data-expert plugin — 1 skill shipped together

not rated 323repo 2mo ago A scan Socket: passSnyk: passSkillSpector: pass 58 tokens original MIT

Good fit Use it to set up Core Data, write fetches, resolve save conflicts, move work between contexts, perform batch operations, migrate schemas, or connect storage to CloudKit.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/avdlee/core-data-agent-skill/core-data-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AvdLee/Core-Data-Agent-Skill --skill core-data-expert
Clone the repo
git clone --depth 1 https://github.com/AvdLee/Core-Data-Agent-Skill

Made for: Claude Code.

Or install core-data-expert, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for core-data-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/avdlee/core-data-agent-skill/core-data-expert/github.svg)](https://agentmods.dev/skills/avdlee/core-data-agent-skill/core-data-expert)
Your own site
<a href="https://agentmods.dev/skills/avdlee/core-data-agent-skill/core-data-expert"><img src="https://agentmods.dev/badge/skills/avdlee/core-data-agent-skill/core-data-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for core-data-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/avdlee/core-data-agent-skill/core-data-expert"><img src="https://agentmods.dev/badge/skills/avdlee/core-data-agent-skill/core-data-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,082 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 14 Sept 2026
  • Snyk pass 14 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.01082
Opus 5.5 $0.00023 $0.00433
Sonnet 5.5 $0.00012 $0.00216
Haiku 4.5 $0.00006 $0.00108

Measured 3mo ago against content hash 74cac8c2a868, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

core-data-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

core-data-expert/SKILL.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Core Data Expert

Fast, production-oriented guidance for building correct, performant Core Data stacks and fixing common crashes.

Agent behavior contract (follow these rules)

  1. Determine OS/deployment target when advice depends on availability (iOS 14+/17+ features, etc.).
  2. Identify the context type before proposing fixes: view context (UI) vs background context (heavy work).
  3. Recommend NSManagedObjectID for cross-context/cross-task communication; never pass NSManagedObject instances across contexts.
  4. Prefer lightweight migration when possible; use staged migration (iOS 17+) for complex changes.
  5. When recommending batch operations, verify persistent history tracking is enabled (often required for UI updates).
  6. For CloudKit integration, remind developers that Production schema is immutable.
  7. Reference WWDC/external resources sparingly; prefer this skill’s references/.

First 60 seconds (triage template)

  • Clarify the goal: setup, bugfix, migration, performance, CloudKit?
  • Collect minimal facts:
    • platform + deployment target
    • store type (SQLite / in-memory) and whether CloudKit is enabled
    • context involved (view vs background) and whether Swift Concurrency is in use
    • exact error message + stack trace/logs
  • Branch immediately:
    • threading/crash → focus on context confinement + NSManagedObjectID handoff
    • migration error → identify model versions + migration strategy
    • batch ops not updating UI → persistent history tracking + merge pipeline

Routing map (pick the right reference fast)

  • Stack setup / merge policies / contexts → references/stack-setup.md
  • Saving patterns → references/saving.md
  • Fetch requests / list updates / aggregates → references/fetch-requests.md
  • Traditional threading (perform/performAndWait, object IDs) → references/threading.md
  • Swift Concurrency (async/await, actors, Sendable, DAOs) → references/concurrency.md
  • Batch insert/delete/update → references/batch-operations.md
  • Persistent history tracking + “batch ops not updating UI” → references/persistent-history.md
  • Model configuration (constraints, validation, derived/composite, transformables) → references/model-configuration.md
  • Schema migration (lightweight/staged/deferred) → references/migration.md
  • CloudKit integration & debugging → references/cloudkit-integration.md
  • Performance profiling & memory → references/performance.md
  • Testing patterns → references/testing.md
  • Terminology → references/glossary.md

Read the full file on GitHub · 83 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 83 lines · 58 tokens per session scan A 74cac8c2a868

Subscribe to this mod's changes

core-data-expert is a skill published in the GitHub repository AvdLee/Core-Data-Agent-Skill (323 stars, last pushed 2mo ago), licensed MIT. It adds 58 tokens to every session and 1,082 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

core-data-expert compared with skills from other repositories

core-data-expert next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
core-data-expertAvdLee/Core-Data-Agent-SkillSkill3232mo agoMITA58Claude Code
swiftdata-workflowgaelic-ghost/socketSkill113mo agoApache-2.0A74Claude Code, Codex
data-persistencetroyjthomas/ios-agent-skillsSkill26mo agoMITA76Claude Code, Codex
cloudkitJordanCoin/ios-skills-collectionSkill62mo agononeA102Claude Code
swiftdataJordanCoin/ios-skills-collectionSkill62mo agononeA106Claude Code
core-data-expertJordanCoin/ios-skills-collectionSkill62mo agononeA58Claude Code
sweetpadsweetpad-dev/sweetpadSkill1.9ktodayMITA90Claude Code, Codex