
Swiftdata Pro
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-codeInstalls 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:
- Check for core SwiftData issues using
references/core-rules.md. - Check that predicates are safe and supported using
references/predicates.md. - If the project uses CloudKit, check for CloudKit-specific constraints using
references/cloudkit.md. - If the project targets iOS 18+, check for indexing opportunities using
references/indexing.md. - 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