Using Vuer with Claude Code¶
Vuer includes a Claude Code skill that teaches Claude how to use the library effectively. This enables Claude to help you build 3D visualizations, debug issues, and write Vuer code with accurate knowledge of the APIs.
Quick Setup¶
Import the skill by running this slash command in Claude Code:
/plugin marketplace add vuer-ai/vuer-skill
/plugin install vuer@vuer-ai-vuer-skill
For local development (if you cloned the vuer repo):
claude --plugin-dir /path/to/vuer
Once imported, Claude Code will automatically use the skill when working with Vuer code.
What the Skill Provides¶
The skill gives Claude knowledge about:
Server & Session¶
Creating and configuring
Vuerserver instancesUsing
@app.spawnand@app.binddecoratorsSession APIs:
set,upsert,update,add,removeStatic file serving and SSL/TLS configuration
Components¶
Primitives: Box, Sphere, Cylinder, Capsule, Cone, Plane, etc.
Custom Geometry: TriMesh, PointCloud with numpy arrays
Model Loaders: URDF, GLB/GLTF, OBJ, PLY, STL
Gaussian Splatting: Splat, LumaSplats, SparkSplats
Cameras: PerspectiveCamera, OrthographicCamera, Frustum
Text: Text, Text3D, Billboard
Interaction: Movable, Gripper
Image Handling¶
Imgfor DOM images (supports URL, file path, numpy, PIL)Imagefor 3D scene image planesImageBackgroundfor camera-facing backgroundsFormat options (PNG, JPEG) and quality settings
Events¶
Event handlers with
@app.add_handler("EVENT_TYPE")Common events: CAMERA_MOVE, HAND_MOVE, OBJECT_MOVE, CLICK
RPC methods:
grab_render,get_webxr_mesh
VR/AR (WebXR)¶
Hand tracking with
HandscomponentMotion controllers with
MotionControllerAR mesh detection with
WebXRMeshHaptic feedback
Skill Structure¶
skills/
├── vuer.md # Main overview and architecture
└── vuer/
├── components.md # Full component reference
├── events.md # Event system and session APIs
├── examples.md # Common patterns and recipes
├── server.md # Server configuration
└── xr.md # VR/AR/WebXR features
Example Prompts¶
Once the skill is set up, you can ask Claude things like:
“Create a Vuer scene with a robot URDF and point cloud”
“Add hand tracking to my VR scene”
“Show me how to stream numpy images to the browser”
“Help me animate a box in a circle”
“Set up event handlers for camera movement”
Updating the Skill¶
The skill files are markdown documents that you can customize. If you add new components or patterns to your project, consider updating the skill files so Claude stays informed.
To get the latest skill, pull the latest vuer repo and re-import:
cd vuer
git pull
Then in Claude Code:
/plugin add /path/to/vuer/skills