coreml

Integrate and optimize Core ML models for on-device inference in iOS apps.

155|22|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/omarshahine/HomeClaw --skill coreml-omarshahine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coreml
Source: https://github.com/omarshahine/HomeClaw/tree/main/.agents/skills/coreml
Command: npx skills add https://github.com/omarshahine/HomeClaw --skill coreml-omarshahine

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables developers to seamlessly integrate and optimize machine learning models directly within their iOS applications, allowing for powerful on-device AI inference without relying on cloud connectivity.

Core Features & Use Cases

  • Model Integration: Load Core ML models (.mlmodelc, .mlpackage) using auto-generated classes or manual MLFeatureProvider.
  • Performance Optimization: Configure compute units (CPU, GPU, Neural Engine) for optimal performance and energy efficiency.
  • Advanced Features: Utilize MLTensor for Swift-native tensor operations and MLState for stateful predictions in sequence models.
  • Use Case: Integrate a real-time object detection model into a camera app to identify objects instantly, or deploy a natural language processing model for on-device text analysis.

Quick Start

Load the 'MyImageClassifier' model with all compute units enabled and make a prediction using a CVPixelBuffer.

Frequently Asked Questions about coreml

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

FAQPage Schema
How do I run on-device machine learning inference in an iOS app?

On-device machine learning inference in iOS apps runs by loading compiled Core ML models (.mlmodelc) and passing input features to generate predictions without cloud connectivity. This Skill integrates models using auto-generated Swift classes or manual MLFeatureProvider for offline AI capabilities.

What's the best way to configure Core ML compute units for optimal performance?

Configuring Core ML compute units involves selecting CPU, GPU, or Neural Engine resources to balance prediction speed and energy efficiency. This Skill optimizes performance profiling by allowing developers to target specific hardware units based on model requirements.

How does MLFeatureProvider work with MLMultiArray for Core ML predictions?

MLFeatureProvider supplies input and output data to Core ML models, while MLMultiArray handles multi-dimensional tensor data for predictions. This Skill utilizes both for manual model loading when auto-generated Swift classes are insufficient for complex inference tasks.

Can I use the Vision framework with Core ML for real-time object detection?

The Vision framework integrates with Core ML to process camera image streams like CVPixelBuffer for real-time object detection. This Skill combines Vision framework integration with Core ML model loading to identify objects instantly in iOS applications.

Does Core ML support stateful predictions for sequence models?

Core ML supports stateful predictions for sequence models using MLState alongside MLTensor for Swift-native tensor operations. This Skill utilizes these advanced features to maintain context across sequential inputs during on-device machine learning inference.