Agent skill · AI & Agents

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.

rshankrasgithub.com/rshankrasGitHub ↗
claude-coderead-onlyMIT
Install
npx skills add rshankras/claude-code-apple-skills --skill swiftdata --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 1 KB
Bundled scripts: none
Allowed tools: ReadGlobGrep
Path: skills/swiftdata/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 589
Language: Swift

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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 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's inside
Steps it walks through
  1. When This Skill Activates
  2. Available Skills
  3. How to Route
Ships with 1 file
  • inheritance/SKILL.md
More from claude-code-apple-skills
All skills →
About this skill
What does the swiftdata skill do?

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 it?

Run `npx skills add rshankras/claude-code-apple-skills --skill swiftdata --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From rshankras/claude-code-apple-skills, a repository with 589 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going