Skip to content
Back to skills

Mil And Debugging

ASecurity

"Advanced coremltools MIL Builder, pass pipeline, custom op, typed

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

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 mil-and-debugging --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mil And Debugging?

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

Security grade badge for Mil And Debugging
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-mil-and-debugging/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-mil-and-debugging)

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: mil-and-debugging
description: "Advanced coremltools MIL Builder, pass pipeline, custom op, typed
  execution, and debugging workflows for isolating conversion and runtime
  failures."
disable-model-invocation: true
metadata:
  disco-role: operating
license: BSD 3-Clause
---

# MIL and debugging

Use this sub-skill when the task is about advanced coremltools internals rather than an ordinary framework-to-Core ML recipe:

- Build or inspect MIL Builder programs, functions, `input_specs`, op names, dtypes, and shapes.
- Control graph pass pipelines, bisect pass-related failures, or set graph pass options.
- Diagnose deployment-target compatibility, typed execution, precision regressions, or backend-specific ML Program versus neural network behavior.
- Register composite or custom operators and understand when custom layers are only viable for the neural network backend.
- Use experimental `MLModelInspector`, `MLModelValidator`, `MLModelComparator`, Torch comparators, or submodel extraction to isolate conversion/runtime failures.

Do **not** use this sub-skill for routine conversion recipes; route those to the sibling `convert-models` sub-skill. Route saved-model loading, artifact metadata, prediction, and packaging operations to `model-io-and-prediction`. Route palettization, pruning, quantization, and compression workflows to `optimize-models`.

## Operating map

1. Classify the failure stage: MIL construction/type inference, graph passes, backend lowering/save, deployment compatibility, or Core ML runtime/prediction.
2. Use [API reference](references/api-reference.md) for exact import paths and capability boundaries.
3. Use [workflows](references/workflows.md) for concrete triage sequences and code skeletons.
4. Use [troubleshooting](references/troubleshooting.md) for symptom-to-action mapping, especially native BlobWriter/runtime issues and experimental debugger limitations.
5. For a minimal environment probe, run [scripts/mil_smoke.py](scripts/mil_smoke.py) with `--help`, then choose `--convert-to mlprogram` or `--convert-to neuralnetwork` based on the backend under investigation.

## Minimal smoke command

```bash
python scripts/mil_smoke.py --convert-to mlprogram --output mil_smoke.mlpackage
python scripts/mil_smoke.py --convert-to neuralnetwork --output mil_smoke.mlmodel
```

The smoke script intentionally avoids prediction by default because Core ML prediction and intermediate-output retrieval are runtime-dependent and commonly require macOS or configured remote-device support.

Files in this skill

  • SKILL.md2.5 KB
  • references/api-reference.md8.1 KB
  • references/troubleshooting.md9.4 KB
  • references/workflows.md10.5 KB
  • scripts/mil_smoke.py10.9 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.