What problem does it solve?
This Skill helps you choose and implement the right on-device AI stack so your app can generate structured outputs, call tools, and run ML inference privately without crashes or missing fallback paths.
Core Features & Use Cases
- On-device framework selection: Pick Foundation Models for iOS 26+/macOS 26+ Apple Intelligence workflows, Core ML for custom vision/NLP/audio models, MLX Swift for high-throughput Apple Silicon LLM research, and llama.cpp for GGUF cross-platform inference.
- Production-ready Foundation Models patterns: Availability checking, session management, prewarming, structured generation with @Generable/@Guide, tool calling with Tool schemas, error handling, sampling options, and prompt design rules.
- Core ML deployment & optimization guidance: Conversion pipeline (coremltools), mlprogram format expectations, quantization/palettization/pruning tradeoffs, compute-unit configuration, and performance tuning considerations.
- Memory-safe MLX Swift and fallback architecture: Model size guidance by device RAM, GPU cache controls, background unloading guidance, coordinator-based serialization, and multi-backend fallback strategy.
Quick Start
Use this skill to integrate on-device tool-calling and structured generation for an iOS 26+ app, while ensuring robust availability checks and a fallback backend for devices where Apple Intelligence is unavailable.