threejs-r3f · cesartevisual — скилл для Claude Code: возможности и установка
Скилл threejs-r3f для Claude Code помогает создавать и исправлять сцены React Three Fiber. Подключается к задачам с Drei, загрузкой через Suspense, событиями и жизненным циклом React.
MIT 820 установок ★ 26 обновлён 2026-09-10
npx skills add cesartevisual/threejs-skills --skill threejs-r3f -a claude-codeЧто делает threejs-r3f
Скилл помогает собирать и чинить сцены React Three Fiber с Drei, загрузкой ресурсов через Suspense и обработкой событий. Он подсказывает, как связать сцену с жизненным циклом React и оставить управление рендерером и циклом Canvas.
Инструкции охватывают обновление объектов через useFrame, границы ошибок и работу с общими ресурсами загрузчика. Для совместимости версии React и Fiber нужно сверять вместе: несовпадение поддерживаемых версий ломает согласование рендерера. Также разбираются клонирование сцен, demand rendering и обработка приоритетов useFrame.
Скилл предлагает проверять Strict Mode, переходы между маршрутами, быструю смену ресурсов и ошибки загрузки. Для сцен с отложенным рендерингом проверяется и состояние покоя; действия на HTML-слое должны оставаться доступными.
Какие задачи решает
- собрать сцену React Three Fiber с Drei
- исправить загрузку ресурсов через Suspense
- связать анимацию объектов с
useFrame - разобраться с обработкой событий на перекрывающихся мешах
- проверить жизненный цикл ресурсов при смене сцен
Примеры запросов агенту
- Собери сцену React Three Fiber с
Canvasи подходящими помощниками Drei. - Исправь загрузку модели через Suspense и обработай ошибку загрузки.
- Проверь анимацию в
useFrameи обновление сцены в режиме demand rendering.
Как установить threejs-r3f
1Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-r3f -a claude-code2Вручную: положить файлы
~/.claude/skills/threejs-r3f/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/threejs-r3f/
1Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-r3f -a codex2Вручную: положить файлы
.agents/skills/threejs-r3f/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-r3f -a cursor2Вручную: положить файлы
.cursor/skills/threejs-r3f/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install cesartevisual/threejs-skills skills/threejs-r3f2Вручную: положить файлы
.github/skills/threejs-r3f/SKILL.md1Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-r3f -a gemini-cli2Командой платформы
gemini skills install https://github.com/cesartevisual/threejs-skills --path skills/threejs-r3fВручную: положить файлы
.devin/skills/threejs-r3f/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-r3f -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о threejs-r3f
Как установить threejs-r3f в Claude Code?
Выполни npx skills add cesartevisual/threejs-skills --skill threejs-r3f -a claude-code. Файл скилла находится по пути ~/.claude/skills/threejs-r3f/SKILL.md.
Что делает threejs-r3f?
Помогает создавать и исправлять сцены React Three Fiber, настраивать Drei, загрузку через Suspense, события и связь с жизненным циклом React.
Как threejs-r3f проверяет совместимость React и Fiber?
Скилл предлагает сверять версии React, react-dom, Fiber, Drei и Three.js вместе. Версия Fiber должна поддерживать используемую версию React.
Исходный текст
SKILL.md · MIT
--- name: threejs-r3f description: "Build or fix React Three Fiber scenes, Drei helpers, Suspense loading, events, and React lifecycle integration." --- # React Three Fiber and Drei 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 React, react-dom, Fiber, Drei, and Three.js versions and peer dependencies together. Match the reconciler to React; do not assume every Fiber major supports every React major. Read helper APIs from the installed Drei version. Let Canvas own the renderer and loop unless an intentional custom integration requires otherwise. Use Fiber hooks within Canvas descendants. Keep browser-only canvas code behind the framework's client boundary; preserve server-rendered product content outside it. Use declarative scene ownership and refs for continuous mutations in useFrame. Avoid React setState for per-frame motion; reserve state for meaningful UI transitions. Memoize expensive imperative resources when needed, with explicit release rules. Hook selectors reduce irrelevant subscriptions but do not make nested mutable Three.js values reactive. Place appropriate Suspense and error boundaries around async content. Loader caches may share geometry, textures, and materials; do not mutate or dispose shared entries as if they were instance-owned. Primitives and externally supplied resources need explicit lifecycle handling. Clone scene instances, and use skeleton-aware clones for skinned models. Use demand rendering for mostly static scenes only when all imperative changes and ongoing damping trigger invalidation. Inspect Drei helper behavior before adding a duplicate loop or control update. Positive useFrame priority takes over rendering; account for who renders afterward. Test Strict Mode mounting, route transitions, rapid asset switching, loading failure, pointer propagation through overlapping meshes, and an idle demand-rendered scene. Keep equivalent HTML actions available. ## API reference Consult the [official documentation](https://r3f.docs.pmnd.rs/) 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
Похожие скиллы
Все скиллы по теме «Фронтенд и UI» →Сначала — threejs-r3f от других авторов.