threejs-asset-pipeline
Skill by CloudAI-X
Explains how to shrink glTF 3D models for three.js using gltf-transform. Covers inspect, validate and optimize commands, Draco, meshopt, KTX2 and WebP textures, and the loader setup each output needs.
Install threejs-asset-pipeline
Built from the published package, never by AI.
git clone --depth 1 https://github.com/CloudAI-X/threejs-skills /tmp/threejs-skills && mkdir -p ~/.claude/skills && cp -r /tmp/threejs-skills/skills/threejs-asset-pipeline ~/.claude/skills/threejs-asset-pipelineRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/CloudAI-X/threejs-skills /tmp/threejs-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/threejs-skills/skills/threejs-asset-pipeline ~/.gemini/antigravity-cli/skills/threejs-asset-pipelineAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install threejs-asset-pipeline in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a guide for compressing and validating 3D models before they are loaded in three.js. It walks through the gltf-transform command line tools: inspect and validate to see what a file contains, and optimize to apply passes such as dedup, weld, simplify, join and instance. It explains geometry codecs (Draco, meshopt and quantization) and texture codecs (KTX2, WebP and AVIF), with the tradeoffs of each.
The skill also covers the runtime side. It lists which GLTFLoader wiring each compressed output needs, such as DRACOLoader, MeshoptDecoder and KTX2Loader, and the error messages a missing piece produces. It targets developers who prepare 3D assets for three.js applications, including React projects that use gltfjsx, and who want smaller downloads or lower GPU memory use.
Written from the project's SKILL.md and checked against it.
What it can do
- Inspect and validatePrints scene, mesh, material, texture and animation tables, and runs the official glTF validator as a CI gate.
- Optimize commandChains common passes such as dedup, weld, simplify, join and instance, with texture and geometry compression.
- Geometry compressionCovers Draco, meshopt and quantize, with the runtime decoder each one needs.
- Texture compressionCovers KTX2 via KTX-Software, plus WebP and AVIF encoding for smaller downloads.
- Loader setupShows how to wire DRACOLoader, MeshoptDecoder and KTX2Loader into GLTFLoader for each output.
- Scene optimizationProvides weld, simplify, join, instance, dedup and prune commands to reduce draw calls and vertex count.
- Scripted pipelinesShows how to run the same transforms from a Node script using the gltf-transform SDK.
What you need
- Node.js to run npx @gltf-transform/cli
- KTX-Software 4.4.0 or newer for KTX2 output
Try asking
- Compress model.glb with Draco and WebP textures capped at 2048px
- Check model.glb for glTF validation errors before I commit it
- Show me which GLTFLoader decoders I need for a meshopt and KTX2 model
Good to know
- KTX2 output requires the ktx command from KTX-Software 4.4.0 or newer to be installed.
- Draco output compresses triangle meshes only, not animation, morph targets, textures, points or lines.
- WebP and AVIF textures decode to raw pixels in GPU memory, which can use 4-8x more GPU memory.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/threejs-asset-pipeline/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md18 KB
Alternatives to threejs-asset-pipeline
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
threejs-asset-pipeline: common questions
Which compression should I pick for a three.js model?
The source says to pick per model. Draco suits triangle meshes only, meshopt also covers animation and morph targets, and quantize needs no decoder.
Why does my compressed glTF fail to load?
A missing loader piece throws an error. A Draco file needs a DRACOLoader, a meshopt file needs a MeshoptDecoder, and a KTX2 file needs a KTX2Loader that ran detectSupport.
Does WebP reduce GPU memory use?
No. The source says WebP and AVIF shrink the download but decompress to raw pixels in GPU memory, while KTX2 stays compressed on the GPU.
How do I install threejs-asset-pipeline?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is threejs-asset-pipeline free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is threejs-asset-pipeline safe to use?
It scores 86 of 100. Grades: maintenance B, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to threejs-asset-pipeline?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
