threejs-docs

threejs-docs is a skill for Claude Code, Codex from pledgeandgrow/pledge-skills. It costs 112 tokens per session (1,632 once invoked), scanned A, original, MIT.

A reference guide to Three.js, a JavaScript library for creating interactive 3D scenes in the browser.

In plain words
What is it for?
Use it to build or explain browser-based 3D graphics, including models, textures, controls, shaders, animation, audio, and physics integrations.
Why use it?
It helps coding agents work with the library's scenes, cameras, lights, materials, geometry, animation, loaders, and WebXR features accurately.

Skill for Claude CodeCodex

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

Good fit Use it to build or explain browser-based 3D graphics, including models, textures, controls, shaders, animation, audio, and physics integrations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pledgeandgrow/pledge-skills/threejs
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 pledgeandgrow/pledge-skills --skill threejs
Clone the repo
git clone --depth 1 https://github.com/pledgeandgrow/pledge-skills

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-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/threejs.svg)](https://agentmods.dev/skills/pledgeandgrow/pledge-skills/threejs)
Your own site
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/threejs"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/threejs.svg" alt="Measured on agentmods" height="20"></a>
Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,632 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.00112 $0.01632
Opus 5 $0.00056 $0.00816
Sonnet 5 $0.00022 $0.00326
Haiku 4.5 $0.00011 $0.00163

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

Security

Grade A, and why

threejs-docs 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 5d 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/threejs/SKILL.md · 156 lines

How it starts

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

Three.js Expert (r168+)

Official Documentation: https://threejs.org/docs/

Quick Reference

Topic File
Animation & Audio: AnimationClip, AnimationMixer, Audio, AudioListener core-animation-audio.md
Cameras: Camera, PerspectiveCamera, OrthographicCamera, StereoCamera core-cameras.md
Core classes: BufferAttribute, Clock, EventDispatcher, Raycaster, UniformsGroup core-classes.md
Geometries: BufferGeometry, BoxGeometry, SphereGeometry, PlaneGeometry, etc. core-geometries.md
Helpers: AxesHelper, GridHelper, BoxHelper, CameraHelper, etc. core-helpers.md
Lights: Light, AmbientLight, DirectionalLight, PointLight, SpotLight, etc. core-lights.md
Loaders: Loader, FileLoader, TextureLoader, GLTFLoader, etc. core-loaders.md
Materials: Material, MeshBasicMaterial, MeshStandardMaterial, ShaderMaterial, etc. core-materials.md
Math: Vector2/3/4, Color, Matrix3/4, Quaternion, Euler, Plane, Box3, etc. core-math.md
Nodes: Node system for shader graph programming core-nodes.md
Objects: Object3D, Mesh, Group, Points, Line, Sprite, Bone, etc. core-objects.md
Renderers, Scenes & Textures: WebGLRenderer, Scene, Texture, WebGLRenderTarget core-renderers.md
Addons: Controls, Postprocessing, Exporters, Loaders, Shaders, WebXR, etc. addons.md
TSL: Three.js Shading Language functions and variables tsl.md
Global constants & functions: Blending modes, constants, utilities global.md

Core Philosophy

Three.js is a 3D JavaScript library that wraps WebGL (and now WebGPU) to provide:

  1. Scene Graph — Hierarchical object system via Object3D with parent-child transforms
  2. RendererWebGLRenderer (or WebGPURenderer) draws scenes to a canvas
  3. Resources — Geometries (shape), Materials (appearance), Textures (images)
  4. Lighting — Physically-based lighting with shadows, environment maps
  5. Animation — Keyframe animation, skinning, morph targets
  6. Shaders — Custom GLSL shaders or TSL node-based shader graphs

Read the full file on GitHub · 156 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. 5d ago First seen · 156 lines · 112 tokens per session scan A dced16aa3746

Subscribe to this mod's changes

threejs-docs is a skill published in the GitHub repository pledgeandgrow/pledge-skills (10 stars, last pushed 1mo ago), licensed MIT. It adds 112 tokens to every session and 1,632 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-09-03.

Related

Other skills, from other repositories

threejs-engineer

!cat skills/shared/protocols/3d-spatial-foundations.md 2>/dev/null || true !cat skills/shared/game-visual-foundations.md 2>/dev/null || echo "=== Visual Foundations not loaded ===" !cat skills/shared/protocols/ux-protocol.md 2>/dev/null || true !cat skills/shared/protocols/input-validation.md 2>/dev/null || true !cat…

buiphucminhtam/forgewright · 65 tokens

3d-website-architect

Expert skill for designing, building, and deploying modern premium websites with advanced animations and 3D interactive experiences using Three.js, React Three Fiber, GSAP, and Framer Motion. Use this skill whenever the user wants to build a website with 3D elements, create an immersive web experience, add interactive…

deveshpunjabi/3d-website-skill · 240 tokens

photo-sphere-viewer

Use when displaying 360-degree panoramic images (equirectangular/cubemap/dual-fisheye) in web applications, building virtual tours with markers and transitions, embedding interactive panoramas in Vue/React/vanilla JS, or creating 360-degree video players with gyroscope VR support. Photo-Sphere-Viewer v5: JavaScript…

znlgis/opengis-skills · 99 tokens

p5js

Use when users request: p5.js sketches, creative coding, generative art, interactive visualizations, canvas animations, browser-based visual art, data viz, shader effects, or any p5.js project.

mateaix/mateclaw · 20 tokens

webgl-shader-constraints

WebGL 1.0/2.0 shader restrictions, variant stripping, loop/indexing rules, and browser deployment workarounds for Unity.

adevra/unity-shader-agent-skills · 36 tokens

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