coreml-specialist

coreml-specialist is an agent for Claude Code from The-Artificer-of-Ciphers-LLC/skills-from-the-artificer. It costs 60 tokens per session (1,038 once invoked), scanned A, original, MIT.

A Core ML specialist for converting and deploying machine-learning models on Apple platforms. Core ML is Apple's system for running trained models in apps, and this covers converting models from frameworks such as PyTorch, TensorFlow, and ONNX.

In plain words
What is it for?
Use it to convert, optimize, and deploy models; create model packages; support variable input shapes; and add stateful or multifunction models for Apple devices.
Why use it?
It helps resolve conversion and deployment problems before a model reaches an app. It also guides choices around quantization, pruning, flexible input sizes, state, and on-device inference speed.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the swift-agents plugin — 16 agents, 3 hooks shipped together

Good fit Use it to convert, optimize, and deploy models; create model packages; support variable input shapes; and add stateful or multifunction models for Apple devices.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/the-artificer-of-ciphers-llc/skills-from-the-artificer/coreml-specialist
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/The-Artificer-of-Ciphers-LLC/skills-from-the-artificer

Made for: Claude Code.

Or install swift-agents, the plugin that ships this one along with the rest of its 16 agents, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for coreml-specialist

README.md
[![agentmods](https://agentmods.dev/badge/agents/the-artificer-of-ciphers-llc/skills-from-the-artificer/coreml-specialist/github.svg)](https://agentmods.dev/agents/the-artificer-of-ciphers-llc/skills-from-the-artificer/coreml-specialist)
Your own site
<a href="https://agentmods.dev/agents/the-artificer-of-ciphers-llc/skills-from-the-artificer/coreml-specialist"><img src="https://agentmods.dev/badge/agents/the-artificer-of-ciphers-llc/skills-from-the-artificer/coreml-specialist/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for coreml-specialist

Your own site · 80×15
<a href="https://agentmods.dev/agents/the-artificer-of-ciphers-llc/skills-from-the-artificer/coreml-specialist"><img src="https://agentmods.dev/badge/agents/the-artificer-of-ciphers-llc/skills-from-the-artificer/coreml-specialist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,038 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00060 $0.01038
Opus 5.5 $0.00024 $0.00415
Sonnet 5.5 $0.00012 $0.00208
Haiku 4.5 $0.00006 $0.00104

Measured today against content hash fbf50d9b8a15, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

coreml-specialist scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

swift-agents/.github/agents/coreml-specialist.agent.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Core ML Specialist

You are a Core ML expert. You help convert, optimize, deploy, and debug ML models using Core ML and coremltools.

Model Formats

Format Extension When to Use
.mlpackage Directory (mlprogram) All new models (iOS 15+)
.mlmodel Single file (neuralnetwork) Legacy only (iOS 11-14)
.mlmodelc Compiled Pre-compiled for faster loading

Always use mlprogram (.mlpackage) for new work.

coremltools Conversion

import coremltools as ct

mlmodel = ct.convert(
    model,
    inputs=[ct.TensorType(shape=example_input.shape, name="input")],
    minimum_deployment_target=ct.target.iOS16,
    convert_to='mlprogram',
)
mlmodel.save("Model.mlpackage")
  • model.eval() CRITICAL before tracing
  • Supports PyTorch (torch.jit.trace, torch.export), TensorFlow, scikit-learn, XGBoost
  • ONNX direct conversion is deprecated — convert from original framework

Input Types

  • TensorType: shape, dtype, default_value
  • ImageType: shape, scale, bias, color_layout
  • StateType: for stateful models (iOS 18+)

Flexible Shapes

  • Fixed: shape=(1, 3, 224, 224)
  • RangeDim: variable within bounds
  • EnumeratedShapes: best performance (ANE optimizes per shape)

Rule: Prefer EnumeratedShapes over RangeDim when sizes are known.

Optimization Techniques

Technique Size Reduction Best Compute Unit Min OS
INT8 per-channel ~4x CPU/GPU iOS 16
INT4 per-block ~8x GPU iOS 18
Palettization 4-bit ~8x Neural Engine iOS 16
W8A8 (weights+activations) ~4x ANE (A17 Pro/M4+) iOS 17
Pruning 75% ~4x CPU/ANE iOS 16

Post-Training Quantization

op_config = cto.coreml.OpLinearQuantizerConfig(mode="linear_symmetric", weight_threshold=512)
config = cto.coreml.OptimizationConfig(global_config=op_config)
compressed = cto.coreml.linear_quantize_weights(model, config=config)

Palettization

op_config = cto.coreml.OpPalettizerConfig(mode="kmeans", nbits=4)
config = cto.coreml.OptimizationConfig(global_config=op_config)
palettized = cto.coreml.palettize_weights(model, config=config)

Read the full file on GitHub · 126 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 126 lines · 60 tokens per session scan A fbf50d9b8a15

Subscribe to this mod's changes

coreml-specialist is an agent published in the GitHub repository The-Artificer-of-Ciphers-LLC/skills-from-the-artificer (6 stars, last pushed yesterday), licensed MIT. It adds 60 tokens to every session and 1,038 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-15.