threejs-geometry · cesartevisual — скилл для Claude Code: геометрия Three.js
Скилл threejs-geometry для Claude Code создаёт и оптимизирует геометрию Three.js. Включается в задачах с BufferGeometry, процедурными мешами и инстансами.
MIT 638 установок ★ 26 обновлён 2026-09-10
npx skills add cesartevisual/threejs-skills --skill threejs-geometry -a claude-codeЧто делает threejs-geometry
Скилл помогает выбрать тип геометрии для задачи: встроенную — для простых форм, BufferGeometry — для своей топологии, InstancedMesh — для повторяющихся объектов. Он разбирает атрибуты вершин, индексы, нормали и UV-швы, а для динамических данных описывает обновление массивов и границ геометрии.
Для InstancedMesh скилл затрагивает связь ID инстанса с ID приложения, обновление матриц и цветов, отсечение и выбор объектов. Также он помогает планировать владение геометрией и её освобождение. Ориентируется на установленные в проекте версии Three.js и его архитектуру; при недоступной документации предлагает свериться с типами или исходниками установленной версии.
Какие задачи решает
- создать процедурный меш с заданной топологией
- обновить динамические атрибуты и границы геометрии
- настроить инстансы с выбором отдельных объектов
- найти причины проблем с нормалями, UV-швами или отсечением
Примеры запросов агенту
- Создай процедурный меш в
BufferGeometryс корректными индексами и нормалями. - Оптимизируй повторяющиеся объекты через
InstancedMeshи настрой выбор отдельных инстансов. - Проверь динамические атрибуты, UV-швы и границы этой геометрии.
Как установить threejs-geometry
1Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-geometry -a claude-code2Вручную: положить файлы
~/.claude/skills/threejs-geometry/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/threejs-geometry/
1Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-geometry -a codex2Вручную: положить файлы
.agents/skills/threejs-geometry/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-geometry -a cursor2Вручную: положить файлы
.cursor/skills/threejs-geometry/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install cesartevisual/threejs-skills skills/threejs-geometry2Вручную: положить файлы
.github/skills/threejs-geometry/SKILL.md1Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-geometry -a gemini-cli2Командой платформы
gemini skills install https://github.com/cesartevisual/threejs-skills --path skills/threejs-geometryВручную: положить файлы
.devin/skills/threejs-geometry/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-geometry -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о threejs-geometry
Как установить threejs-geometry в Claude Code?
Выполни npx skills add cesartevisual/threejs-skills --skill threejs-geometry -a claude-code. Файл скилла находится по пути ~/.claude/skills/threejs-geometry/SKILL.md.
Что делает threejs-geometry?
Скилл помогает создавать и оптимизировать геометрию Three.js: процедурные меши, атрибуты BufferGeometry и повторяющиеся объекты через InstancedMesh.
Как threejs-geometry работает с динамической геометрией?
Он описывает обновление типизированных массивов, флага needsUpdate и границ после изменений, которые влияют на отсечение или выбор объектов.
Исходный текст
SKILL.md · MIT
--- name: threejs-geometry description: "Create or optimize Three.js BufferGeometry, procedural meshes, instanced objects, and geometry attributes." --- # Geometry and Instancing 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. Choose built-in geometry for simple shapes, BufferGeometry for custom topology, and instancing for repeated geometry/material combinations. Keep topology density tied to silhouette and deformation, not arbitrary high segment counts. Define indexed versus non-indexed data deliberately. Attribute vertex counts must agree; triangle winding controls front faces. UV seams and hard normals can require duplicated vertices. Recompute normals after topology changes when appropriate; normals alone do not create missing UVs or tangents. For dynamic attributes, allocate capacity up front, choose usage before first rendering, mutate typed arrays, and flag needsUpdate. Use supported update ranges for partial writes. Refresh bounding volumes after changes that invalidate culling or picking. A bounding box is not automatically a precise collision shape. With InstancedMesh, maintain a stable instance ID to application ID mapping. Update instance matrices/colors and their needsUpdate flags; recompute bounds after instance transforms change. Split large instance sets spatially when one enormous bound defeats culling. Plan selection/highlighting without cloning a material for every instance. Keep generated geometry ownership explicit, reuse immutable assets, and dispose geometry only when its last consumer releases it. Verify normals under directional lighting, seams under a checker texture, culling at camera edges, and per-instance picking after updates. ## API reference Consult the [official documentation](https://threejs.org/docs/pages/InstancedMesh.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
Похожие скиллы
Все скиллы по теме «Геймдев и 3D: Unity, Unreal, Godot, Blender» →Сначала — threejs-geometry от других авторов.