Skip to content

Portable WebGPU application and WGSL shader guidance covering pipelines, data layout, lifecycle, and diagnostics.

CCM score
69 of 100
skills.sh installs
903
GitHub stars
35
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full WebGPU build flow: capability checks, WGSL data layout, resource and pass graphs, rendering, and compute pipelines
  • Includes a Vite starter with a compute-and-render particle field, ping-pong buffers, compilation diagnostics, resize handling, and device-loss reporting
  • Enforces explicit capability, data, pass, presentation, and lifecycle contracts, with optional features gated rather than assumed
  • Designed for developers building GPU simulations, particles, image processing, or data-parallel workloads in browser applications

Install

$ npx -y skills add cazala/webgpu-skill --skill webgpu -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

WebGPU

Build the smallest observable GPU result first, then scale it. Treat every WebGPU feature as five explicit contracts:

  1. Capability contract: baseline, optional features and limits, fallback.
  2. Data contract: WGSL types, byte offsets, strides, usage flags.
  3. Pass contract: reads, writes, ordering, ping-pong ownership.
  4. Presentation contract: canvas format, physical size, alpha and color.
  5. Lifecycle contract: creation, resize, errors, loss and destruction.

Copy the full Vite starter for a new browser project. It contains a typed compute-and-render particle field with ping-pong buffers, compilation diagnostics, resize handling, pointer interaction, device-loss reporting, and cleanup.

Work from a resource and pass graph

Before writing WGSL, list persistent resources and pass ownership:

CPU seed ─writeBuffer─> state A
                         │
state A ─compute step─> state B ─render─> canvas
state B ─compute step─> state A ─render─> canvas

For every pass, record:

Details

Repository
github.com/cazala/webgpu-skill
Categories
Frontend & UI Code, Game Development, 3D, CAD & Modeling
First seen
May 16, 2026

Similar to Webgpu

More Frontend & UI Code