PluginBench
Skill
Review
Audit score 70

webgpu

cazala/webgpu-skill

How to install webgpu

npx skills add https://github.com/cazala/webgpu-skill --skill webgpu
Claude Code
Cursor
Windsurf
Cline
Full instructions (SKILL.md)

Source of truth, from cazala/webgpu-skill.


name: webgpu description: WebGPU/WGSL guidance for initialization, render/compute pipelines, shader authoring, debugging, and performance; use when building or troubleshooting WebGPU apps, GPU compute workloads, or WGSL shaders.

WebGPU Skill

Use this skill to design, implement, and debug WebGPU applications and GPU compute pipelines. Keep it framework-agnostic and focus on reusable WebGPU/WGSL patterns.

What this skill covers

  • Cover WebGPU initialization, device setup, and surface configuration.
  • Cover compute pipelines, workgroup sizing, and storage buffer layout.
  • Cover render pipelines, render passes, and post-processing patterns.
  • Cover GPU/CPU synchronization and safe readback strategies.
  • Cover performance and debugging practices.
  • Cover architecture patterns: modular passes, phase-based simulation, and capability handling.
  • Cover use cases: rendering, compute, ML training/inference, grid simulations, and systems modeling.

Core principles

  • Choose a capability strategy: fallback runtime, reduced mode, or fail fast.
  • Avoid full GPU readbacks in hot paths; use localized queries or small readback buffers.
  • Structure simulation with phases (state, apply, integrate, constrain, correct) to keep WGSL cohesive.
  • Use spatial grids or other spatial indexing for neighbor queries and high particle counts.
  • Build modular passes so render and compute stages stay composable and testable.

Workflow

When asked to build a WebGPU feature:

  1. Confirm the target platform and WebGPU support expectations.
  2. Propose a resource layout (buffers, textures, bind groups) with a simple data model.
  3. Sketch the pipeline graph (compute vs render passes) and dependencies.
  4. Provide minimal working code and scale up with performance constraints.
  5. Choose a capability strategy when WebGPU is unavailable.

Deliverable checklist

  • Provide clean WebGPU init and error handling.
  • Include a buffer layout with alignment notes (16-byte struct alignment for WGSL).
  • Include a pass graph with clear read/write ownership (ping-pong textures if needed).
  • Call out readback and when it is safe.
  • Provide an optional fallback or reduced mode for critical functionality.

References and assets

Quick reference

See REFERENCE.md for a compact WebGPU cheat sheet and references/ for deeper patterns, including references/use-cases.md and references/simulation-patterns.md.

Related skills

More from cazala/webgpu-skill and the wider catalog.

CLclean-ddd-hexagonal logo

clean-ddd-hexagonal

ccheney/robust-skills

DDD + Clean Architecture + Hexagonal patterns for maintainable, testable backend services.

3.5k installsAudited
POpostgres-drizzle logo

postgres-drizzle

ccheney/robust-skills

Proactively apply when creating APIs, backends, or data models. Triggers on PostgreSQL, Postgres, Drizzle, database, schema, tables, columns, indexes, queries, migrations, ORM, relations, joins, transactions, SQL, drizzle-kit, connection pooling, N+1, JSONB, RLS. Use when writing database schemas, queries, migrations, or any database-related code. PostgreSQL and Drizzle ORM best practices.

1.0k installs
NEnews-aggregator-skill logo

news-aggregator-skill

cclank/news-aggregator-skill

Fetch and analyze real-time news from 44+ sources with deep insights in Chinese.

5.6k installs
CC

ccxt-python

ccxt/ccxt

CCXT cryptocurrency exchange library for Python developers. Covers both REST API (standard) and WebSocket API (real-time). Helps install CCXT, connect to exchanges, fetch market data, place orders, stream live tickers/orderbooks, handle authentication, and manage errors in Python. Use when working with crypto exchanges in Python projects, trading bots, data analysis, or portfolio management. Supports both sync and async (asyncio) usage.

769 installs
BEbest-minds logo

best-minds

ceeon/best-minds

模拟器思维:不问"你怎么看",而是问"世界上谁最懂这个?TA 会怎么说?"。触发词:最强大脑、顶级专家、世界级、best minds、谁最懂这个

824 installsAudited
MOmobile-app-ui-design logo

mobile-app-ui-design

ceorkm/mobile-app-ui-design

Design polished mobile app UI/UX screens, flows, and components following proven design principles.

2.9k installsAudited