webgpu-threejs-tsl — Claude Code skill: what it does, how to install
Guides an agent through Three.js work with WebGPU, TSL node materials, GPU compute shaders, and post-processing effects.
npx skills add dgreenheck/webgpu-claude-skill --skill webgpu-threejs-tsl -a claude-codeWhat webgpu-threejs-tsl does
This skill gives an agent reference material and examples for Three.js projects that use the WebGPU renderer. It covers TSL syntax, node materials, reusable shader functions, GPU compute, post-processing, and custom WGSL integration.
Its documentation includes materials, WebGPU device limits and recovery after device loss. Examples cover basic setup, custom materials, a particle system, an effect pipeline, and an Earth scene with an atmosphere. Project and compute-shader templates are included too.
Three.js must be imported from three/webgpu, with TSL functions from three/tsl. That matters when moving an existing scene to WebGPU.
What it helps with
- set up
WebGPURendererin a Three.js project - build a TSL node material
- move GLSL shader logic to TSL
- write a GPU compute shader for instanced arrays
- create a post-processing effect pipeline
Example prompts for the agent
- Set up a Three.js scene with
WebGPURendererand a TSL material. - Create a GPU compute shader for a particle system.
- Help me migrate a GLSL material to TSL using a reusable
Fn()function.
How to install webgpu-threejs-tsl
1Skills CLI (Vercel)
npx skills add dgreenheck/webgpu-claude-skill --skill webgpu-threejs-tsl -a claude-code2Manually: put the files in place
~/.claude/skills/webgpu-threejs-tsl/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/webgpu-threejs-tsl/
1Skills CLI (Vercel)
npx skills add dgreenheck/webgpu-claude-skill --skill webgpu-threejs-tsl -a codex2Manually: put the files in place
.agents/skills/webgpu-threejs-tsl/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add dgreenheck/webgpu-claude-skill --skill webgpu-threejs-tsl -a cursor2Manually: put the files in place
.cursor/skills/webgpu-threejs-tsl/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install dgreenheck/webgpu-claude-skill webgpu-threejs-tsl2Manually: put the files in place
.github/skills/webgpu-threejs-tsl/SKILL.md1Skills CLI (Vercel)
npx skills add dgreenheck/webgpu-claude-skill --skill webgpu-threejs-tsl -a gemini-cli2Platform CLI
gemini skills install https://github.com/dgreenheck/webgpu-claude-skill --path skills/webgpu-threejs-tslManually: put the files in place
.devin/skills/webgpu-threejs-tsl/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add dgreenheck/webgpu-claude-skill --skill webgpu-threejs-tsl -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about webgpu-threejs-tsl
How do I install webgpu-threejs-tsl in Claude Code?
Run npx skills add dgreenheck/webgpu-claude-skill --skill webgpu-threejs-tsl -a claude-code, then run npx skills add dgreenheck/webgpu-claude-skill --skill webgpu-threejs-tsl -a claude-code again. The skill file is placed at ~/.claude/skills/webgpu-threejs-tsl/SKILL.md.
What does webgpu-threejs-tsl do?
It provides guidance for building Three.js applications with WebGPU. The material covers TSL, node materials, compute shaders, WGSL functions, and post-processing.
Which imports are used for WebGPU and TSL?
Import Three.js from three/webgpu and import TSL functions from three/tsl. The standard Three.js entry point does not fit this setup.