webgpu-threejs-tsl

webgpu-threejs-tsl is a skill for Claude Code, Codex from tdimino/claude-code-minoan. It costs 80 tokens per session (807 once invoked), scanned A, a copy of webgpu-threejs-tsl, MIT.

A reference for using WebGPU in Three.js, including TSL, a JavaScript-based way to describe GPU shaders, node materials, WGSL code, compute shaders, and post-processing effects.

In plain words
What is it for?
Use it to set up WebGPU renderers, create node-based materials, run GPU particle calculations, write WGSL functions, and add rendering effects.
Why use it?
It gives you the relevant API patterns and examples for newer GPU rendering work without having to assemble the documentation yourself. It also covers device limits and recovery when a GPU device is lost.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to set up WebGPU renderers, create node-based materials, run GPU particle calculations, write WGSL functions, and add rendering effects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tdimino/claude-code-minoan/webgpu-threejs-tsl
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tdimino/claude-code-minoan --skill webgpu-threejs-tsl
Clone the repo
git clone --depth 1 https://github.com/tdimino/claude-code-minoan

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for webgpu-threejs-tsl

README.md
[![agentmods](https://agentmods.dev/badge/skills/tdimino/claude-code-minoan/webgpu-threejs-tsl/github.svg)](https://agentmods.dev/skills/tdimino/claude-code-minoan/webgpu-threejs-tsl)
Your own site
<a href="https://agentmods.dev/skills/tdimino/claude-code-minoan/webgpu-threejs-tsl"><img src="https://agentmods.dev/badge/skills/tdimino/claude-code-minoan/webgpu-threejs-tsl/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for webgpu-threejs-tsl

Your own site · 80×15
<a href="https://agentmods.dev/skills/tdimino/claude-code-minoan/webgpu-threejs-tsl"><img src="https://agentmods.dev/badge/skills/tdimino/claude-code-minoan/webgpu-threejs-tsl.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 807 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 89% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00080 $0.00807
Opus 5.5 $0.00032 $0.00323
Sonnet 5.5 $0.00016 $0.00161
Haiku 4.5 $0.00008 $0.00081

Measured 1mo ago against content hash cb746b561ea3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

webgpu-threejs-tsl scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 7 executable files (examples/basic-setup.js, examples/custom-material.js, examples/earth-shader.js, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

89% identical to webgpu-threejs-tsl — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/design-media/webgpu-threejs-tsl/SKILL.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

WebGPU Three.js with TSL

TSL (Three.js Shading Language) is a node-based shader abstraction that lets you write GPU shaders in JavaScript instead of GLSL/WGSL strings.

Quick Start

import * as THREE from 'three/webgpu';
import { color, time, oscSine } from 'three/tsl';

const renderer = new THREE.WebGPURenderer();
await renderer.init();

const material = new THREE.MeshStandardNodeMaterial();
material.colorNode = color(0xff0000).mul(oscSine(time));

Skill Contents

Documentation

  • docs/core-concepts.md - Types, operators, uniforms, control flow
  • docs/materials.md - Node materials and all properties
  • docs/compute-shaders.md - GPU compute with instanced arrays
  • docs/post-processing.md - Built-in and custom effects
  • docs/wgsl-integration.md - Custom WGSL functions
  • docs/device-loss.md - Handling GPU device loss and recovery
  • docs/limits-and-features.md - WebGPU device limits and optional features

Examples

  • examples/basic-setup.js - Minimal WebGPU project
  • examples/custom-material.js - Custom shader material
  • examples/particle-system.js - GPU compute particles
  • examples/post-processing.js - Effect pipeline
  • examples/earth-shader.js - Complete Earth with atmosphere

Templates

  • templates/webgpu-project.js - Starter project template
  • templates/compute-shader.js - Compute shader template

Reference

  • REFERENCE.md - Quick reference cheatsheet

Key Concepts

Import Pattern

// Always use the WebGPU entry point
import * as THREE from 'three/webgpu';
import { /* TSL functions */ } from 'three/tsl';

Node Materials

Replace standard material properties with TSL nodes:

material.colorNode = texture(map);        // instead of material.map
material.roughnessNode = float(0.5);      // instead of material.roughness
material.positionNode = displaced;         // vertex displacement

Method Chaining

TSL uses method chaining for operations:

// Instead of: sin(time * 2.0 + offset) * 0.5 + 0.5
time.mul(2.0).add(offset).sin().mul(0.5).add(0.5)

Read the full file on GitHub · 94 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 94 lines · 80 tokens per session scan A cb746b561ea3

Subscribe to this mod's changes

webgpu-threejs-tsl is a skill published in the GitHub repository tdimino/claude-code-minoan (41 stars, last pushed 9d ago), licensed MIT. It adds 80 tokens to every session and 807 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 89% identical to webgpu-threejs-tsl, differing in 2 lines, and is treated as a copy.

Related

Other skills, from other repositories

manager

A session-to-GitHub tracker that creates, updates, and reads issues across repositories, including their labels, parent epics, and project-board placement.

serejaris/personal-corp-os · 66 tokens

audit-agent-rules

A skill that audits agent instruction files and the skills an agent sees when it starts, then reports what to remove, move, or rewrite. It edits files only after the user agrees.

serejaris/personal-corp-os · 86 tokens

art-director

Orchestrate iterative visual style searches with branch prompts, decision graphs, feedback loops, and final direction selection.

serejaris/personal-corp-os · 26 tokens

idea

Use when capturing ONE new idea the user voices and wants recorded — "save this idea", "I have an idea", "log this idea", "/idea", "idea: ...". Creates a provenance-tracked folder (one folder per idea) in your ideas repo, dedups against an index, optionally mirrors to a GitHub Project view filtered by label:idea. NOT…

serejaris/personal-corp-os · 135 tokens

weekly-planning

A planning workflow that turns a completed weekly review and existing backlog into prioritized outcomes for one ISO calendar week.

serejaris/personal-corp-os · 49 tokens

gh-issues

Use when creating, searching, updating, or managing GitHub issues via CLI. Triggers: "issue", "create issue", "gh issue", "task tracking", "context", "handoff", "resume task", "session context", "save progress", "active tasks", "in-progress", "my tasks", "open issues". Covers: gh commands, bulk operations, JSON/jq…

serejaris/personal-corp-os · 104 tokens