What problem does it solve? Building WebGPU applications involves subtle pitfalls: incorrect WGSL buffer layouts, unguarded compute dispatches, device loss, canvas resize bugs, and silent validation failures. This Skill guides agents through explicit capability, data, pass, presentation, and lifecycle contracts so GPU code is correct, portable, and diagnosable from the first frame. ## Core Features & Use Cases - Contract-driven workflow: Build from a resource and pass graph with exact WGSL data layout, ping-pong state ownership, and guarded dispatches before scaling up. - Task-specific references: Deep guidance on initialization and lifecycle, WGSL data layout, compute patterns, rendering patterns, debugging and performance, compatibility, and creative simulation recipes. - Typed starter application: A copyable Vite + TypeScript particle field demonstrating compute-and-render pipelines, compilation diagnostics, resize handling, pointer interaction, device-loss reporting, and cleanup. - Use Case: Ask the agent to build a GPU particle simulation; it will request only needed device features, define exact buffer offsets, set up ping-pong storage buffers, surface shader compilation errors, and handle resize and teardown correctly. ## Quick Start Use the webgpu skill to build a portable WebGPU particle simulation with exact WGSL buffer layout, compilation diagnostics, and device-loss handling.