Swiftdata

From rshankras/claude-code-apple-skills · View interactive version

Swiftdata is an AI agent skill from the GitHub repository rshankras/claude-code-apple-skills. SwiftData skills — class inheritance patterns for hierarchical models, type-based querying, polymorphic relationships, and inheritance-vs-enum decisions. Use when designing SwiftData model hierarchies.

How to use this skill

Skill file

SwiftData Skills

SwiftData modeling patterns beyond the basics.

When This Skill Activates

Use this skill when the user:

Available Skills

Paths are relative to THIS file's directory — skills run with cwd set to the

user's project, so resolve each path from this SKILL.md's own location.

| Skill | Read | Covers |

|-------|------|--------|

| inheritance | inheritance/SKILL.md | Class inheritance, polymorphic relationships, type-based querying, inheritance-vs-enum |

How to Route

  1. Read inheritance/SKILL.md (relative to this file) plus any reference files it lists.
  2. Apply the guidance to the user's code. For broader macOS SwiftData architecture, see also ../macos/swiftdata-architecture/SKILL.md.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.