Leaderboard/Software Engineering/SwiftData-Agent-Skill
Last commit on March 11, 2026·Created on March 11, 2026

twostraws/SwiftData-Agent-Skill

Checks SwiftData code for unsafe predicates, missing delete rules, and misplaced @Query.
Combined rank
#554
across all skills
In Software Engineering
#46
category rank
Stars
416
+1.7% in last 7d
Forks
20
+5.3% in last 7d
Watchers
9
0.0% in last 7d
Traction scoreGitHub stars can be faked, so popularity alone can be misleading. Traction Score looks for broader signs of recent attention, adoption, and active maintenance.
TL;DR

This skill walks through a structured review process for SwiftData code: core rules, predicate safety, CloudKit constraints, indexing for iOS 18+, and class inheritance for iOS 26+. For each issue it reports the file, line, rule violated, and a before/after fix, then ends with a prioritized summary. It helps SwiftData developers and Apple platform engineers catch patterns that crash at runtime—like isEmpty in predicates or @Query outside SwiftUI views—before merging.

WHO IT'S FOR
Apple SwiftData Developers
write and review SwiftData code
AI-Assisted Development Teams
integrate SwiftData coding standards into AI workflows
Apple Platform Code Reviewers
review SwiftData code for issues
Technical Leads on Apple Projects
establish SwiftData coding standards and conventions
Repository contents

1 skill file

Compatible AgentsThe repository documents support for these agents. The skills may also work with other agents that can load SKILL.md files, but they may need some setup or small changes.

Use this skill

Follow the documented setup, then try a first task.

I’m using

Install SwiftData Pro with npx

Installs: Installs the SwiftData Pro skill; during installation, choose either one-project availability or availability across all projects. · Claude Code, Codex, Gemini, Cursor

Before you start
  • Node installed so that npx is available.
  • Swift 6.2 or later.
  • An iOS 26 or later target.

Platform: iOS 26 or later

  1. Run this terminal command. During the interactive installation, select the desired supported agents and choose whether SwiftData Pro should be available only in one project or across all projects.

    npx skills add https://github.com/twostraws/swiftdata-agent-skill --skill swiftdata-pro
README.md · Checked Sep 18, 2026swiftdata-pro/SKILL.md · Checked Sep 18, 2026

Give it something to do.

Author’s example

Check SwiftData code for modern API usage

Uses swiftdata-pro

  • A SwiftData project or the Swift source files to review
/swiftdata-pro Check my code for latest API usage
README.md · Checked Sep 18, 2026swiftdata-pro/SKILL.md · Checked Sep 18, 2026
Author’s example

Find indexing opportunities in SwiftData models

Uses swiftdata-pro

  • SwiftData model source files
  • The project's iOS deployment target
$swiftdata-pro Check where indexes should be added to my SwiftData models
README.md · Checked Sep 18, 2026swiftdata-pro/SKILL.md · Checked Sep 18, 2026
Author’s example

Enable iCloud support in a SwiftData project

Uses SwiftData Pro

  • A SwiftData project that should use iCloud or CloudKit
Use the SwiftData Pro skill to enable iCloud support in this project.
README.md · Checked Sep 18, 2026swiftdata-pro/SKILL.md · Checked Sep 18, 2026