foundation-models

Installation
SKILL.md

Foundation Models

Apple's on-device AI framework providing access to a 3B parameter language model for summarization, extraction, classification, and content generation. Runs entirely on-device with no network required.

Overview

Foundation Models enable intelligent text processing directly on device without server round-trips, user data sharing, or network dependencies. The core principle: leverage on-device AI for specific, contained tasks (not for general knowledge).

Reference Loading Guide

ALWAYS load reference files if there is even a small chance the content may be required. It's better to have the context than to miss a pattern or make a mistake.

Reference Load When
Getting Started Setting up LanguageModelSession, checking availability, basic prompts
Structured Output Using @Generable for type-safe responses, @Guide constraints
Tool Calling Integrating external data (weather, contacts, MapKit) via Tool protocol
Streaming AsyncSequence for progressive UI updates, PartiallyGenerated types
Troubleshooting Context overflow, guardrails, errors, anti-patterns
Related skills
Installs
105
GitHub Stars
205
First Seen
Jan 24, 2026