foundation-models-on-device

Integrate Apple's FoundationModels into iOS apps for on-device text generation.

1|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/ROLLED740/vibe-clone-pro --skill foundation-models-on-device-rolled740
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: foundation-models-on-device
Source: https://github.com/ROLLED740/vibe-clone-pro/tree/main/.agent/skills/foundation-models-on-device
Command: npx skills add https://github.com/ROLLED740/vibe-clone-pro --skill foundation-models-on-device-rolled740

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Privacy-preserving on-device LLM integration enabling models to run entirely on the device, eliminating data leaving the user’s device.

Core Features & Use Cases

  • On-device text generation and summarization without cloud access.
  • Structured output with Generable for type-safe results.
  • Custom tool calling and real-time snapshot streaming for responsive UIs.
  • Streaming support via PartiallyGenerated types to keep UI up-to-date.

Quick Start

Create a new on-device session and request a short summary from the model.

Frequently Asked Questions about foundation-models-on-device

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

FAQPage Schema
How do I run an LLM on-device in Swift for offline privacy?

To run an LLM on-device in Swift for offline privacy, you integrate Apple's FoundationModels into your iOS app, ensuring model availability checks and single-session handling to keep data entirely on the user's device.

Can I get structured outputs from an on-device LLM in iOS?

Yes, you can get structured outputs from an on-device LLM in iOS by using the Generable feature, which provides type-safe results for your structured data generation workflows directly on the device.

How do I stream LLM responses in real-time for my iOS app UI?

You stream LLM responses in real-time for your iOS app UI by utilizing snapshot streaming with PartiallyGenerated types, which continuously update your interface as the on-device model generates text.

Does on-device LLM tool calling work without cloud access in Swift?

On-device LLM tool calling works without cloud access in Swift through FoundationModels, enabling custom tool calling workflows entirely offline while maintaining user privacy and requiring no network connectivity.

What are the limitations of using FoundationModels for on-device text generation?

Limitations of using FoundationModels for on-device text generation include the need for model availability checks and strict single-session handling, meaning you must manage these constraints for stable offline LLM workflows.

Do I need to check model availability before starting an on-device LLM session?

Yes, you need to check model availability before starting an on-device LLM session because FoundationModels requires verifying that the device supports the model before you can initialize single-session text generation or tool calling.