Skip to main content
skill CX Codex

threejs-assets — Claude Code skill for 3D assets

The threejs-assets Claude Code skill guides loading and managing glTF models, textures, and user-provided 3D files. It applies to asset validation, compression, caching, and cleanup in Three.js projects.

MIT 676 installs ★ 26 updated 2026-09-10

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add cesartevisual/threejs-skills --skill threejs-assets -a claude-code
Open on GitHub

What threejs-assets does

The skill outlines how to load, validate, compress, cache, and release glTF models, textures, decoder files, and user-provided assets. It covers GLTFLoader setup, explicit loading and error states, retries, and stale results after rapid model changes.

It treats Meshopt, Draco, and KTX2/Basis as separate compression options, with decode time and visual quality to compare. The guidance also covers GPU texture memory, cache eviction, and revoking object URLs after uploads are no longer in use. The project needs its libraries installed, along with decoder binaries compatible with those library versions.

What it helps with

  • configure glTF loading with the required decoders
  • compare geometry and texture compression options
  • handle load failures and retries
  • cache model assets and release them after replacement
  • check user-uploaded 3D files for malformed content

Example prompts for the agent

  • Set up GLTFLoader for scene.glb with the decoders it needs.
  • Compare Meshopt, Draco, and KTX2/Basis for these Three.js assets.
  • Check GPU memory cleanup when models change rapidly.

How to install threejs-assets

1Skills CLI (Vercel)

npx skills add cesartevisual/threejs-skills --skill threejs-assets -a claude-code

2Manually: put the files in place

~/.claude/skills/threejs-assets/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/threejs-assets/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about threejs-assets

How do I install threejs-assets in Claude Code?

Run npx skills add cesartevisual/threejs-skills --skill threejs-assets -a claude-code. The skill file is at ~/.claude/skills/threejs-assets/SKILL.md.

What does threejs-assets do?

It provides guidance for loading, validating, compressing, caching, and releasing glTF models, textures, decoder files, and user-supplied 3D assets.

What does threejs-assets need to work?

The project needs its installed libraries and decoder binaries that match their versions. Decoder URLs also need to follow the project's build asset conventions.

Source text

SKILL.md · MIT
---
name: threejs-assets
description: "Load, validate, compress, cache, and release glTF models, textures, decoder assets, and user-supplied 3D files."
---

# Asset Loading and Optimization

Use the project's installed versions and existing architecture. These instructions supplement the user's task; they do not authorize unrelated changes or external actions.

Inventory format, dimensions, units, animation clips, material features, texture sizes, provenance, and transfer size. Prefer a web-ready glTF/GLB pipeline when conversion is acceptable. Preserve source files and semantic names needed by application logic.

Configure GLTFLoader with the decoders the asset actually requires. Match decoder/transcoder binaries to the installed libraries, resolve their URLs through the build's asset conventions, and detect KTX2 support against the active renderer. Do not assume a compressed file needs only a single network request.

Represent loading, ready, failure, and retry explicitly. Unknown content length calls for indeterminate progress. On navigation or rapid selection, guard stale async completions with a generation token or supported cancellation; release late results that no longer have an owner. A manager's progress percentage is not necessarily download-byte percentage.

Budget decoded GPU texture memory as well as transfer bytes. Consider resizing, mesh simplification, Meshopt/Draco, and KTX2/Basis individually; compare decode time and visual quality before accepting a pipeline. Preserve required animation, skinning, morph targets, and metadata.

Cache immutable source assets and clone scene instances appropriately; skinned models need skeleton-aware cloning. Define cache eviction separately from component unmount. For user uploads, limit size/complexity, handle external URI policy and malformed files, and revoke object URLs after their consumers finish.

Verify missing decoder files, failed textures, rapid model switching, nested deployment paths, representative animation clips, and memory after repeated replacement.

## API reference

Consult the [official documentation](https://threejs.org/docs/pages/GLTFLoader.html) for exact signatures and revision-specific behavior. If documentation access is unavailable, inspect installed types/source and state any remaining uncertainty.

© cesartevisual · MIT · cesartevisual/threejs-skills

Similar skills

All skills for Game dev and 3D: Unity, Unreal, Godot, Blender →

From the same set24

The whole set →
threejs-lighting The threejs-lighting Claude Code skill guides lighting and shadow work in Three.js scenes. It comes into play when setting up environment maps, direct lights, or shadow maps. CX Codex +1 694installs threejs-shaders threejs-shaders — a Claude Code skill for writing and debugging Three.js GLSL shaders, custom material effects, uniforms, and geometry deformation. CX Codex +1 694installs threejs-testing threejs-testing — a skill for Claude Code defines visual QA and browser testing guidelines for Three.js scenes. Focuses on deterministic fixtures, GPU checks, and teardown lifecycle tests. CX Codex +1 681installs threejs-interaction This Claude Code skill guides Three.js interaction work, from object picking to orbit controls. It applies when an agent is asked to add dragging, selection, or synchronized HTML controls. CX Codex +1 681installs threejs-scene This skill for Claude Code configures Three.js scene hierarchies, camera framing, coordinate transforms, and renderer lifecycles. It enforces proper GPU cleanup and bounds calculations. CX Codex +1 671installs threejs-materials The threejs-materials Claude Code skill configures Three.js PBR materials, textures, transparency, and color handling. It activates when a scene needs a surface setup or a material-related color fix. CX Codex +1 668installs threejs-debugging The threejs-debugging Claude Code skill traces rendering faults in Three.js scenes. It kicks in for blank canvases, missing meshes, color issues, flicker, picking failures, or lost graphics context. CX Codex +1 658installs threejs-postprocessing This Claude Code skill adds or debugs Three.js postprocessing. It handles tasks involving bloom, antialiasing, ambient occlusion, depth effects, and render-target composition. CX Codex +1 651installs

Project sponsors

Companies that keep this analytics open