Skip to content
SkillModel-led4,533 tokens in use

threejs-asset-pipeline

Gives an AI coding agent the gltf-transform commands and loader setup for inspecting, validating and compressing glTF models before they ship in three.js.

4,322 stars on the repository MIT LicenseCloudAI-X/threejs-skills · skills/threejs-asset-pipeline
npx skills add cloudai-x/threejs-skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing threejs-asset-pipeline costs

77tokens idle
4,533tokens in use

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

shelldetectedwrites filesdetected

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Excellent
  • Frontmatter12/15
  • Structure17/25
  • Examples15/15
  • Output15/15
  • Size13/15
  • Resources10/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent
  • Runs shell commands−5

    does this on the machine, and the frontmatter does not say so

    SKILL.md, line 15
  • Writes files−8

    does this on the machine, and the frontmatter does not say so

    SKILL.md, line 191

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Fair
  • Development activity68
  • Maintenance40
  • Community52
  • Maturity32
  • Momentum40

threejs-asset-pipeline covers shrinking 3D assets for three.js r186 with the gltf-transform command line. It explains how to inspect where the bytes are, validate a file, run the combined optimize command, and choose between Draco, meshopt and quantization for geometry and between KTX2, WebP and AVIF for textures.

Each compressed output needs matching runtime wiring, so the skill pairs every codec with the loader setup it requires and mentions gltfjsx for React projects.

What You Get

  • A quick start that compresses a model with Draco and WebP and loads it with a DRACOLoader
  • Inspect and validate commands, including validation as a CI gate
  • A flag-by-flag guide to the optimize command
  • Guidance on Draco, meshopt and quantize for geometry, and KTX2, WebP and AVIF for textures
  • Scene commands such as weld, simplify, join, instance, dedup and prune, plus the runtime wiring each output needs

Common Use Cases

  • Cutting the download size of a large glTF before shipping a web page
  • Reducing GPU memory with KTX2 textures
  • Validating exported models in a build pipeline
  • Reducing draw calls with join and instance commands
  • Choosing the right decoder setup for a compressed model

What Makes It Unique

Most three.js references stop at loading a model. This skill covers the step before it, the command line work of making the file smaller, and ties every codec to the loader code it requires. It also warns about ordering: compression commands should run last in a chain, because any later rewrite decodes the geometry again.

Under The Hood

The skill is a single SKILL.md of explanation, shell commands and JavaScript examples, with no scripts of its own. It tells the agent to run shell commands through npx that download and run the gltf-transform command line tool, which reads a model file and writes a new optimized file next to it. Compressing to KTX2 also needs the ktx tool from KTX-Software installed on the machine. The loader examples are code the agent writes into your project.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers