Apple Foundation Models

•
1
•

Implements on-device AI features using Apple's Foundation Models framework for private, offline intelligence in Swift applications.

This skill enables developers to integrate Apple's native on-device language models into iOS and macOS applications, facilitating tasks like summarization, classification, and structured data extraction without server costs. It provides standardized implementation patterns for session management, typed output via the @Generable macro, and tool calling, ensuring privacy and offline functionality while handling framework-specific constraints like availability gating and context window limits. By using this skill, developers can leverage the efficiency of ~3B-class models for semantic routing and intelligent UI enhancements within the Apple ecosystem.

Key Features

01On-device availability gating for Apple Intelligence eligibility
02Structured data generation using @Generable and @Guide macros
03Session management for maintaining conversational context and transcripts
04Real-time streaming for low-latency AI responses
051 GitHub stars
06Tool calling to ground models in local application logic

Use Cases

01Building private, offline summarization features for notes or documents
02Classifying user input into typed Swift enums for semantic app routing
03Extracting structured data from unstructured text using typed Swift structs