Skills for Real Engineers. Straight from my .agents directory.
threejs-asset-pipeline
Agent skill fromCloudAI-X/threejs-skills
Shrinking glTF assets for three.js with gltf-transform: inspect, validate and optimize commands, Draco, meshopt and quantization, KTX2, WebP and AVIF textures, the loader setup each output needs, and gltfjsx for React. Use when compressing, optimizing or validating 3D models before loading them.
How to install threejs-asset-pipeline
npx skills add CloudAI-X/threejs-skills# or add only this skill to Claude Code: copy the folder
skills/threejs-asset-pipeline/
# into
~/.claude/skills/threejs-asset-pipeline/ (all projects)
.claude/skills/threejs-asset-pipeline/ (one project)
1# Three.js Asset Pipeline23Targets three.js r186. Examples use WebGLRenderer; the WebGPU and TSL section uses WebGPURenderer.45## Quick Start67Compress on the command line, then load the result. Run `inspect` before and after to see what the pass saved:89```bash10npx @gltf-transform/cli inspect model.glb11npx @gltf-transform/cli optimize model.glb model.opt.glb --compress draco --texture-compress webp --texture-size 204812npx @gltf-transform/cli inspect model.opt.glb13```1415Draco output needs a DRACOLoader attached; WebP textures decode in the browser:1617```javascript18import * as THREE from "three";19import { GLTFLoader } from "three/addons/loaders/GLTFLoader.js";20import { DRACOLoader } from "three/addons/loaders/DRACOLoader.js";2122const renderer = new THREE.WebGLRenderer({ antialias: true });23renderer.setPixelRatio(window.devicePixelRatio);24renderer.setSize(window.innerWidth, window.innerHeight);25document.body.appendChild(renderer.domElement);2627const scene = new THREE.Scene();28const sun = new THREE.DirectionalLight(0xffffff, 2); // glTF PBR materials render black without lights or an environment29sun.position.set(3, 5, 2);30scene.add(sun, new THREE.HemisphereLight(0xffffff, 0x444444, 1.5));3132const camera = new THREE.PerspectiveCamera(50, window.innerWidth / window.innerHeight, 0.1, 100);33camera.position.set(2, 1.5, 3);34camera.lookAt(0, 0, 0);3536const gltf = await new GLTFLoader()37 .setDRACOLoader(new DRACOLoader()) // the Draco WASM decoder loads from the three package38…
Excerpt shown under the repository's MIT license.
More skills in threejs-skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
Public repository for Agent Skills
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
