Skip to content
Design
Skill

/gltf-transform

Optimize and post-process GLB/glTF 3D models. Use when compressing models for web delivery, reducing file size, simplifying geometry, inspecting model stats, merging models, or converting textures. Triggers on: optimize GLB, compress model, reduce file size, simplify mesh, draco

BOOST
From plugin
vibecad
1234 skills
Install
$ npx -y skills add rawwerks/VibeCAD --skill gltf-transform --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/gltf-transform

Context preview

The summary Claude sees to decide when to auto-load this skill.

Optimize and post-process GLB/glTF 3D models. Use when compressing models for web delivery, reducing file size, simplifying geometry, inspecting model stats, merging models, or converting textures. Triggers on: optimize GLB, compress model, reduce file size, simplify mesh, draco

SKILL.md

gltf-transform.SKILL.md
name: gltf-transform
description: Optimize and post-process GLB/glTF 3D models. Use when compressing models for web delivery, reducing file size, simplifying geometry, inspecting model stats, merging models, or converting textures. Triggers on: optimize GLB, compress model, reduce file size, simplify mesh, draco compression, meshopt, webp textures, inspect model, merge GLB, model optimization.

glTF Transform

Post-process GLB/glTF files: optimize, compress, inspect, and transform 3D models.

  • CLI docs: https://gltf-transform.dev/cli
  • GitHub: https://github.com/donmccurdy/glTF-Transform
  • npm: `@gltf-transform/cli`

Zero-Setup with bunx

No installation required. Run any command with:

bunx @gltf-transform/cli <command> [args]

First run downloads the tool, subsequent runs are instant.

Quick Start

# Inspect model stats first
bunx @gltf-transform/cli inspect model.glb

# One-command optimization (good defaults)
bunx @gltf-transform/cli optimize input.glb output.glb --compress draco --texture-compress webp

CAD Workflow Integration

Typical pipeline after generating models with build123d:

create geometry → export GLB → optimize → verify visually

1. **build123d** exports high-quality CAD geometry 2. **gltf-transform** compresses for web delivery 3. **render-glb** verifies the result

Compression Methods

| Method | Best For | Trade-offs | |--------|----------|------------| | **Draco** | Web delivery, Three.js | Smallest geometry, requires decoder | | **Meshopt** | Universal, animations | Good compression + animation support | | **Quantize** | Compatibility | No decoder needed, moderate compression |

# Draco - best geometry compression
bunx @gltf-transform/cli draco input.glb output.glb

# Meshopt - geometry + animation compression
bunx @gltf-transform/cli meshopt input.glb output.glb

# Quantize only - no external decoder needed
bunx @gltf-transform/cli quantize input.glb output.glb

Texture Compression

# WebP - good compression, wide browser support
bunx @gltf-transform/cli webp input.glb output.glb

# Resize large textures
bunx @gltf-transform/cli resize input.glb output.glb --width 1024 --height 1024

Common Operations

Inspect Model Stats

bunx @gltf-transform/cli inspect model.glb

Shows vertex count, file size breakdown, texture sizes - helps decide what to optimize.

Simplify Geometry

# Weld duplicate vertices first
bunx @gltf-transform/cli weld input.glb temp.glb

# Then simplify
bunx @gltf-transform/cli simplify temp.glb output.glb --ratio 0.5

Useful for CAD models which often have more detail than needed for web viewing.

Merge Multiple Models

bunx @gltf-transform/cli merge part1.glb part2.glb assembly.glb

Aggressive Optimization

bunx @gltf-transform/cli optimize input.glb output.glb \
  --compress draco \
  --texture-compress webp \
  --simplify true \
  --simplify-ratio 0.5

When to Use

| Scenario | Commands | |----------|----------| | Web delivery | `optimize --compress draco --texture-compress webp` | | Check model stats | `inspect` | | High-poly CAD model | `weld` then `simplify --ratio 0.5` | | Combine parts | `merge` | | Debug issues | `inspect` then targeted fixes |

Read more
Ships withvibecad

A library of Claude Code skills for teaching coding agents how to use various CAD tools. Sponsored by neThing.xyz

Get the whole plugin
Stats
123
Stars
17
Forks
Quiet
Maintenance
Python
Language
MIT
License
9mo ago
Last commit
10mo ago
Created
12h ago
Added

Repo: rawwerks/VibeCAD

Other skills on vibecad.

build123d
Skill

build123d

CAD modeling with build123d Python library. Use when creating 3D models, exporting to GLB/STEP/STL, or doing boolean operations…

model-compare
Skill

model-compare

Compare 3D CAD models using boolean operations (IoU, Dice, precision/recall). Use when evaluating generated models against gold…

render-glb
Skill

render-glb

Render GLB 3D models to PNG images for visual verification. Use when you need to SEE your generated 3D model, verify geometry,…