Each kernel has its own repository and kernel card on the Hub, documenting operation semantics, inputs, outputs, attributes, supported data types, source files, and runnable examples. For example, ai.onnx.Add implements element-wise addition with multi-dimensional broadcasting, and its card records input/output shapes, data types, and variants for different shapes/devices.
The repository contains manifest.json (the source of truth for the operation contract), metadata.json (kernel identifier and source), test.json (correctness tests), bench.json (benchmark cases), and *.wgsl.jinja files (parameterized WGSL implementations). This structure transforms shaders into reusable software artifacts, with interfaces inspectable without reading WGSL, correctness and performance cases published alongside implementations, and versions explicitly loadable.