webidl_codegen
OfficialGenerate Zig bindings from WebIDL definitions.
Authorzig-whatwg
Version1.0.0
Installs0
System Documentation
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/
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: webidl_codegen Download link: https://github.com/zig-whatwg/crane/archive/main.zip#webidl-codegen Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.