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
npx skills add cesartevisual/threejs-skills --skill threejs-assets -a claude-codeWhat 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
GLTFLoaderforscene.glbwith 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-code2Manually: put the files in place
~/.claude/skills/threejs-assets/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/threejs-assets/
1Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-assets -a codex2Manually: put the files in place
.agents/skills/threejs-assets/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-assets -a cursor2Manually: put the files in place
.cursor/skills/threejs-assets/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install cesartevisual/threejs-skills skills/threejs-assets2Manually: put the files in place
.github/skills/threejs-assets/SKILL.md1Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-assets -a gemini-cli2Platform CLI
gemini skills install https://github.com/cesartevisual/threejs-skills --path skills/threejs-assetsManually: put the files in place
.devin/skills/threejs-assets/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-assets -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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