
Description
foundation-models-on-device is an agent skill from the ECC collection by affaan-m, listed on skills.sh. It shows how to use Apple's FoundationModels framework to run a language model on the device inside an iOS app, for iOS 26 and later. The patterns cover text generation, structured output through @Generable types, custom tool calling for domain-specific actions, and snapshot streaming that feeds partial results into the interface in real time. The skill begins with an availability check, since the model must be confirmed as available before a session is created. Because the model runs on the device, the listing says no data leaves the phone, which suits privacy-sensitive features and offline use. It applies when building Apple Intelligence features, summarising or generating text without a cloud service, extracting structured data from free text, or streaming responses to the UI. A skill is a SKILL.md file of instructions that an AI agent loads when a task calls for it. It is free and open source, and the skills.sh listing shows all three security audits passing.…
Highlights
- On-device language model in iOS 26 and later
- Structured output with @Generable
- Custom tool calling
- Snapshot streaming to the interface
Ratings & Reviews
No ratings yet
Be the first to rate foundation-models-on-device.
People also visit
foundation-models-on-device FAQ
What does the foundation-models-on-device skill cover?
Building features on Apple's FoundationModels framework: text generation, structured output, tool calling and streaming, all on the device.
Which iOS version is required?
iOS 26 and later, according to the listing.
Does user data go to a server?
The skill says the model runs on the device, so no data leaves the device.
How do I install it?
Run: npx skills add https://github.com/affaan-m/ecc --skill foundation-models-on-device
Is it free?
Yes. It is free and open source.
What are the best foundation-models-on-device alternatives?
Popular alternatives to foundation-models-on-device include swift-concurrency-6-2, swiftui-expert-skill and cisco-ios-patterns. See all foundation-models-on-device alternatives










