Skip to content
Back to skills

Swiftdata

ASecurity

SwiftData skills — class inheritance patterns for hierarchical models, type-based querying, polymorphic relationships, and inheritance-vs-enum decisions. Use when designing SwiftData model hierarchies.

  • 693 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 6, 2026
developmentswift

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 6, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Swiftdata?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Swiftdata
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rshankras-swiftdata/badge)](https://www.skillsdirectory.com/skills/rshankras-swiftdata)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: swiftdata
description: 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-16
review_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.

| 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`.

Files in this skill

  • SKILL.md1.2 KB
  • inheritance/SKILL.md10.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…