Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

threejs-r3f

Skill by jwuthri-cloud

threejs-r3f gives an AI assistant rules and code patterns for 3D on the web with Three.js and React Three Fiber. It suits developers building 3D scenes, shaders and postprocessing effects.

  • Score 87
  • 844 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install threejs-r3f

Built from the published package, never by AI.

git clone --depth 1 https://github.com/jwuthri-cloud/Tracely-ai /tmp/Tracely-ai && mkdir -p ~/.claude/skills && cp -r /tmp/Tracely-ai/.agents/skills/threejs-r3f ~/.claude/skills/threejs-r3f

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install threejs-r3f in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

threejs-r3f is a skill with concise rules, code patterns and checklists for building 3D scenes on the web with Three.js and React Three Fiber (R3F). Three.js is described as the engine and R3F as the React renderer. It helps choose between R3F with drei, plain Three.js, CSS transform3d, Canvas 2D and raw WebGL, and shows scene setup with Canvas, Suspense and Environment.

The skill also covers R3F hooks such as useFrame and useThree, common drei components, and postprocessing with Bloom and ChromaticAberration. It lists performance patterns like instancing, LOD, Draco and KTX2 compression, and five do-not rules, including avoiding setState in useFrame and disposing resources. It is aimed at developers building 3D web scenes with React or vanilla Three.js.

Written from the project's SKILL.md and checked against it.

What it can do

  • Renderer choiceCompares R3F with drei, plain Three.js, CSS transform3d, Canvas 2D and raw WebGL.
  • Scene setupShows a Canvas setup with Suspense, Environment and OrbitControls.
  • R3F hooksExplains useFrame, useThree, useLoader and useGraph with usage tips.
  • Drei essentialsLists components such as Float, Text3D, useGLTF, MeshTransmissionMaterial and Instances.
  • PostprocessingShows EffectComposer with Bloom and ChromaticAberration and notes on glow and pass order.
  • Performance patternsCovers instancing, LOD, Draco and KTX2 compression, demand rendering and target metrics.

What you need

  • React (for React Three Fiber scenes)
  • Three.js

Try asking

  • Set up an R3F scene with Canvas, Suspense and a studio Environment preset
  • Add Bloom and ChromaticAberration postprocessing to my Three.js scene
  • Make my R3F scene render only when something changes to save GPU time

Good to know

  • Deep-dive details are in references/scene-setup.md and references/shaders.md, which are not part of this file.
  • Performance targets such as under 100 draw calls are stated as guidance.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/threejs-r3f/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md7 KB
  • references/scene-setup.md8 KB
  • references/shaders.md10 KB

Alternatives to threejs-r3f

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

threejs-r3f: common questions

What does the skill say about useFrame?

It warns never to call setState inside useFrame because it causes a React re-render every frame. It recommends mutating refs directly and using delta for framerate-independent animation.

Does the skill cover shaders?

It lists a reference file for custom shaders, GLSL patterns and uniforms, but the shader details are in that separate file rather than this one.

Which tools does it suggest for monitoring performance?

The source says to use stats-gl or r3f-perf to monitor performance against its target metrics.

How do I install threejs-r3f?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is threejs-r3f free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is threejs-r3f safe to use?

It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to threejs-r3f?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

threejs-r3f Install

Add to stack

Loading.