ios-frameworks
CoreData/SwiftData, CoreML, ARKit, CloudKit, StoreKit 2, HealthKit, CoreLocation, APNs push
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o ios-frameworks.zip https://jpskill.com/download/22258.zip && unzip -o ios-frameworks.zip && rm ios-frameworks.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22258.zip -OutFile "$d\ios-frameworks.zip"; Expand-Archive "$d\ios-frameworks.zip" -DestinationPath $d -Force; ri "$d\ios-frameworks.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
ios-frameworks.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
ios-frameworksフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Claude が読む原文 SKILL.md(中身を展開)
この本文は AI(Claude)が読むための原文(英語または中国語)です。日本語訳は順次追加中。
ios-frameworks
Purpose
This skill equips the AI to assist with iOS app development using Apple's core frameworks, focusing on data management, ML integration, AR experiences, cloud syncing, in-app purchases, health tracking, location services, and push notifications.
When to Use
Use this skill for apps requiring local data persistence (e.g., user profiles), integrating ML models for predictions, building AR overlays, syncing data to iCloud, handling purchases, accessing health data, tracking user locations, or sending push notifications. Apply it in scenarios like e-commerce apps with payments, fitness trackers, or AR games.
Key Capabilities
- CoreData/SwiftData: Manages persistent object graphs; SwiftData offers a modern SwiftUI-friendly alternative for data modeling and storage.
- CoreML: Runs on-device ML models for tasks like image recognition; supports models from Create ML or TensorFlow.
- ARKit: Enables AR sessions for plane detection, object tracking, and world mapping using device's camera and sensors.
- CloudKit: Provides iCloud-based storage and databases for syncing user data across devices via CKContainer and CKRecord.
- StoreKit 2: Handles in-app purchases and subscriptions with SKProduct and SKPayment APIs for monetization.
- HealthKit: Accesses health and fitness data like steps or heart rate via HKHealthStore, requiring user permissions.
- CoreLocation: Delivers location updates and geofencing using CLLocationManager for apps needing real-time positioning.
- APNs Push: Sends remote notifications through Apple's Push Notification service using device tokens and APNs provider API.
Usage Patterns
To use CoreData, initialize a persistent container in AppDelegate and perform fetches in view controllers. For ARKit, start an AR session in a UIViewController subclass and handle anchor updates. Integrate CoreML by loading a .mlmodel file and running predictions in response to user input. Pattern for CloudKit: Use CKDatabase to save records and subscribe to changes. For StoreKit 2, request products and process transactions in a payment queue observer. Access HealthKit by querying HKSampleType after requesting authorization. Use CoreLocation by configuring CLLocationManager delegates for updates. For APNs, register for remote notifications and handle incoming payloads in AppDelegate.
Common Commands/API
- CoreData Setup: In AppDelegate.swift, create a persistent container:
let container = NSPersistentContainer(name: "MyApp")
container.loadPersistentStores { ... } - CoreML Prediction: Load and predict with:
let model = MyModel() let input = MyModelInput(...) let output = try model.prediction(input: input) - ARKit Session: In a view controller:
let session = ARSession() session.delegate = self session.run(ARWorldTrackingConfiguration()) - CloudKit Record Save: Using CKDatabase:
let record = CKRecord(recordType: "MyType") record["field"] = "value" database.save(record) { ... } - StoreKit 2 Purchase: Request and buy:
let request = SKProductsRequest(productIdentifiers: ["com.example.product"]) request.start() // In delegate, handle products and SKPayment - HealthKit Query: Authorize and query:
healthStore.requestAuthorization { ... } let query = HKSampleQuery(sampleType: HKQuantityType(...), ...) { ... } - CoreLocation Updates: Start monitoring:
locationManager.requestWhenInUseAuthorization() locationManager.startUpdatingLocation() - APNs Registration: In AppDelegate:
UNUserNotificationCenter.current().requestAuthorization { ... } application.registerForRemoteNotifications()
Integration Notes
Add frameworks via Xcode: Select target > General > Frameworks, Libraries, and Embedded Content, then add CoreData.framework, etc. For permissions, update Info.plist (e.g., NSLocationWhenInUseUsageDescription for CoreLocation). Use environment variables for keys like $CLOUDKIT_API_KEY in scripts or configs. For CloudKit, enable iCloud capability in Xcode and set up a container in the developer portal. Import modules in code (e.g., import CoreData). For APNs, generate a certificate in Apple Developer portal and use it with your server. Config format: In entitlements file, add iCloud capabilities like com.apple.developer.icloud-container-identifiers. Ensure SwiftData compatibility by targeting iOS 17+.
Error Handling
For CoreData, catch NSPersistentStoreCoordinator errors during setup (e.g., catch let error as NSError { print(error.localizedDescription) }). In CoreML, handle prediction errors with do { try model.prediction(...) } catch { print(error) }. ARKit sessions may throw ARSession.RunOptions errors; check session state in delegate methods. CloudKit operations use CKError; handle with if case .partialFailure(let errors) = error { ... }. StoreKit errors from SKPaymentTransaction include codes like .paymentCancelled; observe queue for failures. HealthKit authorization failures require UI prompts; check error as HKErrorCode. CoreLocation errors via delegate's didFailWithError; use error codes for debugging. For APNs, handle registration errors in AppDelegate's didFailToRegisterForRemoteNotificationsWithError.
Concrete Usage Examples
-
Example: Building a CoreData-based To-Do App
Set up CoreData in a new project: Create a data model in Xcode, then in ViewController.swift, fetch items with:
let fetchRequest: NSFetchRequest<Item> = Item.fetchRequest() do { let items = try context.fetch(fetchRequest) } catch { ... }
Save a new item:let newItem = Item(context: context); newItem.name = "Task"; try context.save(). -
Example: Integrating ARKit for Object Detection
In a ARViewController, configure for object detection:
let configuration = ARWorldTrackingConfiguration() configuration.detectionImages = Set([ARReferenceImage(...)] ) session.run(configuration)
Handle detection insession(_:didUpdate:)delegate to overlay UI elements.
Graph Relationships
- Related to: mobile cluster (e.g., android-frameworks for cross-platform insights).
- Depends on: authentication skills for APNs and CloudKit (uses $APNS_TOKEN).
- Integrates with: backend skills for CloudKit syncing.
- Conflicts with: non-Apple ecosystems, but can link to web-api skills for hybrid apps.