Skip to content
Development
Skill

/swiftdata

API reference: SwiftData. Query for @Model, ModelContext, @Query, schema migrations.

From plugin
apple-skills
29933 skills
Install
$ npx -y skills add vabole/apple-skills --skill swiftdata --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/swiftdata

Context preview

The summary Claude sees to decide when to auto-load this skill.

API reference: SwiftData. Query for @Model, ModelContext, @Query, schema migrations.

SKILL.md

swiftdata.SKILL.md
name: swiftdata
user-invocable: true
description: "API reference: SwiftData. Query for @Model, ModelContext, @Query, schema migrations."
context: fork
agent: Explore

SwiftData Documentation

Search these docs to answer questions about SwiftData APIs.

Return Format

Always include: 1. **Summary** - Answer the question concisely 2. **File paths** - List relevant files for full details, e.g.:

  • `swiftdata-model.md` for @Model macro
  • `swiftdata-query.md` for @Query usage

Files

  • `swiftdata-index.md` - Framework overview and all available APIs
  • `swiftdata-model.md` - @Model macro and model definition
  • `swiftdata-modelcontext.md` - ModelContext for CRUD operations
  • `swiftdata-query.md` - @Query property wrapper for fetching data
Ships withapple-skills

Apple development skills for Claude Code, Codex, and other coding agents — current iOS 26+ APIs, SwiftUI, UIKit, Liquid Glass, Human Interface Guidelines, and practical workflow guides.

Get the whole plugin
Stats
313
Stars
17
Forks
Active
Maintenance
TypeScript
Language
MIT
License
7d ago
Last commit
6mo ago
Created

Repo: vabole/apple-skills