← LeaderboardThe Skill Leaderboard

swiftdata

Skill file skills/swiftdata/SKILL.md in rshankras/claude-code-apple-skills. Read the publisher’s upstream source.

Description could not be read from the source metadata.

Published by rshankras ↗rshankras/claude-code-apple-skills

Try your first task

swiftdata

Start a fresh conversation. Replace the highlighted placeholders.

Use swiftdata to review and design the SwiftData hierarchy for [models, relationships, variant differences, and required queries], recommending inheritance, enums, or protocols and providing the resulting model/query design with migration considerations.

Required inputs

  • [models, relationships, variant differences, and required queries]

User-approved starter prompt based on a pinned source version; check current skill requirements before running. Task evidence ↗

SKILL.md

name: swiftdatadescription: SwiftData skills — class inheritance patterns for hierarchical models, type-based querying, polymorphic relationships, and inheritance-vs-enum decisions. Use when designing SwiftData model hierarchies.allowed-tools: [Read, Glob, Grep]last_verified: 2026-07-16review_by: 2027-06-22

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.
swiftdata by rshankras · The Skill Leaderboard