apple-intelligence-foundation-models

Integrate Apple on-device Foundation Models for text generation and tool calling in Swift.

4|1|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/AutisticAF/claude-code-apple-dev-plugin --skill apple-intelligence-foundation-models
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: apple-intelligence-foundation-models
Source: https://github.com/AutisticAF/claude-code-apple-dev-plugin/tree/main/skills/apple-intelligence-foundation-models
Command: npx skills add https://github.com/AutisticAF/claude-code-apple-dev-plugin --skill apple-intelligence-foundation-models

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Integrate Apple's on-device Foundation Models to deliver privacy-preserving AI capabilities, enabling text generation, structured data handling, and tool calling without relying on cloud inference.

Core Features & Use Cases

  • On-device AI integration for privacy-conscious apps (no server round-trips)
  • Structured data generation and tool calling to automate tasks
  • Use cases include AI assistants, summarization, extraction, and prompt-driven workflows in iOS/macOS apps

Quick Start

Configure and run an on-device Foundation Models session to generate text.

Frequently Asked Questions about apple-intelligence-foundation-models

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run on-device Foundation Models for text generation in my iOS app?▼

To run on-device Foundation Models for text generation, you configure and manage a FoundationModels session within your iOS app. This approach processes prompts locally, enabling privacy-preserving AI generation without sending data to external servers.

Can I use Foundation Models to get structured data output instead of plain text?▼

Yes, Foundation Models support structured data generation alongside standard text output. You can enforce specific schemas and structured formats from your prompts, allowing your app to directly parse the on-device model's responses into usable data objects.

How do I enable tool calling with Foundation Models in a macOS app?▼

You enable tool calling with Foundation Models by integrating tool definitions directly into your Swift session. This allows the on-device model to autonomously invoke specified functions during generation, automating tasks and workflows locally on macOS.

Can I check Foundation Model availability before starting an AI session on a device?▼

Yes, you can check Foundation Model availability before starting an AI session. The framework provides session availability checks to verify that the device supports on-device AI, ensuring your iOS or macOS app handles environments lacking hardware capabilities gracefully.

Does Foundation Models support token-usage measurement and safety guardrails?▼

Foundation Models support token-usage measurement and include built-in safety guardrails. You can monitor token consumption during prompting and generation, while the safety guardrails automatically filter inappropriate content during on-device AI processing.

What are the limitations of using on-device Foundation Models for AI assistants?▼

Limitations of on-device Foundation Models include hardware availability constraints on older devices and token limits during generation. Because inference runs entirely locally, complex AI assistants may face performance boundaries compared to cloud-based server inference.