mcpField
S
swiftdata

swiftdata

github.com/rshankrasDevelopment844178 installsUpdated 14w ago
Repository

About swiftdata

A focused skill for developers working with SwiftData model designs beyond basic patterns. It covers class inheritance, polymorphic relationships and queries, and choosing between inheritance and enums.

Key features

  1. 01SwiftData class inheritance patterns
  2. 02Polymorphic relationships and queries
  3. 03Inheritance-versus-enum guidance
  4. 04Type-based querying advice

Use cases

  1. 01Designing hierarchical SwiftData models
  2. 02Querying models by type
  3. 03Choosing inheritance or enums for variants

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/rshankras/claude-code-apple-skills --skill swiftdata

After installing, type/swiftdatain Claude Code to confirm it loaded.

Details

From the project README

SwiftData Skills

SwiftData modeling patterns beyond the basics.

When This Skill Activates

Use this skill when the user:

  • Designs hierarchical SwiftData models (class inheritance)
  • Needs type-based or polymorphic queries
  • Weighs inheritance vs enum for model variants

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.

SkillReadCovers
inheritanceinheritance/SKILL.mdClass 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.

Comments

Markdown supported