threejs-assets — скилл для Claude Code: загрузка 3D-ресурсов
Скилл threejs-assets для Claude Code помогает загружать и обслуживать glTF-модели, текстуры и пользовательские 3D-файлы. Включается при работе с загрузкой, сжатием и кэшированием ресурсов Three.js.
MIT 676 установок ★ 26 обновлён 2026-09-10
npx skills add cesartevisual/threejs-skills --skill threejs-assets -a claude-codeЧто делает threejs-assets
Скилл задаёт подход к загрузке, проверке, сжатию, кэшированию и освобождению glTF-моделей, текстур и файлов декодеров. Он учитывает размеры и содержимое ресурсов, настройку GLTFLoader, а также состояния загрузки, ошибки и повторы.
Для сжатия предлагается отдельно оценивать Meshopt, Draco и KTX2/Basis, сравнивая время декодирования и качество изображения. Инструкции охватывают память GPU, кэширование и обработку пользовательских файлов, включая отзыв object URL после использования. Для работы нужны установленные в проекте библиотеки и их совместимые файлы декодеров.
Какие задачи решает
- настроить загрузку glTF-моделей и нужных декодеров
- оценить сжатие текстур и геометрии
- обрабатывать ошибки и повторы загрузки
- кэшировать модели и освобождать ресурсы после замены
- проверить загрузку пользовательских 3D-файлов
Примеры запросов агенту
- Настрой загрузку
scene.glbчерезGLTFLoaderс нужными декодерами. - Сравни Meshopt, Draco и KTX2/Basis для ресурсов Three.js.
- Проверь освобождение памяти GPU при быстрой смене моделей.
Как установить threejs-assets
1Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-assets -a claude-code2Вручную: положить файлы
~/.claude/skills/threejs-assets/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/threejs-assets/
1Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-assets -a codex2Вручную: положить файлы
.agents/skills/threejs-assets/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-assets -a cursor2Вручную: положить файлы
.cursor/skills/threejs-assets/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install cesartevisual/threejs-skills skills/threejs-assets2Вручную: положить файлы
.github/skills/threejs-assets/SKILL.md1Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-assets -a gemini-cli2Командой платформы
gemini skills install https://github.com/cesartevisual/threejs-skills --path skills/threejs-assetsВручную: положить файлы
.devin/skills/threejs-assets/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-assets -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о threejs-assets
Как установить threejs-assets в Claude Code?
Выполни npx skills add cesartevisual/threejs-skills --skill threejs-assets -a claude-code. Файл скилла находится по пути ~/.claude/skills/threejs-assets/SKILL.md.
Что делает threejs-assets?
Скилл описывает загрузку, проверку, сжатие, кэширование и освобождение glTF-моделей, текстур, файлов декодеров и пользовательских 3D-ресурсов.
Что нужно для работы threejs-assets?
Нужны установленные в проекте библиотеки и файлы декодеров, совместимые с их версиями. Настройка также зависит от соглашений сборки проекта и активного рендерера.
Исходный текст
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