Skip to content
Back to skills

Validation And Conversion

ASecurity

"Guides ONNX checker, shape inference, parser, printer,

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
toolspythonc++nodeapibackend

Works with

  • cli
  • api

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill validation-and-conversion --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Validation And Conversion?

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

Security grade badge for Validation And Conversion
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-validation-and-conversion/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-validation-and-conversion)

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: validation-and-conversion
description: "Guides ONNX checker, shape inference, parser, printer,
  version-converter, inliner, and CLI validation workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# ONNX Validation and Conversion

Use this sub-skill when a task is about checking whether an ONNX model or node is legal, inferring shapes or types, parsing or printing ONNX text, converting opset versions, or inlining model-local functions.

## Workflow

1. Start with the smallest artifact that fails: a node, graph, or complete model.
2. Validate structural legality first with `onnx.checker.check_node`, `check_graph`, or `check_model`.
3. For model shape questions, call `onnx.shape_inference.infer_shapes` on a `ModelProto`. Use `infer_shapes_path` for file paths or very large models.
4. For ONNX text, keep syntax close to the grammar in `references/cli-reference.md` and `references/workflows.md`; parse with `onnx.parser.parse_model` or `parse_graph`, then validate the result.
5. For opset changes, use `onnx.version_converter.convert_version` only when the target path is supported; otherwise keep the original opset and surface the mismatch.
6. For local functions, use `onnx.inliner.inline_local_functions` or `inline_selected_functions` and then re-run checker/inference.
7. Use the `check-model` and `check-node` CLIs when the task is about a serialized protobuf and a safe command-line check is clearer than a Python snippet.

## Route to References and Helpers

- Read `references/api-reference.md` for verified signatures and error classes.
- Read `references/cli-reference.md` for `check-model`, `check-node`, and `backend-test-tools` help output.
- Read `references/workflows.md` for validate/infer/parse/print/convert/inline recipes.
- Read `references/troubleshooting.md` before retrying a syntax, large-model, or conversion failure.
- Run `scripts/validate_convert_model.py --help` before using it on a model file or a generated tiny model.

## Scope Boundaries

- Use `model-authoring` for constructing or saving models and tensors.
- Use `reference-and-backend-tests` when the question is whether the model produces expected outputs.
- Use `operator-spec-maintenance` for schema edits, C++ shape inference, function bodies, and node-test generation.

Files in this skill

  • SKILL.md2.3 KB
  • references/api-reference.md2.6 KB
  • references/cli-reference.md1.2 KB
  • references/troubleshooting.md1.6 KB
  • references/workflows.md2 KB
  • scripts/validate_convert_model.py3.6 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.