Skip to content
Back to skills

Model Io And Prediction

ASecurity

"Load, save, inspect, edit, package, and predict with Core ML model

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
toolsdebuggingapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill model-io-and-prediction --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Model Io And Prediction?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Model Io And Prediction
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-model-io-and-prediction/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-model-io-and-prediction)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: model-io-and-prediction
description: "Load, save, inspect, edit, package, and predict with Core ML model
  artifacts using MLModel and spec utilities."
disable-model-invocation: true
metadata:
  disco-role: operating
license: BSD 3-Clause
---

# Model I/O and Prediction

Use this sub-skill when the task is about operating on existing Core ML artifacts: `.mlmodel`, `.mlpackage`, specs, metadata, feature descriptions, prediction dictionaries, compute-unit selection, compiled models, or stateful prediction boundaries.

Start here:

- Use [references/api-reference.md](references/api-reference.md) for the exact API contracts and platform gates.
- Use [references/workflows.md](references/workflows.md) for copyable load/edit/save/package/predict workflows.
- Use [references/troubleshooting.md](references/troubleshooting.md) when artifact loading, prediction, packaging, compute units, or states fail.
- Use [scripts/inspect_mlmodel.py](scripts/inspect_mlmodel.py) to inspect a `.mlmodel` or `.mlpackage` spec without invoking Core ML prediction.

Operating rules:

1. Prefer spec-only inspection with `coremltools.models.utils.load_spec` when prediction is not required, especially on Linux.
2. Treat `MLModel.predict`, `CompiledMLModel`, compute devices, compute plans, and stateful runtime calls as macOS Core ML runtime features unless the environment proves otherwise.
3. Preserve artifact form: neural-network-style specs may be saved as `.mlmodel`; `mlprogram` models with external weights normally need `.mlpackage` and a valid `weights_dir`.
4. Prediction inputs are dictionaries keyed by Core ML feature names. Use NumPy arrays for multi-array inputs and PIL images for image inputs.
5. Route source model conversion to `../convert-models/`, compression and weight optimization to `../optimize-models/`, and MIL/debug utilities/custom passes to `../mil-and-debugging/`.

Files in this skill

  • SKILL.md1.8 KB
  • references/api-reference.md6.8 KB
  • references/troubleshooting.md6.3 KB
  • references/workflows.md7.9 KB
  • scripts/inspect_mlmodel.py14.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.