threejs-scene-setup
Skill by corosolto
Sets up a three.js scene with import maps, a Scene, PerspectiveCamera and WebGLRenderer, a render loop, responsive resizing and OrbitControls. Written for developers starting or debugging three.js apps.
Install threejs-scene-setup
Built from the published package, never by AI.
git clone --depth 1 https://github.com/corosolto/client /tmp/client && mkdir -p ~/.claude/skills && cp -r /tmp/client/.agents/skills/threejs-scene-setup ~/.claude/skills/threejs-scene-setupRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/corosolto/client /tmp/client && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/client/.agents/skills/threejs-scene-setup ~/.gemini/antigravity-cli/skills/threejs-scene-setupAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install threejs-scene-setup in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill guides an assistant through setting up a three.js app. It covers loading three.js as an ES module with an import map or a bundler, creating the Scene, PerspectiveCamera and WebGLRenderer, and driving frames with setAnimationLoop. It also covers responsive resizing and adding OrbitControls for orbit, pan and zoom.
The patterns target three.js r165 and later and are verified against r184. The skill includes troubleshooting notes for problems such as a black canvas, a failed module specifier, a stretched view after resize and blurry output on HiDPI screens. It points to other skills for models, materials and lighting, and to a scene-graph reference file. It is meant for developers starting or debugging a three.js app.
Written from the project's SKILL.md and checked against it.
What it can do
- Import map setupMaps the three and three/addons paths for ES modules, in HTML or through a bundler.
- Scene, camera and rendererCreates a Scene, a PerspectiveCamera and a WebGLRenderer with pixel ratio and size set.
- Render loopDrives frames with renderer.setAnimationLoop and a Clock for frame-rate independent motion.
- Responsive resizeUpdates camera aspect, projection matrix and renderer size when the window resizes.
- OrbitControlsAdds orbit, pan and zoom camera controls, with optional damping.
- Debugging pitfallsLists causes of a blank canvas, module resolution errors, stalled animation and stretched views.
- Scene graph referencePoints to references/scene-graph.md for Group, OrthographicCamera and disposing of resources.
What you need
- three.js r165 or newer (verified against r184)
- ES modules with import maps, or a bundler such as Vite or webpack
Try asking
- Set up a three.js scene with a rotating cube and OrbitControls.
- My three.js canvas is black. Help me debug it.
- Make my three.js renderer resize correctly with the window.
Good to know
- Covers scene setup and debugging only. Models, materials and lighting are handled by other skills.
- Patterns target three.js r165 and later.
- Since r147 three.js ships ES modules only, so older script tag examples do not apply.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/threejs-scene-setup/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-graph.md4 KB
Alternatives to threejs-scene-setup
All alternatives →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.
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.
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.
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.
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.
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.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
threejs-scene-setup: common questions
Does this skill work with older three.js versions?
The source says the patterns target r165 and later and are verified against r184. It does not state support for earlier versions.
Do I need a bundler to use it?
No. The source shows an HTML import map with a module script. It also says a bundler such as Vite or webpack resolves the same import statements.
How do I load glTF models with this skill?
The source says to use the threejs-gltf-loading skill for .gltf and .glb models and skinned animation.
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 AGPL-3.0 licence. The service it connects to may have its own pricing.
Is threejs-scene-setup safe to use?
It scores 79 of 100. Grades: maintenance A, licence C, quality B. 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.
