What problem does it solve?
This Skill solves the challenge of integrating on-device AI capabilities into Apple platform applications while maintaining user privacy and avoiding server costs. It provides comprehensive guidance for using Apple's Foundation Models framework, which powers Apple Intelligence, to perform summarization, extraction, classification, tagging, and structured generation directly on the user's device.
Core Features & Use Cases
- On-Device LLM Integration: Use the ~3B parameter Foundation Models framework for summarization, extraction, classification, and short dialog on iOS 26+, iPadOS 26+, macOS 26+, and visionOS 26+.
- Structured Output: Generate type-safe structured data using the Generable macro and Guide constrained decoding, eliminating manual JSON parsing and hallucinated keys.
- Tool Calling & Streaming: Wire tool calling for live data fetching and implement progressive UI updates with snapshot streaming over PartiallyGenerated.
- Use Case: Imagine building a note-taking app that summarizes long articles offline. Use this Skill to implement on-device summarization with streaming, availability checks for unsupported devices, and graceful fallbacks when Apple Intelligence is disabled.
Quick Start
Use the foundation-models skill to add on-device text summarization to your iOS app by checking availability, creating a LanguageModelSession with instructions, and streaming the response to update the UI progressively.