Skip to content
cccskills
FreePublished on GitHub

coremltools

Operate Core ML Tools workflows for model conversion, Core ML artifact I/O, optimization, MIL debugging, and platform-aware troubleshooting.

The English summary is being prepared. Showing the original description.

See how to install

Files included (27)

  • SKILL.md5.0 KB
  • references/capability-map.md4.3 KB
  • references/install-and-build.md4.3 KB
  • references/repo-provenance.md2.0 KB
  • references/repo-routing-metadata.json537 B
  • references/troubleshooting.md4.5 KB
  • scripts/check_coremltools_env.py6.3 KB
  • sub-skills/convert-models/references/api-reference.md10.7 KB
  • sub-skills/convert-models/references/troubleshooting.md9.3 KB
  • sub-skills/convert-models/references/workflows.md9.8 KB
  • sub-skills/convert-models/scripts/convert_torch_toy.py6.0 KB
  • sub-skills/convert-models/SKILL.md2.9 KB
  • sub-skills/mil-and-debugging/references/api-reference.md8.1 KB
  • sub-skills/mil-and-debugging/references/troubleshooting.md9.4 KB
  • sub-skills/mil-and-debugging/references/workflows.md10.5 KB
  • sub-skills/mil-and-debugging/scripts/mil_smoke.py10.9 KB
  • sub-skills/mil-and-debugging/SKILL.md2.5 KB
  • sub-skills/model-io-and-prediction/references/api-reference.md6.8 KB
  • sub-skills/model-io-and-prediction/references/troubleshooting.md6.3 KB
  • sub-skills/model-io-and-prediction/references/workflows.md7.9 KB
  • sub-skills/model-io-and-prediction/scripts/inspect_mlmodel.py14.8 KB
  • sub-skills/model-io-and-prediction/SKILL.md1.8 KB
  • sub-skills/optimize-models/references/api-reference.md9.0 KB
  • sub-skills/optimize-models/references/troubleshooting.md6.8 KB
  • sub-skills/optimize-models/references/workflows.md8.4 KB
  • sub-skills/optimize-models/scripts/optimize_coreml_smoke.py6.0 KB
  • sub-skills/optimize-models/SKILL.md3.4 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Core ML Tools

Use this repo skill when a task involves the coremltools Python package, Core ML model conversion, .mlmodel/.mlpackage artifacts, Core ML optimization/compression, MIL graph debugging, or macOS-vs-Linux Core ML runtime constraints.

Start here

  1. Confirm the package imports in the active environment:

    python scripts/check_coremltools_env.py
    

    Add --smoke only when you want a tiny MIL-to-MLProgram conversion/save check without prediction.

  2. Identify the task family from the route map below.

  3. Check capability map for dependency/platform gates before promising that a workflow is verified.

  4. Use troubleshooting for install/import/native-library/platform failures that affect multiple workflows.

  5. Use repo provenance before deciding whether this skill is stale for a newer checkout.

Route map

User taskRead
Convert PyTorch, TensorFlow, MIL, scikit-learn, XGBoost, LightGBM, or LibSVM models to Core MLsub-skills/convert-models/
Choose ct.convert inputs/outputs, deployment targets, mlprogram vs neuralnetwork, precision, pass pipelines, or optional framework dependenciessub-skills/convert-models/
Load, save, inspect, edit, or package existing .mlmodel/.mlpackage artifactssub-skills/model-io-and-prediction/
Use MLModel.predict, compiled models, compute units/devices/plans, stateful prediction, image/multiarray prediction inputs, or macOS runtime checkssub-skills/model-io-and-prediction/
Quantize, palettize, prune, decompress, or inspect compression metadata for Core ML packagessub-skills/optimize-models/
Use optional coremltools.optimize.torch workflows with calibration data, fine-tuning, QAT, or Torch-side compression before exportsub-skills/optimize-models/
Build/inspect MIL programs, control pass pipelines, register custom/composite ops, diagnose typed execution, or use experimental debug/perf utilitiessub-skills/mil-and-debugging/
Understand package installation, optional dependencies, source-build scripts, or test-script boundariesreferences/install-and-build.md

Dependency and platform rules

  • Base coremltools import is not enough to verify every converter. PyTorch, TensorFlow, scikit-learn, XGBoost, LightGBM, and LibSVM routes are optional dependency-gated.
  • Linux can convert and inspect many artifacts, but MLModel.predict, CompiledMLModel, compute-device/compute-plan APIs, and ModelRunner workflows generally require macOS Core ML runtime support.
  • mlprogram artifacts usually save as .mlpackage; many older/classic neural-network specs can save as .mlmodel.
  • Use skip_model_load=True when conversion should avoid runtime loading on the current host.
  • Source checkouts can lack native runtime libraries included in wheels. If ML Program save fails with BlobWriter/libmilstoragepython, read install-and-build.

Bundled helpers

Safe operating stance

  • Do not run long training, downloads, full test suites, or prediction checks unless the user explicitly requests them and the required framework/platform is present.
  • Prefer tiny conversion/spec/optimization smokes before applying guidance to large models.
  • Preserve original source-model semantics when debugging conversion; shrink to a reproducer before introducing custom ops or pass-pipeline changes.
  • Keep package-operation tasks separate from repository-maintenance tasks. Use maintainer scripts only when the user is working in the repository checkout and wants source build/test behavior.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill339Updated Sep 3, 2026

3ddfa

Free

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill339Updated Sep 3, 2026

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill339Updated Sep 3, 2026

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill339Updated Sep 3, 2026

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill339Updated Sep 3, 2026

acme

Free

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill339Updated Sep 3, 2026

See all skills by VectorSpaceLab

Report a problem with this skill