threejs-syntax-shaders

threejs-syntax-shaders is a skill for Claude Code, Codex from Impertio-Studio/Three.js-Claude-Skill-Package. It costs 127 tokens per session (3,045 once invoked), scanned A, original, MIT.

A reference for writing custom GLSL code in Three.js, a JavaScript 3D graphics library, including shader materials and material modifications.

In plain words
What is it for?
Use it when creating ShaderMaterial or RawShaderMaterial, defining GLSL uniforms, or changing built-in Three.js materials with onBeforeCompile.
Why use it?
It helps prevent mistakes with shader inputs, uniforms, required declarations, and updates to rendered materials.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it when creating ShaderMaterial or RawShaderMaterial, defining GLSL uniforms, or changing built-in Three.js materials with onBeforeCompile.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/impertio-studio/three.js-claude-skill-package/threejs-syntax-shaders
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 Impertio-Studio/Three.js-Claude-Skill-Package --skill threejs-syntax-shaders
Clone the repo
git clone --depth 1 https://github.com/Impertio-Studio/Three.js-Claude-Skill-Package

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 threejs-syntax-shaders

README.md
[![agentmods](https://agentmods.dev/badge/skills/impertio-studio/three.js-claude-skill-package/threejs-syntax-shaders.svg)](https://agentmods.dev/skills/impertio-studio/three.js-claude-skill-package/threejs-syntax-shaders)
Your own site
<a href="https://agentmods.dev/skills/impertio-studio/three.js-claude-skill-package/threejs-syntax-shaders"><img src="https://agentmods.dev/badge/skills/impertio-studio/three.js-claude-skill-package/threejs-syntax-shaders.svg" alt="Measured on agentmods" height="20"></a>
Per session 127 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,045 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 original No closer match found 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.00127 $0.03045
Opus 5 $0.00063 $0.01522
Sonnet 5 $0.00025 $0.00609
Haiku 4.5 $0.00013 $0.00304

Measured 8d ago against content hash 7da94c88c7d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

threejs-syntax-shaders 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 8d ago.

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.

skills/source/threejs-syntax/threejs-syntax-shaders/SKILL.md · 352 lines

How it starts

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

threejs-syntax-shaders

Quick Reference

ShaderMaterial vs RawShaderMaterial

Aspect ShaderMaterial RawShaderMaterial
Built-in uniforms Automatically injected NONE -- you MUST declare everything
Built-in attributes Automatically declared NONE -- you MUST declare everything
#include <chunk> Supported NOT supported
Precision declaration Automatic You MUST add precision mediump float;
Use case Extend Three.js rendering Full shader control, porting external shaders
Performance Slight overhead from unused built-ins Minimal shader overhead

Uniform Type Map

GLSL Type JavaScript Value
float { value: 1.0 }
int { value: 1 }
bool { value: true }
vec2 { value: new THREE.Vector2() }
vec3 { value: new THREE.Vector3() } or { value: new THREE.Color() }
vec4 { value: new THREE.Vector4() }
mat3 { value: new THREE.Matrix3() }
mat4 { value: new THREE.Matrix4() }
sampler2D { value: texture } (a THREE.Texture instance)
samplerCube { value: cubeTexture }
float[] { value: [1.0, 2.0, 3.0] }
vec3[] { value: [new THREE.Vector3(), ...] }

Critical Warnings

NEVER pass a bare value as a uniform -- ALWAYS wrap it in { value: ... }. Writing uniforms: { uTime: 0.0 } silently fails; ALWAYS write uniforms: { uTime: { value: 0.0 } }.

NEVER declare built-in uniforms or attributes in a ShaderMaterial shader -- Three.js injects them automatically. Redeclaring causes a GLSL compilation error.

ALWAYS declare ALL uniforms, attributes, and precision in RawShaderMaterial shaders -- nothing is injected for you.

NEVER use gl_FragColor or texture2D() when glslVersion is THREE.GLSL3 -- use a declared out vec4 variable and texture() instead.

ALWAYS call material.needsUpdate = true after changing defines -- defines are compiled into the shader, so changes require recompilation.

Read the full file on GitHub · 352 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 352 lines · 127 tokens per session scan A 7da94c88c7d8

Subscribe to this mod's changes

threejs-syntax-shaders is a skill published in the GitHub repository Impertio-Studio/Three.js-Claude-Skill-Package (12 stars, last pushed 2mo ago), licensed MIT. It adds 127 tokens to every session and 3,045 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

sceneview-web

Build 3D and WebXR (AR/VR) experiences in the browser with SceneView for Web — Filament.js (WebGL2/WASM) wrapped in a Kotlin/JS DSL and a plain-JavaScript API on window.sceneview. Use whenever the user asks for "3D in the browser", "a web model viewer", "WebXR AR/VR", or any browser 3D/AR app where the dependency is…

sceneview/sceneview · 147 tokens

hud

Putting numbers, buttons, messages and panels on top of a game — a resource counter, a price, a build button, a toast, a dialog, floating +5s. Use when adding a HUD, an overlay, a score or resource display, a shop button, a notification, a modal; when a tap on the game is being swallowed by the interface; or when the…

plausibleventures/lattice · 89 tokens

typescript-style

Validate TypeScript/React code against style and architectural conventions.

peteski22/agent-pragma · 14 tokens

threejs-docs

Comprehensive Three.js reference covering core API (objects, cameras, lights, materials, geometries, renderers, scenes, textures, math, animation, audio, loaders, helpers, nodes), all addons (controls, postprocessing, loaders, exporters, geometries, shaders, WebXR, physics), TSL (Three.js Shading Language) functions…

pledgeandgrow/pledge-skills · 112 tokens

frontend-design

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

anthropics/claude-plugins-official · 40 tokens

ima-dai-sdk

Integrates the Google Interactive Media Ads (IMA) Dynamic Ad Insertion (DAI) SDK into websites, web apps, mobile apps, or TV apps. Use when: - A video player needs to load and play HLS or DASH streams in web apps, Android apps, iOS apps, tvOS apps, Cast (CAF) receivers, or Roku channels. - The app needs to make use of…

google/skills · 125 tokens