threejs-product-viewer — скилл для Claude Code
Скилл threejs-product-viewer для Claude Code помогает создавать интерактивные витрины товаров на Three.js. Включается при разработке конфигуратора с вариантами материалов, ракурсами камеры и точками на модели.
MIT 621 установок ★ 26 обновлён 2026-09-10
npx skills add cesartevisual/threejs-skills --skill threejs-product-viewer -a claude-codeЧто делает threejs-product-viewer
Скилл помогает собрать просмотрщик товара или конфигуратор на Three.js. Он задаёт работу с вариантами материалов, пресетами камеры, точками на модели и состоянием выбранных настроек. Для рендера изображений описывает захват кадра с восстановлением состояния камеры и рендерера.
Перед настройкой агент изучает меши и материалы модели, единицы измерения и варианты товара. Элементы интерфейса связываются со стабильными идентификаторами вариантов, а не с позициями мешей в массиве. Цены и доступность должны поступать из слоя данных приложения: модель не служит источником коммерческих сведений.
Скилл также охватывает сброс настроек, сохранение выбора в URL, мобильное управление, быстрые переключения и обработку неудачной загрузки ресурсов. Экспорт изображений зависит от ограничений cross-origin; HTML-слои нужно отдельно учесть при захвате кадра.
Какие задачи решает
- связать варианты товара с изменениями материалов модели
- добавить пресеты камеры и точки с привязкой к модели
- сохранить настройки конфигуратора в URL
- проверить сброс, мобильное управление и экспорт кадра
Примеры запросов агенту
- Собери просмотрщик товара на Three.js с вариантами материалов и пресетами камеры.
- Добавь в конфигуратор точки на модели и сохранение выбранных настроек в URL.
- Настрой экспорт изображения и проверь переключение вариантов на мобильном экране.
Как установить threejs-product-viewer
1Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-product-viewer -a claude-code2Вручную: положить файлы
~/.claude/skills/threejs-product-viewer/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/threejs-product-viewer/
1Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-product-viewer -a codex2Вручную: положить файлы
.agents/skills/threejs-product-viewer/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-product-viewer -a cursor2Вручную: положить файлы
.cursor/skills/threejs-product-viewer/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install cesartevisual/threejs-skills skills/threejs-product-viewer2Вручную: положить файлы
.github/skills/threejs-product-viewer/SKILL.md1Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-product-viewer -a gemini-cli2Командой платформы
gemini skills install https://github.com/cesartevisual/threejs-skills --path skills/threejs-product-viewerВручную: положить файлы
.devin/skills/threejs-product-viewer/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-product-viewer -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о threejs-product-viewer
Как установить threejs-product-viewer в Claude Code?
Выполни npx skills add cesartevisual/threejs-skills --skill threejs-product-viewer -a claude-code. Файл скилла находится по пути ~/.claude/skills/threejs-product-viewer/SKILL.md.
Что делает threejs-product-viewer?
Помогает разработать просмотрщик товара или конфигуратор на Three.js: настроить материалы, ракурсы камеры, точки на модели и состояние выбора. Также описывает экспорт изображений и проверки взаимодействий.
Как скилл предлагает хранить цены и доступность товара?
Цены и доступность берутся из существующего слоя данных приложения. Сведения о товаре не следует выводить из самой 3D-модели.
Исходный текст
SKILL.md · MIT
--- name: threejs-product-viewer description: "Build Three.js product viewers with material variants, camera presets, hotspots, configuration state, and image export." --- # Product Viewers and Configurators 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. Inspect the model's mesh/material names, units, variant structure, camera targets, and business options. Define a stable mapping from product choices to render changes rather than coupling UI labels to arbitrary mesh array positions. Build a state model for selected options, availability, reset, and any URL persistence. Keep price/availability authority in the existing application data layer. Do not infer commercial facts from the model. Provide equivalent semantic HTML controls and selected-value summaries. Apply variants to instance-owned material state while sharing immutable textures safely. Guard async texture/model switches against stale completion. Frame each preset for both wide and narrow layouts; constrain orbit/zoom only enough to keep the subject useful. Place hotspots using stable anchors and handle occlusion/behind-camera states. Give users a reset view and a clear escape from dragging. Match materials under controlled lighting before adding dramatic effects that obscure product details. For screenshots, render explicitly at the capture size and restore renderer/camera state afterward. Capture immediately after rendering or use a suitable target/readback pipeline; preserveDrawingBuffer is not universally required. Handle cross-origin restrictions and decide whether HTML overlays belong in the export. Verify all valid option combinations or representative boundary combinations, rapid switching, reset, deep links, export framing, mobile controls, and failed assets. ## API reference Consult the [official documentation](https://threejs.org/docs/pages/WebGLRenderer.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