swiftdata-code-review

Community

Enhance SwiftData code quality and performance.

Authorjavierhbr
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses common pitfalls and best practices in SwiftData development, ensuring robust model design, efficient queries, safe concurrency, and reliable migrations.

Core Features & Use Cases

  • Model Design Review: Checks for correct use of @Model, @Attribute, and relationships, including delete rules.
  • Query Optimization: Identifies inefficient queries, predicate issues, and main thread blocking.
  • Concurrency Safety: Reviews @ModelActor usage, data passing between actors, and background operations.
  • Migration Validation: Ensures VersionedSchema and MigrationPlan are correctly implemented.
  • Use Case: A developer is unsure if their SwiftData model relationships are set up correctly and if their queries might perform poorly. They use this skill to get a comprehensive review and actionable feedback.

Quick Start

Use the swiftdata-code-review skill to review the provided Swift code for SwiftData best practices.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: swiftdata-code-review
Download link: https://github.com/javierhbr/random-poc/archive/main.zip#swiftdata-code-review

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.