mcpbeat

Swiftdata

rshankras/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.

3k tokens
context cost
the whole folder, loaded on every use
2
files
instructions only
0
copies elsewhere
how many repositories repackaged it
585
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/rshankras/claude-code-apple-skills --skill swiftdata

The instruction itself

4 sections, as written by the author

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 to use it

Copy the folder

Take rshankras/swiftdata from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.