apple-data
Apple データ永続化・データフロー・ネットワーク・ユーティリティリファレンス。SwiftData / Core Data / Foundation / Combine。 @Model, ModelContainer, ModelContext, @Query, Predicate, FetchDescriptor, NSManagedObject, NSFetchRequest, NSFetchedResultsController, NSPersistentContainer, NSPersistentCloudKitContainer, URLSession, JSONDecoder, Publisher, @Published, AnyCancellable
How do I install this agent skill?
npx skills add https://github.com/fandhe-ai/agent-reference-skills --skill apple-dataIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill serves as a static documentation reference for Apple's data persistence and networking frameworks (SwiftData, Core Data, Foundation, and Combine). It consists entirely of Markdown files providing API signatures and usage examples. No executable code, shell commands, or external dependencies are included.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Apple Data リファレンス
Apple のデータ永続化・データフロー関連フレームワーク(SwiftData / Core Data / Foundation / Combine)を網羅したスキル。 ユーザーのタスクに応じて適切な README.md を読み、そこから個別ファイルへ辿ること。
ディレクトリ構成
skills/apple-data/
SKILL.md
references/
swiftdata/
README.md
model-macro.md
persistent-model.md
model-container.md
model-context.md
query-macro.md
query-struct.md
predicate.md
fetch-descriptor.md
sort-descriptor.md
schema.md
model-configuration.md
attribute-macro.md
relationship-macro.md
transient-macro.md
versioned-schema.md
schema-migration-plan.md
unique-macro.md
index-macro.md
data-store-protocol.md
history-tracking.md
model-document.md
results-observer.md
sectioned-results.md
errors.md
default-store.md
inheritance.md
coredata/
README.md
nsmanagedobject.md
nsmanagedobjectcontext.md
nsmanagedobjectmodel.md
nspersistentcontainer.md
nspersistentstorecoordinator.md
nspersistentstoredescription.md
nsfetchrequest.md
nsentitydescription.md
nspredicate.md
nssortdescriptor.md
nsfetchedresultscontroller.md
nsbatchinsertrequest.md
nsbatchdeleterequest.md
fetchrequest-swiftui.md
nsmanaged.md
nsasynchronousfetchrequest.md
nspersistentcloudkitcontainer.md
persistent-history.md
staged-migration.md
adopting-swiftdata.md
foundation/
README.md
data.md
date.md
datecomponents.md
calendar.md
timezone.md
dateinterval.md
url.md
urlcomponents.md
urlrequest.md
urlsession.md
uuid.md
measurement.md
locale.md
numberformatter.md
dateformatter.md
iso8601dateformatter.md
filemanager.md
bundle.md
notificationcenter.md
userdefaults.md
jsonencoder.md
jsondecoder.md
propertylistencoder.md
combine/
README.md
publisher.md
subscriber.md
subscription.md
subject.md
passthroughsubject.md
currentvaluesubject.md
anypublisher.md
anycancellable.md
cancellable.md
published.md
sink.md
assign.md
operators-transforming.md
operators-filtering.md
operators-combining.md
operators-timing.md
receive-on.md
erasetoanypublisher.md
future.md
convenience-publishers.md
connectable-publisher.md
async-publisher.md
observable-object.md
scheduler.md
探索手順
タスクからカテゴリを引き、カテゴリの README.md で目的のページを特定する:
- 下記マッピング表でタスクに対応するカテゴリを探す
- そのカテゴリの
references/{category}/README.mdを参照して目的のページを特定する - 該当ページの
.mdを Read して詳細を確認する
タスク → カテゴリ マッピング
| タスク | カテゴリ | 参照 README |
|---|---|---|
| @Model でモデルクラスを定義したい | swiftdata | references/swiftdata/README.md |
| ModelContainer / ModelContext をセットアップしたい | swiftdata | references/swiftdata/README.md |
| @Query / FetchDescriptor でデータを取得したい | swiftdata | references/swiftdata/README.md |
| Predicate / SortDescriptor でフィルタ・ソートしたい | swiftdata | references/swiftdata/README.md |
| @Attribute / @Relationship / @Transient を設定したい | swiftdata | references/swiftdata/README.md |
| VersionedSchema / SchemaMigrationPlan でマイグレーションしたい | swiftdata | references/swiftdata/README.md |
| @Unique / @Index で一意性・索引を設定したい | swiftdata | references/swiftdata/README.md |
| DataStore プロトコルでカスタムストレージを実装したい | swiftdata | references/swiftdata/README.md |
| History tracking / ResultsObserver で変更を観測したい | swiftdata | references/swiftdata/README.md |
| ModelDocument でドキュメントベースアプリを作りたい | swiftdata | references/swiftdata/README.md |
| @Query / ResultsObserver の結果をセクション分け (sectionBy / SectionedResults) したい | swiftdata | references/swiftdata/README.md |
| SwiftData のエラー (SwiftDataError / DataStoreError) を扱いたい | swiftdata | references/swiftdata/README.md |
| デフォルトストア (DefaultStore) の挙動を知りたい | swiftdata | references/swiftdata/README.md |
| モデルクラスの継承 (inheritance) を使いたい | swiftdata | references/swiftdata/README.md |
| NSAsynchronousFetchRequest で非同期フェッチしたい | coredata | references/coredata/README.md |
| NSPersistentCloudKitContainer で CloudKit 同期したい | coredata | references/coredata/README.md |
| Core Data の persistent history を追跡したい | coredata | references/coredata/README.md |
| NSStagedMigrationManager で段階的マイグレーションしたい | coredata | references/coredata/README.md |
| Core Data アプリを SwiftData へ移行・併用したい / Core Data の型付き通知メッセージ (iOS 27) を使いたい | coredata | references/coredata/README.md |
| NSManagedObject でエンティティを操作したい | coredata | references/coredata/README.md |
| NSManagedObjectContext で CRUD を実行したい | coredata | references/coredata/README.md |
| NSPersistentContainer でスタックをセットアップしたい | coredata | references/coredata/README.md |
| NSFetchRequest / NSPredicate でデータをフェッチしたい | coredata | references/coredata/README.md |
| NSFetchedResultsController で UI と同期したい | coredata | references/coredata/README.md |
| NSBatchInsertRequest / NSBatchDeleteRequest でバッチ処理したい | coredata | references/coredata/README.md |
| URLSession でネットワークリクエストを送りたい | foundation | references/foundation/README.md |
| JSONEncoder / JSONDecoder で JSON を変換したい | foundation | references/foundation/README.md |
| Date / Calendar / DateComponents で日付を扱いたい | foundation | references/foundation/README.md |
| FileManager でファイル操作をしたい | foundation | references/foundation/README.md |
| UserDefaults / NotificationCenter を使いたい | foundation | references/foundation/README.md |
| UUID / Measurement / Locale を使いたい | foundation | references/foundation/README.md |
| Publisher / Subscriber でリアクティブストリームを構築したい | combine | references/combine/README.md |
| @Published でプロパティの変更を購読したい | combine | references/combine/README.md |
| PassthroughSubject / CurrentValueSubject でイベントを送信したい | combine | references/combine/README.md |
| sink / assign でストリームを購読・バインドしたい | combine | references/combine/README.md |
| map / filter / flatMap 等のオペレーターを使いたい | combine | references/combine/README.md |
| receive(on:) でスレッドを切り替えたい | combine | references/combine/README.md |
| AnyCancellable / eraseToAnyPublisher で型を消去したい | combine | references/combine/README.md |
| 完了ハンドラーを Future / Just / Deferred でラップしたい | combine | references/combine/README.md |
| ConnectablePublisher / share / multicast で Publisher を共有したい | combine | references/combine/README.md |
| async/await (values / AsyncPublisher) で Publisher を消費したい | combine | references/combine/README.md |
| ObservableObject / Scheduler を使いたい | combine | references/combine/README.md |
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/fandhe-ai/agent-reference-skills/apple-data">View apple-data on skillZs</a>