CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

coreml

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. Use when loading Core ML models, making predictions, configuring compute units, or profiling model performance.

Quality

89%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

The canonical home for this skill is dpearson2699/swift-ios-skills

SKILL.md
Quality
Evals
Security

Quality

Content

86%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A well-engineered reference-style skill body: executable Swift for every common Core ML task, a decision table, an explicit batch validation loop, and clean one-level-deep progressive disclosure with verified reference anchors. The main improvement area is token efficiency — generic DON'T/DO advice and Memory Management content duplicated with the reference file could be trimmed.

Suggestions

Trim the Common Mistakes section: drop the generic error-handling DON'T/DO (knowledge Claude already has) and compress the 'Why:' lines to only non-obvious rationale, cutting the section to the Core ML-specific pitfalls.

Replace the inline Memory Management bullets with a one-line pointer to the reference file's 'Memory Management Best Practices' and actor-based model manager sections, since that material is duplicated there.

Add an explicit recovery checkpoint to the runtime-compilation workflow: what to do when MLModel.compileModel(at:) fails or a previously cached .mlmodelc is stale for the current model version (delete-and-recompile vs. error surfaces).

DimensionReasoningScore

Conciseness

The body is largely efficient and code-forward with no basic-concept padding, but includes trimmable tokens: generic advice Claude already knows (the error-handling DON'T/DO pair, 'Why:' lines restating common knowledge in Common Mistakes) and Memory Management bullets that duplicate the referenced reference file's material. This is 'efficient with minor instances of over-explanation' (anchor 4) rather than fully lean (anchor 5).

4 / 5

Actionability

Fully executable, copy-paste-ready Swift throughout: four loading variants (auto-generated class, manual URL, async load, runtime compile with caching), typed and MLDictionaryFeatureProvider prediction, MLArrayBatchProvider batching, MLState stateful prediction, MLTensor operations, Vision CoreMLRequest and VNCoreMLRequest, plus a compute-unit decision table. The specific examples cover the common cases, matching anchor 5.

5 / 5

Workflow Clarity

The load → configure → predict → profile → deploy flow is clearly sequenced, the batch section contains an explicit validate→fix→retry feedback loop ('Validate a representative single input before batching... On failure, fix the deterministic input, shape, model, or configuration issue before rerunning'), and a Review Checklist provides verification. However, some flows lack explicit checkpoints (e.g., no recovery guidance if MLModel.compileModel(at:) fails or a cached compile is stale), keeping it at 'most checkpoints present' (anchor 4).

4 / 5

Progressive Disclosure

Structure matches the anchor-5 example: a Contents TOC, common patterns kept inline, and advanced material (actor-based caching, streaming predictions, testing patterns, NLP/audio MLMultiArray patterns, MLComputePlan details) deferred to a single one-level-deep reference that is real and clearly signaled from the relevant sections plus a References section. Both anchored deep-links (references/coreml-swift-integration.md#image-preprocessing and #mlcomputeplan-detailed-usage-ios-174) resolve to actual headers in the bundle file.

5 / 5

Total

18

/

20

Passed

Description

88%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: concrete, specific, third-person, with explicit what/when structure and good trigger coverage including file extensions. The only weaknesses are a slightly API-jargon-flavored trigger list missing a few natural user phrasings, and no in-description boundary statement against the sibling apple-on-device-ai skill.

DimensionReasoningScore

Specificity

The description lists multiple concrete actions with specific artifacts and APIs — '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' — giving comprehensive coverage of the skill's domain with no notable gaps, matching the anchor-5 example's breadth.

5 / 5

Completeness

It explicitly answers both questions: the 'what' ('Integrate Core ML models in iOS apps for on-device machine learning inference. Covers...') and a concrete 'when' ('Use when loading Core ML models, making predictions, configuring compute units, or profiling model performance'), directly matching the anchor-5 pattern.

5 / 5

Trigger Term Quality

'Use when loading Core ML models, making predictions, configuring compute units, or profiling model performance' provides good natural trigger phrases, and file extensions (.mlmodel, .mlpackage, .mlmodelc) plus 'on-device machine learning inference' are present. A few natural user phrasings are missing or only implicit (e.g., 'run a model on-device', 'Vision framework', 'Neural Engine' as a standalone trigger), and the trigger list leans API-jargon, so it falls just short of the comprehensive-synonym anchor.

4 / 5

Distinctiveness Conflict Risk

The Core ML / iOS Swift-integration niche is distinct with specific API names as triggers, but the description omits the boundary against closely related sibling skills (Python-side conversion lives in 'apple-on-device-ai'; Vision patterns in 'vision-framework'), leaving minor overlap risk with those skills — the boundary is only stated in the body, not the description.

4 / 5

Total

18

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

dpearson2699/swift-ios-skills

Path

skills/coreml/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.