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.
npx skills add ckorhonen/claude-skills --skill coreml-optimizergit clone --depth 1 https://github.com/ckorhonen/claude-skillsWrote 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.
[](https://agentmods.dev/skills/ckorhonen/claude-skills/coreml-optimizer)<a href="https://agentmods.dev/skills/ckorhonen/claude-skills/coreml-optimizer"><img src="https://agentmods.dev/badge/skills/ckorhonen/claude-skills/coreml-optimizer/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.
<a href="https://agentmods.dev/skills/ckorhonen/claude-skills/coreml-optimizer"><img src="https://agentmods.dev/badge/skills/ckorhonen/claude-skills/coreml-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00066 | $0.04739 |
| Opus 5.5 | $0.00026 | $0.01896 |
| Sonnet 5.5 | $0.00013 | $0.00948 |
| Haiku 4.5 | $0.00007 | $0.00474 |
Grade A, and why
coreml-optimizer 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 3mo ago.
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.
How it starts
The opening of the file, as written. The whole thing — 662 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CoreML Optimizer
Expert guidance for optimizing machine learning models for Apple's CoreML framework on iOS and macOS devices.
When to Use This Skill
Use this skill when:
- Converting PyTorch/TensorFlow models to CoreML format
- Optimizing CoreML model size and inference latency
- Targeting the Neural Engine for maximum performance
- Debugging slow model inference or compute unit issues
- Applying quantization, palettization, or pruning
- Profiling model performance with Instruments
- Troubleshooting accuracy degradation after compression
Speed Optimization Checklist
The critical path to fast CoreML inference:
1. Verify Compute Unit Configuration
Many "slow" models are accidentally CPU-bound. Configure via MLModelConfiguration.computeUnits:
| Option | Description |
|---|---|
.all |
Uses all available compute units including Neural Engine (default, recommended) |
.cpuAndNeuralEngine |
CPU + Neural Engine, excludes GPU |
.cpuAndGPU |
CPU + GPU, excludes Neural Engine |
.cpuOnly |
Forces CPU-only execution (for debugging/consistency) |
In Swift:
let config = MLModelConfiguration()
config.computeUnits = .all // .cpuAndNeuralEngine, .cpuAndGPU, .cpuOnly
let model = try MLModel(contentsOf: modelURL, configuration: config)
Benchmark each configuration - if .all isn't faster than .cpuAndGPU, your model may not be hitting the Neural Engine.
2. Apply Weight Compression with coremltools
CoreML execution commonly uses float16 where possible. Use coremltools.optimize for further compression:
import coremltools as ct
import coremltools.optimize as cto
# 8-bit quantization (2-4x speedup for memory-bound models)
config = cto.coreml.OptimizationConfig(
global_config=cto.coreml.OpLinearQuantizerConfig(
mode="linear_symmetric",
dtype="int8",
granularity="per_channel"
)
)
model = ct.models.MLModel("Model.mlpackage")
quantized = cto.coreml.linear_quantize_weights(model, config=config)
quantized.save("Model_int8.mlpackage")
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 3mo ago First seen · 662 lines · 66 tokens per session scan A 9387e7ea79de
coreml-optimizer is a skill published in the GitHub repository ckorhonen/claude-skills (33 stars, last pushed 4d ago), licensed MIT. It adds 66 tokens to every session and 4,739 once invoked, about $0.0003 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-08-30.
coreml-optimizer compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| coreml-optimizerckorhonen/claude-skills | Skill | 33 | 4d ago | MIT | A | 66 | Claude Code |
| ml-kit-genai-prompt-apiandroid/skills | Skill | 11k | 7d ago | Apache-2.0 | A | 57 | Claude Code |
| llm-as-judge-evaluationsynthetic-sciences/openscience | Skill | 4.5k | yesterday | Apache-2.0 | A | 56 | Claude Code, Codex |
| llm-wikiAr9av/obsidian-wiki | Skill | 3.8k | today | MIT | A | 41 | Claude Code |
| wiki-exportAr9av/obsidian-wiki | Skill | 3.8k | today | MIT | A | 53 | Claude Code |
| transformerssynthetic-sciences/openscience | Skill | 4.5k | yesterday | Apache-2.0 | A | 63 | Claude Code, Codex |
| model-authoringapple/coreai-models | Skill | 2.4k | today | BSD-3-Clause | A | 95 | Claude Code |