optimize-3d-assets
Installation
SKILL.md
Optimize 3D assets for the web
Make models small and fast without wrecking the look. Always keep the original; write optimized output to a new file; report before/after sizes.
Step 0 — Inspect
npx @gltf-transform/cli inspect model.glb
Note: file size, mesh/primitive count, texture count + resolutions, draw call estimate, whether it already uses Draco/KTX2.
Step 1 — One-shot optimize (start here)
npx @gltf-transform/cli optimize model.glb model.opt.glb \
--compress draco \
--texture-compress ktx2
This prunes unused data, dedups, welds, instances, Draco-compresses geometry, and KTX2-compresses textures.