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-scene-setup

Skill by gamedev-skills

Sets up and debugs a plain three.js r187 scene, covering import maps, the render loop, resize handling, OrbitControls and WebGPURenderer. Built for developers starting or debugging a three.js app.

  • Score 93
  • 12k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install threejs-scene-setup

Built from the published package, never by AI.

git clone --depth 1 https://github.com/gamedev-skills/awesome-gamedev-agent-skills /tmp/awesome-gamedev-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-gamedev-agent-skills/skills/web-engines/threejs-scene-setup ~/.claude/skills/threejs-scene-setup

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

Step-by-step: install threejs-scene-setup in Claude Code

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

About

threejs-scene-setup is an agent skill for setting up and debugging a plain three.js r187 scene. It covers import maps and the three/addons path, the Scene, PerspectiveCamera and WebGLRenderer setup, a render loop driven by setAnimationLoop with Timer, resize handling, OrbitControls, and opting into WebGPURenderer.

The skill gives a workflow, code patterns, a list of common errors and fixes, and a headless browser smoke test built on Playwright. The smoke test checks for page errors and draw calls and saves screenshots. The skill points to other skills for glTF loading and for materials and lighting, and it excludes React Three Fiber. It is written for developers starting or debugging a three.js app, and it asks the assistant to read the installed three version first.

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

What it can do

  • Import map setupConfigures the three and three/addons paths with an import map or a bundler.
  • Scene, camera and rendererCreates a Scene, PerspectiveCamera and WebGLRenderer with a capped pixel ratio.
  • Render loop with TimerDrives frames with setAnimationLoop and a clamped delta from THREE.Timer.
  • Responsive resizeUpdates camera aspect, the projection matrix and renderer size on window resize.
  • OrbitControlsAdds orbit camera controls, including damping, to a scene.
  • WebGPURenderer opt-inExplains when to switch to WebGPURenderer and what carries over or breaks.
  • Smoke testRuns a Playwright script that checks draw calls, page errors and context loss recovery.

What you need

  • three r187 (npm three@0.187.0)
  • Node.js and npm
  • Playwright and Chromium for the optional smoke test

Try asking

  • Set up a three.js scene with a rotating cube and OrbitControls.
  • Why does my page say Failed to resolve module specifier three?
  • Switch my three.js app to WebGPURenderer and list what will break.

Good to know

  • Patterns target three r187; the installed version should be checked first.
  • Custom GLSL, ShaderMaterial, onBeforeCompile and EffectComposer do not carry over to WebGPURenderer.
  • MeshDepthMaterial and MeshDistanceMaterial do not carry over to WebGPURenderer.
  • Does not cover React Three Fiber, glTF loading, or materials and lighting.

Security check

A

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

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

Inside the skill

  • SKILL.md11 KB
  • references/scene-graph.md6 KB

Alternatives to threejs-scene-setup

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-scene-setup: common questions

Which three.js version does this skill target?

It targets three r187 and notes that the npm package is three@0.187.0. The skill asks the assistant to read the installed version first.

Does it support WebGPU?

Yes, it has a section on opting into WebGPURenderer. The source says WebGPURenderer falls back to a WebGL 2 backend where WebGPU is missing.

What should I do if the canvas is black?

The skill says a black canvas with no errors usually means the camera is inside or behind the object, or a lit material has no light. It suggests moving the camera back and testing with MeshNormalMaterial.

How do I install threejs-scene-setup?

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

Is threejs-scene-setup free?

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

Is threejs-scene-setup safe to use?

It scores 93 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-scene-setup?

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

threejs-scene-setup Install

Add to stack

Loading.