Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

glTF Transform

$ gltf-transform Community Low Risk
Don McCurdy · AI & Media · MIT · macos / linux / windows

gltf-transform (@gltf-transform/cli) inspects mesh/texture memory budgets (inspect), validates glTF 2.0 specification compliance (validate), and applies all-in-one asset optimization (optimize) including Draco/Meshopt geometry compression and WebP/KTX2 texture encoding.

FCRS-1.0 Score
86 /100
Good
Medium Confidence
Zero-Friction Install
npm install -g @gltf-transform/cli
CLI vs MCP Decision CLI Only

Binary 3D mesh/texture inspection (inspect) and Draco/WebP optimization execute locally in Node.js without MCP.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 20 / 25

Clean Caporal-based CLI with non-interactive subcommands (inspect, validate, optimize), --silent, and --no-color, though inspect prints ASCII tables rather than JSON.

  • Read-only inspect and validate subcommands
  • No --json output on inspect tables
Trust & Safety 22 / 25

Requires explicit INPUT and OUTPUT paths on all write commands, preserving source .glb/.gltf files safely.

  • Write commands take separate <input> <output> arguments
Setup & Portability 13 / 15

Cross-platform via npm or npx @gltf-transform/cli (Node.js required; KTX2 compression needs ktx CLI installed separately).

  • Available via npm install -g @gltf-transform/cli and npx
Utility & Efficiency 14 / 15

Comprehensive 3D asset toolkit covering optimize, draco, meshopt, resize, webp, ktx2, simplify, and validate.

  • Single CLI handles inspection, validation, mesh simplification, and texture compression
Maintenance & Lineage 9 / 10

Industry-standard MIT repository (donmccurdy/glTF-Transform) maintained actively alongside the Khronos glTF ecosystem.

  • Active donmccurdy/glTF-Transform repository under MIT
Docs & Verifiability 8 / 10

Clear gltf-transform.dev/cli docs and per-subcommand --help examples.

  • Official CLI reference at gltf-transform.dev/cli

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; operates on local .gltf and .glb 3D asset files.

Side Effects
Read-Only Local Write
Cost & Quotas

Free MIT open-source Node.js CLI.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# glTF Transform Agent Rules
- Run `gltf-transform inspect` and `gltf-transform validate` before and after optimization to verify vertex/texture budgets.
- Always output to a distinct `out.glb` path rather than overwriting `in.glb`.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect 3D scene meshes, materials, and texture memory
gltf-transform inspect model.glb

Outputs structured tables of scenes, meshes, vertex counts, and GPU/file texture sizes without writing files.

Validate glTF 2.0 spec conformance
gltf-transform validate model.glb

Runs the Khronos glTF Validator against model.glb and reports schema errors or warnings.

Controlled Writes & Previews

Optimize a GLB with Draco mesh and WebP texture compression
gltf-transform optimize in.glb out.glb --compress draco --texture-compress webp

Deduplicates accessors, prunes unused nodes, and writes compressed out.glb without altering in.glb.

Strengths for Agents

  • + inspect + validate + optimize covers the full 3D glTF/GLB QA and compression lifecycle.
  • + Always writes to a separate output path, keeping source 3D assets safe.

Caveats & Pitfalls

  • ! inspect outputs formatted terminal tables rather than --json.
  • ! KTX2/BasisU texture compression (--texture-compress ktx2) requires toktx from KTX-Software installed separately.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI