webgpu-specs

gfx-rs's avatarfrom gfx-rs

Download WebGPU and WGSL specifications for use as a reference

⭐16.1kstars🔀1.2kforks📁View on GitHub🕐Updated Jan 10, 2026

When & Why to Use This Skill

The webgpu-specs skill automates the retrieval and local indexing of the latest WebGPU and WGSL specifications. By providing a local searchable reference of the .bs (Bikeshed) files, it enables Claude to offer precise technical guidance, verify API usage, and generate direct clickable links to official documentation sections, significantly enhancing productivity for graphics engineers and web developers.

Use Cases

  • API Reference Lookup: Quickly find detailed requirements for WebGPU features like Object Descriptors or pipeline states without leaving the chat interface.
  • Shader Development: Cross-reference WGSL code against the official language specification to ensure syntax correctness and understand hardware-specific constraints.
  • Technical Documentation: Generate accurate code comments or technical design documents that include deep links to specific anchors in the GPUWeb GitHub specifications.
  • Offline Specification Access: Maintain a local, up-to-date copy of evolving web standards to ensure development aligns with the latest consensus.
namewebgpu-specs
descriptionDownload WebGPU and WGSL specifications for use as a reference
allowed-tools"Bash(sh .claude/skills/webgpu-specs/download.sh)"

Run sh .claude/skills/webgpu-specs/download.sh to download the WebGPU and WGSL specifications if they are not present or if they have been updated. You do not need to change directory before running the script.

After the specs are downloaded, you can search in target/claude/webgpu-spec.bs and target/claude/wgsl-spec.bs for relevant sections of the specification.

When referencing the specifications, prefer to use named anchors rather than line numbers. For example, to reference the "Object Descriptors" section, which has the following header:

### Object Descriptors ### {#object-descriptors}

Use the URL https://gpuweb.github.io/gpuweb/#object-descriptors so the user can click to navigate directly to that section.

For the WGSL specification, the base URL is https://gpuweb.github.io/gpuweb/wgsl/.

If necessary, read additional content from the file to find the header preceding the text you want to reference. You may provide line numbers as additional context, but always make every effort to provide the user with a clickable link.