Integrate Core ML models in iOS apps for on-device machine learning inference. Covers model loading (.mlmodel, .mlpackage, .mlmodelc), predictions with auto-generated classes and MLFeatureProvider, compute unit configuration (CPU, GPU, Neural Engine), MLTensor, VNCoreMLRequest, MLComputePlan, multi-model pipelines, and deployment strategies.
SkillScore82Maintained
Automatic
◆AI Engineer pack
Last verified 8/14/2026
What it changes
Passed 18 of 22 test cases with the skill, and 10 of 22 without it.
Without skill45%
With skill82%
Checks it passed that the model alone missed
Bridges between MLMultiArray and MLTensor via MLShapedArray.
States that MLModel.compileModel(at:) requires iOS 16 or later.
Recommends CoreMLRequest for running Core ML models with Vision on iOS 18+.
and 6 more in the full report
8 fixed10 passed either way4 still failing0 broke
Pass-rate lift
+36 pp
Tokens
+124%
Agent turns
0%
Response time
-37%
Model gemini-3.6-flashMeasured 8/14/2026v118 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 8 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 8
Prompt
I need to compute the standard deviation of an MLTensor and directly initialize an MLTensor from an existing MLMultiArray. What exact methods on MLTensor should I call for standard deviation and multiarray initialization in iOS 18?
What was checked, without and with the skill
Checked
Without skill
With skill
Warns that direct initialization like MLTensor(multiArray) or methods like tensor.std() do not exist on MLTensor.
Missed
Passed
Bridges between MLMultiArray and MLTensor via MLShapedArray.
Missed
Passed
case-11 · gemini-3.6-flash · 8/14/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md414 lines2 files
Core ML Swift Integration
Load, configure, and run Core ML models in iOS apps. This skill covers the
Swift side: model loading, prediction, MLTensor, profiling, and deployment.
Scope boundary: Python-side model conversion, optimization (quantization,
palettization, pruning), and framework selection live in the apple-on-device-ai
skill. This skill owns Swift integration only.
See references/coreml-swift-integration.md for complete code patterns including
actor-based caching, batch inference, image preprocessing, and testing.