threejs-loaders

threejs-loaders is a skill for Claude Code, Codex from CloudAI-X/threejs-skills. It costs 72 tokens per session (5,376 once invoked), scanned A, original, MIT.

A guide to loading 3D models, images, textures, and HDR environments into Three.js. Three.js is a JavaScript library for displaying 3D graphics in a web page.

In plain words
What is it for?
Use it to load GLTF models, textures, images, and HDR lighting environments, and to track their loading progress.
Why use it?
It helps manage files that load later than the page, including loading progress and asynchronous code.

Skill for Claude CodeCodex

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

Good fit Use it to load GLTF models, textures, images, and HDR lighting environments, and to track their loading progress.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cloudai-x/threejs-skills/threejs-loaders
About the project

Three.js Skills is a set of skill files that gives Claude Code current guidance and working examples for Three.js, a JavaScript library used to create 3D scenes and graphics in web applications. It is for developers who want generated code to match the Three.js release they install and avoid outdated APIs. The catalogue entry consists of ten skills covering areas such as scenes, geometry, materials, lighting, and textures.

CloudAI-X/threejs-skills · 4,606 stars · on GitHub · x.com

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 CloudAI-X/threejs-skills --skill threejs-loaders
Clone the repo
git clone --depth 1 https://github.com/CloudAI-X/threejs-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-loaders

README.md
[![agentmods](https://agentmods.dev/badge/skills/cloudai-x/threejs-skills/threejs-loaders/github.svg)](https://agentmods.dev/skills/cloudai-x/threejs-skills/threejs-loaders)
Your own site
<a href="https://agentmods.dev/skills/cloudai-x/threejs-skills/threejs-loaders"><img src="https://agentmods.dev/badge/skills/cloudai-x/threejs-skills/threejs-loaders/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 threejs-loaders

Your own site · 80×15
<a href="https://agentmods.dev/skills/cloudai-x/threejs-skills/threejs-loaders"><img src="https://agentmods.dev/badge/skills/cloudai-x/threejs-skills/threejs-loaders.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,376 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 19 Oct 2026
  • Snyk pass 19 Oct 2026
How audits are shown
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.00072 $0.05376
Opus 5.5 $0.00029 $0.02150
Sonnet 5.5 $0.00014 $0.01075
Haiku 4.5 $0.00007 $0.00538

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

Security

Grade A, and why

threejs-loaders scanned grade A with 1 finding 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.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- `fetch(url, { signal: controller.signal })` → `setTimeout(() => manager.abort(), 30000)`: loaders are cancelled through their LoadingManager, which aborts in-flight FileLoader requests.
skills/threejs-loaders/SKILL.md · 501 lines

How it starts

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

Three.js Loaders

Targets three.js r186. Examples use WebGLRenderer; the WebGPU and TSL section uses WebGPURenderer.

Quick Start

import * as THREE from "three";
import { GLTFLoader } from "three/addons/loaders/GLTFLoader.js";
import { RoomEnvironment } from "three/addons/environments/RoomEnvironment.js";

const renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.setPixelRatio(window.devicePixelRatio);
renderer.setSize(window.innerWidth, window.innerHeight);
document.body.appendChild(renderer.domElement);

const scene = new THREE.Scene();
scene.environment = new THREE.PMREMGenerator(renderer).fromScene(new RoomEnvironment(), 0.04).texture; // glTF PBR materials render black without lights or an environment

const camera = new THREE.PerspectiveCamera(50, window.innerWidth / window.innerHeight, 0.1, 100);
camera.position.set(2, 1.5, 3);
camera.lookAt(0, 0, 0);

const gltf = await new GLTFLoader().loadAsync("model.glb");
scene.add(gltf.scene);

function animate() {
  renderer.render(scene, camera);
}

renderer.setAnimationLoop(animate);

LoadingManager

One manager coordinates several loaders and reports combined progress. loadAsync still rejects on failure; manager.onError fires as well.

import { GLTFLoader } from "three/addons/loaders/GLTFLoader.js";

const manager = new THREE.LoadingManager();

manager.onStart = (url, loaded, total) => {
  console.log(`Started loading: ${url}`);
};

manager.onProgress = (url, loaded, total) => {
  console.log(`Loading: ${((loaded / total) * 100).toFixed(1)}%`);
};

manager.onLoad = () => {
  console.log("All assets loaded");
};

manager.onError = (url) => {
  console.error(`Error loading: ${url}`);
};

const gltfLoader = new GLTFLoader(manager);
const textureLoader = new THREE.TextureLoader(manager);

// onLoad fires when every tracked item has finished
await Promise.all([
  gltfLoader.loadAsync("model.glb"),
  textureLoader.loadAsync("texture.jpg"),
  textureLoader.loadAsync("normal.jpg"),
]);

Read the full file on GitHub · 501 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 Changed · +3 tokens per session ddf6ed2d7dfc
  2. 1mo ago Changed · -123 lines · +29 tokens per session dcaa75350456
  3. 3mo ago First seen · 624 lines · 40 tokens per session scan A 03e0d7319692

Subscribe to this mod's changes

threejs-loaders is a skill published in the GitHub repository CloudAI-X/threejs-skills (4,606 stars, last pushed 1mo ago), licensed MIT. It adds 72 tokens to every session and 5,376 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

threejs-loaders compared with skills from other repositories

threejs-loaders next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
threejs-loadersCloudAI-X/threejs-skillsSkill4.6k1mo agoMITA72Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill331k3d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code