# swiftdata-pro

> Claude/Codex skill by [@twostraws](https://omgskills.com/library/twostraws/index.md) · 401 stars · Updated 2026-03-11

Writes, reviews, and improves SwiftData code using modern APIs and best practices. Use when reading, writing, or reviewing projects that use SwiftData.

## Install

```sh
git clone https://github.com/twostraws/SwiftData-Agent-Skill /tmp/SwiftData-Agent-Skill && ln -s /tmp/SwiftData-Agent-Skill/swiftdata-pro ~/.claude/skills/swiftdata-pro
```

## From README

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 If the user asks for a review, organize findings by file. For each issue: State the file and relevant line(s). Name the rule being violated. Show a brief before/after code fix. Skip files with no issues. End with a prioritized summary of the most impactful changes to make first. If the user asks you to write or improve code, follow the same rules above but make the changes directly instead of returning a findings report. Example output: Destination.swift Line 8: Add an explicit delete rule for relationships. Line 22: Do not use isEmpty == false in predicates – it crashes at runtime. Use !

## Links

- HTML page: https://omgskills.com/skills/twostraws/swiftdata-agent-skill/swiftdata-pro/
- GitHub: https://github.com/twostraws/SwiftData-Agent-Skill
- Author: [@twostraws](https://omgskills.com/library/twostraws/index.md)

## More skills by this author

- [swiftui-pro](https://omgskills.com/skills/twostraws/swiftui-agent-skill/swiftui-pro/index.md) — Comprehensively reviews SwiftUI code for best practices on modern APIs, maintainability, and performance.
   - [@twostraws](https://omgskills.com/library/twostraws/index.md) · 4.6k stars
- [swiftui-pro](https://omgskills.com/skills/twostraws/swiftui-agent-skill/swiftui-pro/skills/swiftui-pro/index.md) — Comprehensively reviews SwiftUI code for best practices on modern APIs, maintainability, and performance.
   - [@twostraws](https://omgskills.com/library/twostraws/index.md) · 4.5k stars
- [swift-concurrency-pro](https://omgskills.com/skills/twostraws/swift-concurrency-agent-skill/swift-concurrency-pro/index.md) — Reviews Swift code for concurrency correctness, modern API usage, and common async/await pitfalls.
   - [@twostraws](https://omgskills.com/library/twostraws/index.md) · 520 stars
