Agent skill
events
Vuer event system - session APIs, custom events, handlers, RPC, streaming (plugin:vuer@vuer)
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/events
SKILL.md
Vuer Events
Session APIs
session.set @ DefaultScene(Box(key="box")) # Init once
session.upsert @ Box(key="box", position=[1,0,0]) # Update or insert
session.upsert @ [Box(key="b1"), Sphere(key="s1")] # Multiple
session.upsert(Box(key="child"), to="parent-key") # To parent
session.update @ Box(key="box", color="blue") # Update only
session.add @ Box(key="new") # Add new
session.remove @ "key" # Remove
session.remove @ ["k1", "k2"] # Multiple
Custom Events
from vuer.events import ClientEvent
class SetPositionEvent(ClientEvent):
etype = "SET_POSITION"
# From VuerClient
client.send @ SetPositionEvent(value=[1, 2, 3])
Handlers
@app.add_handler("CAMERA_MOVE")
async def on_camera(event, session):
print(event.value) # position, rotation, matrix
cleanup = app.add_handler("EVENT", fn)
cleanup() # Remove later
Events: CAMERA_MOVE, HAND_MOVE, OBJECT_MOVE, CLICK, UPLOAD
RPC
render = await session.grab_render(quality=0.9)
image = render.value # PIL.Image
mesh_data = await session.get_webxr_mesh(key="webxr-mesh")
Streaming
@app.bind(start=True)
async def streaming(session: VuerSession):
session.set @ DefaultScene()
t = 0
while True:
t += 0.016
yield Frame(Update(Box(key="box", position=[np.sin(t), 0, 0])), frame_rate=60)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?