Unlock the power of 3D graphics with Threejs Skills, enabling you to create stunning visual experiences effortlessly. Transform your web projects with immersive animations and interactive elements that captivate users.
npx skills add sh/cloudai-xUnlock the power of 3D graphics with Threejs Skills, enabling you to create stunning visual experiences effortlessly. Transform your web projects with immersive animations and interactive elements that captivate users.
1. **Define Your Visualization Goal**: Clearly outline what you want to demonstrate (e.g., product features, data relationships, architectural concepts). Replace [PRODUCT/SERVICE DESCRIPTION] with your specific use case. 2. **Customize Interactive Elements**: Specify which user actions should be enabled (rotation, zoom, clicks, etc.) and what visual elements should be emphasized. Replace [USER_ACTIONS] and [VISUAL_EMPHASIS] accordingly. 3. **Select Your Design Scheme**: Choose a color palette that matches your brand or message. Replace [COLOR_SCHEME] with your preferred colors (e.g., "corporate blue and white" or "vibrant gradient from purple to orange"). 4. **Deploy the Code**: Copy the generated HTML/JS code snippet and paste it into your project. For web applications, simply include it in your HTML file. For frameworks like React, use a Three.js wrapper component. 5. **Test and Iterate**: Run the visualization in different browsers to ensure compatibility. Adjust lighting, materials, and interactions based on user feedback to optimize the experience. **Pro Tips:** - Use Three.js examples (https://threejs.org/examples/) as starting points for complex visualizations - For data visualizations, consider using Three.js with D3.js for advanced charting capabilities - Optimize performance by reducing polygon counts and using instanced meshes for repeated elements
Interactive 3D web applications
Data visualization
Game development
npx skills add sh/cloudai-xgit clone https://github.com/sh/cloudai-xCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Create a 3D interactive visualization using Three.js that demonstrates [PRODUCT/SERVICE DESCRIPTION]. Include interactive controls for [USER_ACTIONS] and highlight key features with [VISUAL_EMPHASIS]. Use [COLOR_SCHEME] for the design. Provide the complete HTML/JS code snippet ready to deploy. Example: 'Create a 3D interactive visualization of a smart home thermostat using Three.js. Include orbit controls for user rotation, a glowing effect on the temperature display, and a sleek black/silver color scheme. Provide the complete HTML/JS code snippet ready to deploy.'
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>3D Smart Home Thermostat Demo</title>
<style>
body { margin: 0; overflow: hidden; }
canvas { display: block; }
</style>
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/three@0.132.2/build/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.132.2/examples/js/controls/OrbitControls.js"></script>
<script>
// Scene setup
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
const renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.setSize(window.innerWidth, window.innerHeight);
renderer.setClearColor(0x121212);
document.body.appendChild(renderer.domElement);
// Add ambient light
const ambientLight = new THREE.AmbientLight(0x404040, 0.5);
scene.add(ambientLight);
// Add directional light
const directionalLight = new THREE.DirectionalLight(0xffffff, 0.8);
directionalLight.position.set(1, 1, 1);
scene.add(directionalLight);
// Create thermostat base
const baseGeometry = new THREE.CylinderGeometry(2, 2, 0.5, 32);
const baseMaterial = new THREE.MeshPhongMaterial({ color: 0x333333 });
const base = new THREE.Mesh(baseGeometry, baseMaterial);
scene.add(base);
// Create thermostat display
const displayGeometry = new THREE.CylinderGeometry(1.8, 1.8, 0.2, 32);
const displayMaterial = new THREE.MeshPhongMaterial({
color: 0x000000,
emissive: 0x00aaff,
emissiveIntensity: 0.5
});
const display = new THREE.Mesh(displayGeometry, displayMaterial);
display.position.y = 0.4;
scene.add(display);
// Create temperature indicator
const indicatorGeometry = new THREE.CylinderGeometry(0.1, 0.1, 1.5, 16);
const indicatorMaterial = new THREE.MeshPhongMaterial({ color: 0x00aaff });
const indicator = new THREE.Mesh(indicatorGeometry, indicatorMaterial);
indicator.position.y = 1.2;
scene.add(indicator);
// Add orbit controls
const controls = new THREE.OrbitControls(camera, renderer.domElement);
camera.position.z = 5;
// Animation loop
function animate() {
requestAnimationFrame(animate);
indicator.rotation.z += 0.01;
controls.update();
renderer.render(scene, camera);
}
animate();
// Handle window resize
window.addEventListener('resize', () => {
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
renderer.setSize(window.innerWidth, window.innerHeight);
});
</script>
</body>
</html>
```
**Key Features Demonstrated:**
1. **Interactive 3D Model**: Users can rotate, zoom, and pan the thermostat using mouse controls
2. **Visual Feedback**: The temperature indicator rotates smoothly to show active state
3. **Modern Aesthetics**: Sleek black/silver color scheme with subtle blue glow
4. **Responsive Design**: Automatically adjusts to different screen sizes
This visualization could be embedded in a product page to showcase the thermostat's sleek design and interactive features, helping potential customers better understand the product before purchase.Smart cloud calling for sales teams
Conduct live technical interviews with tailored questions and real-time feedback for candidates.
Foster employee recognition with customizable rewards and real-time peer acknowledgments.
Enhance employee engagement through customizable peer recognition and instant feedback.
Manage microservices traffic and enhance security with comprehensive observability features.
Orchestrate workloads with multi-cloud support, job scheduling, and integrated service discovery features.
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan