agentsclimarketplace

Swiftdata

Skill rshankras/claude-code-apple-skills/skills/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.From its SKILL.md

Install
npx -y skills add rshankras/claude-code-apple-skills --skill swiftdata

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

1.2 KB, 208 tokens by cl100k_base, as published. Nobody here has run it

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.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.