Skip to main content
skill CX Codex

threejs-webgpu — Claude Code skill: features and installation

The threejs-webgpu Claude Code skill helps build or migrate Three.js projects using WebGPURenderer, TSL node materials, and GPU compute. It applies to tasks where renderer backends and device support need explicit testing.

MIT 585 installs ★ 26 updated 2026-09-10

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add cesartevisual/threejs-skills --skill threejs-webgpu -a claude-code
Open on GitHub

What threejs-webgpu does

The skill guides work on Three.js features built with WebGPURenderer, TSL materials, and GPU compute. It checks the project's installed revision and architecture against the relevant renderer and TSL APIs.

For compute tasks, it covers storage layouts, bounds checks, dispatch sizing, synchronization, and readback. It also addresses asynchronous renderer setup, initialization errors, and device loss. Three.js APIs change quickly, so examples from a different pinned revision can be incompatible.

Custom GLSL, shader patches, and composer effects need deliberate porting; the skill does not treat them as automatically compatible. Testing should cover the requested WebGPU device and each fallback backend promised for the project.

What it helps with

  • migrate a Three.js project to WebGPURenderer
  • build a material with TSL nodes
  • configure GPU compute bounds and synchronization
  • handle renderer initialization errors or device loss

Example prompts for the agent

  • Migrate this Three.js project to WebGPURenderer.
  • Build a TSL material for this scene.
  • Set up GPU compute and test the selected backend.

How to install threejs-webgpu

1Skills CLI (Vercel)

npx skills add cesartevisual/threejs-skills --skill threejs-webgpu -a claude-code

2Manually: put the files in place

~/.claude/skills/threejs-webgpu/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/threejs-webgpu/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about threejs-webgpu

How do I install threejs-webgpu in Claude Code?

Run npx skills add cesartevisual/threejs-skills --skill threejs-webgpu -a claude-code. The skill file is placed at ~/.claude/skills/threejs-webgpu/SKILL.md.

What does threejs-webgpu do?

It guides Three.js work involving WebGPURenderer, TSL node materials, and GPU compute. It also covers backend testing and renderer initialization failures.

Does threejs-webgpu automatically port custom GLSL?

No. Custom GLSL, shader patches, and composer effects need to be adapted intentionally to supported node and TSL mechanisms.

Source text

SKILL.md · MIT
---
name: threejs-webgpu
description: "Build or migrate Three.js WebGPURenderer, TSL node materials, and GPU compute features."
---

# WebGPU and TSL

Use the project's installed versions and existing architecture. These instructions supplement the user's task; they do not authorize unrelated changes or external actions.

Check the installed Three.js exports and matching renderer/TSL documentation first. These APIs evolve quickly; use the project's pinned revision rather than mixing current snippets into an older install.

List required features and backend constraints. WebGPURenderer can use a WebGL backend when supported, but backend selection does not guarantee every compute or effect feature works on both. Test the actual selected backend. Do not replace a working WebGLRenderer unless the requested feature or migration warrants it.

Follow the revision's asynchronous initialization contract before rendering or capability-dependent setup. Handle initialization failure and unsupported devices with an explicit fallback state. Keep imports consistent with the renderer build to avoid duplicate class/module instances.

Express materials through supported node/TSL mechanisms. Port custom GLSL, shader patches, and composer effects intentionally; they are not automatically compatible. For compute, define storage layouts, bounds checks, dispatch sizes, synchronization, and readback frequency. Avoid per-frame CPU readback when data can stay on the GPU.

Manage compute buffers, render targets, and backend device loss according to current APIs. Avoid unbounded workload retries after initialization failure.

Verify on the requested WebGPU device/browser and any promised fallback backend. Report backend and feature results separately; a browser exposing navigator.gpu is not proof that this scene rendered successfully.

## API reference

Consult the [official documentation](https://threejs.org/docs/pages/WebGPURenderer.html) for exact signatures and revision-specific behavior. If documentation access is unavailable, inspect installed types/source and state any remaining uncertainty.

© cesartevisual · MIT · cesartevisual/threejs-skills

Similar skills

All skills for Game dev and 3D: Unity, Unreal, Godot, Blender →

From the same set24

The whole set →
threejs-geometry This Claude Code skill creates and refines Three.js geometry. It activates for work on BufferGeometry, procedural meshes, and instanced objects. CX Codex +1 638installs threejs-product-viewer This Claude Code skill guides the creation of interactive Three.js product viewers. It comes into play when a project needs material choices, camera presets, or model hotspots. CX Codex +1 621installs threejs-physics threejs-physics — a skill for Claude Code guides the integration of Three.js with Rapier or other physics engines. It handles colliders, fixed simulation timesteps, and render transform synchronization. CX Codex +1 611installs threejs-html threejs-html — a skill for Claude Code that integrates Three.js canvases into responsive HTML and Next.js apps. It sets up overlays, scroll containers, and multi-view layouts safely. CX Codex +1 597installs threejs-spatial-data threejs-spatial-data — a skill for Claude Code helps integrate BIM, GIS, and CAD models into Three.js scenes. Manages large coordinates, clipping planes, and measurement tools without losing GPU floating-point precision. CX Codex +1 587installs threejs-audio threejs-audio — a skill for Claude Code guides the setup of Three.js spatial audio. It manages listener attachment, browser autoplay restrictions, and audio lifecycle during scene transitions. CX Codex +1 583installs threejs-deployment Claude Code skill threejs-deployment prepares and verifies Three.js web builds, asset hosting, decoder paths, and caching. CX Codex +1 582installs threejs-xr The threejs-xr Claude Code skill guides VR and AR work in Three.js projects. It covers XR input, reference spaces, hit testing, and session handling. CX Codex +1 577installs

Project sponsors

Companies that keep this analytics open