Swiftdata
SwiftData skills — class inheritance patterns for hierarchical models, type-based querying, polym…
by rshankras · MIT
The skill
SwiftData skills — class inheritance patterns for hierarchical models, type-based querying, polymorphic relationships, and inheritance-vs-enum decisions. Use when designing SwiftData model hierarchies.
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
- Read
inheritance/SKILL.md(relative to this file) plus any reference files it lists. - Apply the guidance to the user's code. For broader macOS SwiftData architecture, see also
../macos/swiftdata-architecture/SKILL.md.
Use this skill
Connect your agent to the Skill Store MCP server and ask for it by ref: rshankras/swiftdata-10485799969.
Details
- Publisher
- rshankras
- Category
- Software Development › Mobile apps
- License
- MIT
- Updated
- 2026-07-24
References
More from rshankras
- App Store App Store optimization and marketing skills for descriptions, screenshots, keywords, review respo…
- Ad Attribution Privacy-preserving ad measurement with AdAttributionKit (SKAdNetwork's successor) — install and r…
- App Description Writer Generate compelling App Store descriptions that convert browsers into users.
- Apple Search Ads Apple Search Ads campaign strategy for indie developers — paid acquisition, keyword bidding, budg…