/agentic-awesome-skills:onnx-opset-compatibility-auditfrom agentic-awesome-skills
Audits ONNX model files offline for structural validity, IR/opset compatibility, CPU ONNX Runtime session creation, and numerical inference accuracy using pinned onnx and onnxruntime versions.
Ships in agentic-awesome-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Verify ONNX model files offline using pinned onnx==1.23.2 and onnxruntime==1.31.0 across three strictly separated stages: (1) ONNX structural graph validity (onnx.checker.check_model), (2) ONNX Runtime InferenceSession instantiation for concrete ir_version and opset_import domains, and (3) known-output numerical inference assertions (np.allclose). Explicitly exposes where a model passes onnx.checker yet fails runtime loading (such as unsupported opsets or unregistered custom operators), and never infers GPU/TensorRT/production compatibility from a passing CPUExecutionProvider fixture.
Distinction from existing ML serving and deployment skills:
model-serving-kubernetes: deploys KServe and Triton InferenceServer manifests on Kubernetes clusters rather than auditing ONNX IR/opset/session/numerical boundaries offline.transformers-js: guides client-side JavaScript inference with @huggingface/transformers and ONNX WebAssembly paths rather than running Python onnx.checker + onnxruntime.InferenceSession opset compatibility checks.ml-engineer: covers general PyTorch/TensorFlow training pipelines and serving architecture without executable ONNX opset/IR compatibility tests.torch.onnx.export, onnxscript, converters) or pinning a target onnxruntime release.ir_version and per-domain opset_import versions load and execute accurately on the pinned CPU ONNX Runtime.INVALID_INPUT), structural ONNX graph errors, runtime opset/custom-op rejections, and wrong numerical outputs.3.12+ with pinned ONNX, ONNX Runtime, NumPy, and pytest packages (numpy==2.5.3 requires >=3.12; onnxruntime==1.31.0 requires >=3.11; tested with Python 3.12.10, onnx==1.23.2, onnxruntime==1.31.0, numpy==2.5.3, pytest==9.1.1)..onnx protobuf models within bounded size (16 MiB max; models referencing TensorProto.EXTERNAL tensor files are rejected as UNSUPPORTED).onnx.load_from_string (INVALID_INPUT on corrupt protobuf bytes).graph.initializer, graph.sparse_initializer, node attributes t/tensors/sparse_tensor/sparse_tensors, and nested subgraph g/graphs attributes up to bounded depth 16) and reject any TensorProto.EXTERNAL / external_data reference (EXTERNAL_DATA_UNSUPPORTED -> UNSUPPORTED, or SUBGRAPH_DEPTH_EXCEEDED -> UNSUPPORTED beyond depth 16) before invoking onnx.checker or InferenceSession, so no external tensor data files are opened outside synthetic/in-memory payloads.model.ir_version and {imp.domain or "ai.onnx": imp.version for imp in model.opset_import}.onnx.checker.check_model(model) separately so structural graph errors (ValidationError) are recorded as ONNX_CHECKER_FAILED without conflating them with runtime opset limits.Run the local verification suite in ONNX opset compatibility harness:
CPUExecutionProvider): Attempt onnxruntime.InferenceSession(model_bytes, providers=["CPUExecutionProvider"]). Observe that ir_version=10, opset=99 passes onnx.checker yet fails InferenceSession, proving graph validity is not runtime compatibility.ir_version=99 and custom domains (com.example.custom) that fail session creation unless registered; classify non-default execution provider demands separately.sample_inputs / expected_outputs structures, catch session.run(...) failures as structured INFERENCE_FAILED errors rather than uncaught exceptions, require exact key equality across all model output names (flagging both missing and unexpected extra keys), classify non-np.ndarray runtime outputs (such as ONNX Sequence lists or Map dicts) as structured UNSUPPORTED (NON_NDARRAY_OUTPUT) before reading .shape, and explicitly report numerical_status="NOT_TESTED" when numerical assertions were not run.Run the self-contained verification suite in ONNX opset compatibility harness:
User request: "Verify our exported Relu+Linear ONNX graph passes checker, loads in ONNX Runtime 1.31.0, and matches expected values."
Inputs: Synthetic in-memory ONNX ModelProto bytes with explicit ir_version and opset_import.
Expected result: Compatible fixture (ir_version=10, ai.onnx opset=21) passes all 3 stages on CPUExecutionProvider;
opset=99 passes checker but fails ORT session creation; ir_version=99 fails both; wrong bias fails numerical stage only.
CPUExecutionProvider (onnxruntime==1.31.0); a passing CPU fixture never proves CUDAExecutionProvider, TensorrtExecutionProvider, CoreMLExecutionProvider, quantized NPU, or production throughput compatibility.com.microsoft, custom domains) and external-weight models (> 2 GiB protobuf split .onnx_data) are rejected or require explicit trusted custom-op libraries outside this offline audit.batch=0, dynamic sequence lengths, FP16 overflow).16 MiB limit)..dll/.so operator extensions, or deploys endpoints.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub sickn33/agentic-awesome-skills --plugin agentic-awesome-skills3,104 skills in this plugin
/007Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project./00-andruia-consultantUsar al iniciar o mejorar un proyecto de IA: diagnostica código y restricciones, propone skills existentes y redacta tareas y un plan de implementación en español./10-andruia-skill-smithUsar para crear o mejorar una skill de Andru.ia: define entradas y resultados, redacta SKILL.md con ejemplos y límites, valida la estructura y prepara una PR.2 plugins in one repository ship this exact skill · first indexed Dec 2, 2026
Other plugins' skills for the same job