A focused skill for building WebGPU applications, from device initialization and buffer layouts to render pipelines and compute passes. You get guidance on WGSL shader authoring, workgroup sizing, and synchronization patterns. The skill pushes you toward modular pipeline design and includes practical advice on fallback strategies when WebGPU isn't available. It covers common use cases like grid simulations and GPU compute workloads, with specific attention to avoiding performance pitfalls like full GPU readbacks in hot paths. The included reference materials and examples give you working code to adapt rather than starting from scratch every time.

skills.sh installs
873
GitHub stars
35
last updated
Aug 21, 2026

Install

$ npx -y skills add cazala/webgpu-skill --skill webgpu --agent claude-code

Installs into .claude/skills of the current project.

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:

Sponsors

Details

Repository
github.com/cazala/webgpu-skill
Categories
Git & Pull Requests, Code Review & Quality, Debugging, Automation & Workflows, Design & UI/UX
First seen
May 16, 2026
1nathan-gage avatarpython-best-practicesnathan-gage/python-skillsPython software engineering guidelines from real PR review patterns. This skill should be used when writing, reviewing, or refactoring Python code — especially 868skills.sh installs
2alirezarezvani avataradversarial-revieweralirezarezvani/claude-skillsAdversarial code review that breaks the self-review monoculture. Use when you want a genuinely critical review of recent changes, before merging a PR, or when y856skills.sh installs
3softaworks avatarjirasoftaworks/agent-toolkitUse when the user mentions Jira issues (e.g., "PROJ-123"), asks about tickets, wants to create/view/update issues, check sprint status, or manage their Jira wor854skills.sh installs
4rshankras avatarios-developmentrshankras/claude-code-apple-skillsComprehensive iOS development guidance including Swift best practices, SwiftUI patterns, UI/UX review against HIG, and app planning. Use for iOS code review, be845skills.sh installs
5netresearch avataragent-rulesnetresearch/agent-rules-skillUse when creating or updating AGENTS.md files, .github/copilot-instructions.md, or other AI agent rule files, onboarding AI agents to a project, standardizing a839skills.sh installs
6maplibre avatarmaplibre-pmtiles-patternsmaplibre/maplibre-agent-skillsServerless vector and raster tiles with PMTiles for MapLibre GL JS — single-file format, HTTP range requests, hosting on S3/R2/GitHub Pages, generating with Pla833skills.sh installs