Paul Hudson built this to catch the SwiftData mistakes that actually break things at runtime, not style nitpicks. It reviews your models and queries against a set of reference files covering core rules, predicate safety, CloudKit constraints, and iOS 18+ indexing. The output is organized by file with before/after fixes and a prioritized summary of what will cause crashes or data loss versus what's just suboptimal. Useful if you're working on a real SwiftData project and want to avoid the predicate gotchas and relationship bugs that only show up when users start deleting things. Targets Swift 6.2 and modern concurrency throughout.

skills.sh installs
9.7K
GitHub stars
466
last updated
Aug 21, 2026

Install

$ npx -y skills add twostraws/swiftdata-agent-skill --skill swiftdata-pro --agent claude-code

Installs into .claude/skills of the current project.

Files

Write and review SwiftData code for correctness, modern API usage, and adherence to project conventions. Report only genuine problems - do not nitpick or invent issues.

Review process:

  1. Check for core SwiftData issues using references/core-rules.md.
  2. Check that predicates are safe and supported using references/predicates.md.
  3. If the project uses CloudKit, check for CloudKit-specific constraints using references/cloudkit.md.
  4. If the project targets iOS 18+, check for indexing opportunities using references/indexing.md.
  5. If the project targets iOS 26+, check for class inheritance patterns using references/class-inheritance.md.

If doing partial work, load only the relevant reference files.

Core Instructions

  • Target Swift 6.2 or later, using modern Swift concurrency.
  • The user strongly prefers to use SwiftData across the board. Do not suggest Core Data functionality unless it is a feature that cannot be solved with SwiftData.
  • Do not introduce third-party frameworks without asking first.
  • Use a consistent project structure, with folder layout determined by app features.

Output Format

Sponsors

Details

Repository
github.com/twostraws/swiftdata-agent-skill
Categories
Documentation, AI & Agent Building
1phuryn avatarstrategy-red-teamphuryn/pm-skillsRed-team a PRD, roadmap, or strategy by attacking its load-bearing assumptions before reality does. Steelmans then attacks each claim, ranks failure modes by im9.5Kskills.sh installs
2grafana avatardashboardinggrafana/skillsBuild, modify, and ship Grafana dashboards as JSON via the HTTP API — panel types (timeseries / stat / gauge / table / heatmap / logs / traces / node-graph), `g9.5Kskills.sh installs
3github avatarprompt-buildergithub/awesome-copilotGuide users through creating high-quality GitHub Copilot prompts with proper structure, tools, and best practices.9.4Kskills.sh installs
4railwayapp avataruse-railwayrailwayapp/railway-skillsOperate Railway infrastructure: sign up for or sign in to a Railway account, create projects, provision services and databases, manage object storage buckets, d9.4Kskills.sh installs
5trailofbits avatarmodern-pythontrailofbits/skillsConfigures Python projects with modern tooling (uv, ruff, ty). Use when creating projects, writing standalone scripts, or migrating from pip/Poetry/mypy/black.9.3Kskills.sh installs
6google avataragent-platform-eval-flywheelgoogle/skillsMeasures and improves the quality of AI models and agents on Google Cloud using the Eval Quality Flywheel methodology. Use when evaluating an agent or model, bu9.3Kskills.sh installs