This is the comprehensive guide you need if you're shipping on-device AI on Apple platforms. It walks you through Foundation Models for zero-setup text generation and structured output with @Generable, Core ML for converting and optimizing custom models with quantization and Neural Engine deployment, MLX Swift for maximum throughput with open-source LLMs on Apple Silicon, and llama.cpp for cross-platform GGUF inference. The framework selection router at the top is genuinely helpful for cutting through the decision paralysis. Heavy on code examples for tool calling, streaming, session management, and availability checking. If you're building anything that runs AI locally on iPhone or Mac, this covers the entire stack.

skills.sh installs
4.2K
GitHub stars
1.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add dpearson2699/swift-ios-skills --skill apple-on-device-ai --agent claude-code

Installs into .claude/skills of the current project.

Files

On-Device AI for Apple Platforms

Guide for selecting, deploying, and optimizing on-device ML models. Covers Apple Foundation Models, Core ML, MLX Swift, and llama.cpp.

Contents

Framework Selection Router

Use this decision tree to pick the right framework for your use case.

Apple Foundation Models

When to use: Text generation, summarization, entity extraction, structured output, and short dialog on iOS 26+ / macOS 26+ devices with Apple Intelligence enabled. No app-managed API key, network round trip, or model hosting; still handle system model asset readiness.

Sponsors

Details

Repository
github.com/dpearson2699/swift-ios-skills
Categories
DevOps & CI/CD, AI & Agent Building, Data Science & ML, Python, Mobile Development
First seen
Apr 16, 2026

More from dpearson2699/swift-ios-skills

All 98
1dotnet avatarmigrate-dotnet9-to-dotnet10dotnet/skillsMigrate a .NET 9 project or solution to .NET 10 and resolve all breaking changes. USE FOR: upgrading TargetFramework from net9.0 to net10.0, fixing build errors4.2Kskills.sh installs
2dotnet avatareval-performancedotnet/skillsGuide for diagnosing and improving MSBuild project evaluation performance. USE FOR: builds slow before any compilation starts, high evaluation time in binlog an4.2Kskills.sh installs
3thedotmack avatarclaude-code-plugin-releasethedotmack/claude-memAutomated semantic versioning and release workflow for Claude Code plugins. Handles version increments across package.json, marketplace.json, plugin.json manife4.2Kskills.sh installs
4dotnet avatarconvert-to-cpmdotnet/skillsConvert .NET projects and solutions (.sln, .slnx) to NuGet Central Package Management (CPM) using Directory.Packages.props. USE FOR: converting to CPM, centrali4.1Kskills.sh installs
5dotnet avatardotnet-maui-doctordotnet/skillsDiagnoses and fixes .NET MAUI development environment issues. Validates .NET SDK, workloads, Java JDK, Android SDK, Xcode, and Windows SDK. All version requirem4.1Kskills.sh installs
6openai avataraspnet-coreopenai/skillsBuild, review, refactor, or architect ASP.NET Core web applications using current official guidance for .NET web development. Use when working on Blazor Web App4.1Kskills.sh installs