Toolverse
All skills

axiom-swiftdata

by CharlesWiltgen

Use when working with SwiftData - @Model definitions, @Query in SwiftUI, @Relationship macros, ModelContext patterns, CloudKit integration, iOS 26+ features, and Swift 6 concurrency with @MainActor — Apple's native persistence framework

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Mobile
Views
1

About this skill

Use when working with SwiftData - @Model definitions, @Query in SwiftUI, @Relationship macros, ModelContext patterns, CloudKit integration, iOS 26+ features, and Swift 6 concurrency with @MainActor — Apple's native persistence framework

How to use

  1. Dodaj skill axiom-swiftdata do swojego asystenta Claude lub Copilota — będzie dostępny podczas pracy nad kodem SwiftUI i SwiftData.

  2. Zdefiniuj model danych za pomocą makra @Model. Oznacz właściwości, które mają być przechowywane, i określ relacje między modelami (np. jeden folder zawiera wiele notatek).

  3. Użyj makra @Query w widokach SwiftUI, aby automatycznie pobierać i obserwować dane. Dodaj predykaty do filtrowania (np. notatki z konkretnego folderu) i sortowanie (np. po dacie modyfikacji).

  4. Skonfiguruj relacje między modelami za pomocą makra @Relationship — określ deleteRule (np. .cascade, aby usunięcie folderu usunęło wszystkie notatki) i relacje odwrotne.

  5. Jeśli synchronizujesz dane z CloudKit, włącz obsługę w konfiguracji modelu i upewnij się, że kontekst modelu jest dostępny w hierarchii widoków.

  6. W przypadku zmian schematu bazy danych (dodanie pól, zmiana typów) skorzystaj z powiązanego skilla axiom-swiftdata-migration, aby zdefiniować migracje za pomocą VersionedSchema i SchemaMigrationPlan.

Related skills

react-native-architecture

by wshobson

Build production React Native apps with Expo, navigation, native modules, offline sync, and cross-platform patterns. Use when developing mobile apps, implementing native integrations, or architecting React Native projects.

Mobile
3978

mobile-design

by sickn33

Mobile-first design and engineering doctrine for iOS and Android apps. Covers touch interaction, performance, platform conventions, offline behavior, and mobile-specific decision-making. Teaches principles and constraints, not fixed layouts. Use for React Native, Flutter, or

Mobile
6091

unreal-engine-cpp-pro

by sickn33

Expert guide for Unreal Engine 5.x C++ development, covering UObject hygiene, performance patterns, and best practices.

Mobile
2582

swift-best-practices

by sammcj

This skill should be used when writing or reviewing Swift code for iOS or macOS projects. Apply modern Swift 6+ best practices, concurrency patterns, API design guidelines, and migration strategies. Covers async/await, actors, MainActor, Sendable, typed throws, and Swift 6

Mobile
36140

analyzing-financial-statements

by anthropics

This skill calculates key financial ratios and metrics from financial statement data for investment analysis

Mobile
16113

godot

by bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI

Mobile
547680