What problem does it solve? Building AI features on Apple platforms requires choosing between many frameworks (Foundation Models, Vision, Speech, Natural Language, Core ML, MLX) and handling availability checks, model asset downloads, context-window limits, and privacy constraints correctly. This Skill provides the routing guidance, API patterns, and failure-mode handling needed to ship on-device AI features on iOS 26 / macOS 26 without sending user data to a server. ## Core Features & Use Cases - Foundation Models LLM integration: LanguageModelSession usage, @Generable/@Guide guided generation, streaming snapshots, tool calling, dynamic GenerationSchema, transcripts, and context-window management. - Vision, Speech, and Natural Language: OCR and detection with Swift Vision requests, SpeechAnalyzer/SpeechTranscriber speech-to-text with asset installation, NLTagger sentiment/NER, and NLEmbedding/NLContextualEmbedding for semantic similarity. - On-device RAG and custom models: chunk-embed-retrieve-ground pipelines, Core ML conversion and quantization with coremltools, and MLX Swift / llama.cpp inference for open-source LLMs on Apple Silicon. - Use Case: Build a private notes assistant that transcribes voice memos with SpeechTranscriber, embeds them with NLContextualEmbedding, retrieves relevant chunks via cosine similarity, and answers questions with a grounded Foundation Models prompt, all on device. ## Quick Start Ask the agent to add an on-device summarization feature to your SwiftUI app using Foundation Models with availability checks and a fallback for unsupported devices.