swiftdata-pro
Installation
Summary
Write, review, and improve SwiftData code using modern APIs and best practices.
- Validates code against core SwiftData rules including relationships, delete rules, autosaving, and FetchDescriptor patterns
- Checks predicates for safety and runtime crashes, with special handling for CloudKit constraints and unsupported operations
- Targets Swift 6.2+ with modern concurrency; recommends indexing strategies for iOS 18+ and class inheritance patterns for iOS 26+
- Reports only genuine issues without nitpicking; organizes findings by file with before/after code examples and prioritized impact summary
SKILL.md
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.