---
name: rshankras/swiftdata
source: https://app.decimal.ai/s/rshankras-swiftdata@1/SKILL.md
source_sha256: f8f0f97e49f7
---

# 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.

| 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`.