# Swiftdata

> SwiftData skills — class inheritance patterns for hierarchical models, type-based querying, polym…

SwiftData skills — class inheritance patterns for hierarchical models, type-based querying, polymorphic relationships, and inheritance-vs-enum decisions. Use when designing SwiftData model hierarchies.

- Page: https://ss33.ai/skills/rshankras/swiftdata-10485799969
- Publisher: rshankras
- Category: [Software Development](https://ss33.ai/skills/category/software-development-t44z8z) › [Mobile apps](https://ss33.ai/skills/category/software-development-t44z8z/mobile-apps-p8puwc)
- License: MIT
- Source: https://github.com/rshankras/claude-code-apple-skills/blob/9ffb83138209057875698dd11c1720c657c47a92/skills/swiftdata/SKILL.md

## Skill

SKILL.md: https://ss33.ai/api/v1/ss33/download/rshankras/swiftdata-10485799969

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