What problem does it solve?
This Skill documents and orchestrates the WebIDL code generation process that converts WHATWG WebIDL interface definitions into Zig bindings, enabling type-safe Zig interfaces, typedefs, dictionaries, and stubs.
Core Features & Use Cases
- Codegen pipeline: Reads official WebIDL definitions from specs/idl and specs/supplementary and outputs generated Zig files under src/webidl/, including interfaces, typedefs, dictionaries, callbacks, enums, namespaces, and implementation stubs.
- Automation and regeneration: Supports regenerating all outputs after IDL updates and optionally regenerating implementation stubs with --impls.
- Developer workflow: Ideal for developers extending the Zig runtime with WebIDL-based APIs and for maintaining up-to-date bindings with WHATWG specs.
Quick Start
Use the WebIDL Codegen Skill to generate Zig bindings from the included IDL sources by running zig build codegen -- specs/idl/ specs/supplementary/ --dest-root src/webidl/