swiftdata
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 do I install this agent skill?
npx skills add https://github.com/rshankras/claude-code-apple-skills --skill swiftdataIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill is a documentation and routing guide for SwiftData modeling patterns. It does not contain any executable code, network operations, or security risks.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
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.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/rshankras/claude-code-apple-skills/swiftdata">View swiftdata on skillZs</a>