Expert SwiftData review and writing guidance that enforces modern APIs, safe predicates, and CloudKit constraints.

CCM score
78 of 100
skills.sh installs
10.1K
GitHub stars
475
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers core SwiftData rules, predicate safety, CloudKit constraints, iOS 18+ indexing, and iOS 26+ class inheritance patterns
  • Includes five reference files: core-rules.md, predicates.md, cloudkit.md, indexing.md, and class-inheritance.md, loaded only when relevant
  • Flags runtime crash patterns such as isEmpty == false in predicates and reports only genuine problems, not style nitpicks
  • Designed for reviewing and writing Swift 6.2 projects that use SwiftData as the persistence layer instead of Core Data

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

Details

Repository
github.com/twostraws/swiftdata-agent-skill
Categories
Mobile Apps, Databases

Similar to Swiftdata Pro

More Mobile Apps