Registry / nirholas

nirholas/three-ws/load-and-optimize-gltf

Load glTF/GLB models in three.js with GLTFLoader wired to the Meshopt, KTX2 and Draco decoders, shrink the file first with glTF Transform (`gltf-transform optimize`), and measure what changed (bytes over the wire, decode time, draw calls, triangles, texture memory). Use when a model will not load, loads slowly, is too big for the web, throws a decoder error ("setMeshoptDecoder must be called", "No DRACOLoader instance provided", "KTX2Loader"), or when the user asks how to compress, optimize or l

Agent skill · version 0.0.0-main.1795219122.ga9a886a · from nirholas/three.ws

Install

npx yarkr-cli add skill:nirholas/three-ws/load-and-optimize-gltf

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:nirholas/three-ws/load-and-optimize-gltf
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:nirholas/three-ws/load-and-optimize-gltf

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:nirholas/three-ws/load-and-optimize-gltf

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.