Skip to content
Development
Skill

/swiftdata

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

From plugin
apple-skills
35229 skills

Claude Code

$ npx -y skills add Prisma-Labs-Dev/apple-skills --skill swiftdata --agent claude-code

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
@prisma-labs-dev
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.

Stars on GitHub

Momentum

stars in total
352
Star history of Prisma-Labs-Dev/apple-skills on GitHub, a chart by star-history.com

Other skills on apple-skills.

apple-aso

apple-aso

Optimize Apple App Store metadata in store.config.json for ASO (App Store Optimization). Use when working with store.config.json,…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about swiftdata.

Which coding agents can use swiftdata?
swiftdata installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.