preview-threejs
Installation
SKILL.md
Preview Three.js Skill
Interactive Three.js 3D visualization viewer with pre-configured scene, camera, lighting, and orbit controls.
Agent Usage
When the user asks to create a 3D visualization, write the Three.js code and pipe it to the script. Use the Bash tool to execute this skill's run.sh script:
# Pipe Three.js code
cat scene.js | ./run.sh
# Or from a file
./run.sh model.threejs
The script handles all HTML generation and automatically opens the result in the browser. Do NOT open the file manually to avoid duplicate tabs.