/three-ws-3d:embed-three-ws-avatarfrom three-ws-3d
Embeds a live, animated three.ws 3D avatar on any website using the <agent-3d> web component. Works with plain HTML, React, Vue, Svelte, Angular, and more.
Ships in three-ws-3d. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The <agent-3d> web component renders a rigged, animated 3D avatar (GLB) with
zero framework dependencies. It works in plain HTML, React, Vue, Svelte, Angular,
WordPress, Webflow, Shopify, Framer, and Notion embeds. The bundle is served from
the three.ws CDN with access-control-allow-origin: *, so it loads from any origin.
<script
type="module"
src="https://three.ws/agent-3d/1.5.2/agent-3d.js"
integrity="sha384-KdAiFRsdcCbQMu4O5rkoL8hOEYLkmrdpf9ELd7jro+9NTNipWis3oqqFLll7v20Q"
crossorigin="anonymous"
></script>
<agent-3d
body="https://three.ws/avatars/default.glb"
mode="section"
kiosk
poster="/images/avatar-poster.webp"
style="width:100%;height:420px;display:block"
></agent-3d>
A UMD build exists at the same path as agent-3d.umd.cjs if ES modules are not an option.
latest)| Path | Cache | Use when |
|---|---|---|
/agent-3d/<MAJOR>.<MINOR>.<PATCH>/agent-3d.js | immutable, 1 year | production. Pin exact bytes, always combine with SRI |
/agent-3d/<MAJOR>.<MINOR>/agent-3d.js | 5 min | follow patch releases automatically |
/agent-3d/<MAJOR>/agent-3d.js | 5 min | follow minor + patch releases |
/agent-3d/latest/agent-3d.js | 5 min | demos and prototypes only |
latest can ship breaking changes with no action on your side. For production,
pin an exact version with an integrity attribute. Machine-readable release
data:
https://three.ws/agent-3d/versions.json: current version, channels, publish time.https://three.ws/agent-3d/<version>/integrity.json: sha384 SRI hashes for that exact version.bodyAny humanoid GLB URL works. Models generated on three.ws come back on persistent
https://three.ws/cdn/forge/... URLs you can use directly in body with no
re-hosting (self-hosting also works if you want control):
create-3d-avatar skill (rigged,
animation-ready) or generate-3d-model (static prop). Both return a glbUrl.rig-a-model skill.Rigging is universal on three.ws: any humanoid skeleton convention (Mixamo, VRM/VRoid, Avaturn, Unreal, Daz, MakeHuman, and more) is auto-mapped so the built-in animation clips (idle, walk, wave, dance, ...) play on it.
| Attribute | What it does |
|---|---|
body | GLB URL of the avatar to render (absolute URL) |
brain | Conversation engine. Omit or none = silent decorative avatar. free = real chat with a host-paid free LLM lane: no API key, no cost to you. Any other value is treated as a specific model id |
mode | Layout: section for in-page blocks, plus floating widget positions |
kiosk (or viewer) | Bare display mode: no chrome, pure avatar showcase |
poster | Image painted instantly while the GLB streams, then crossfaded out. Use it instead of your own skeleton/placeholder div |
eager | Boot immediately. Default is lazy: the element boots when scrolled into view. Set on above-the-fold hero placements |
background | transparent, dark, light, or any CSS color |
name-plate | off to hide the floating name label |
clip | Named animation to play decoratively (e.g. dance) |
framing | portrait for a head-and-shoulders crop |
responsive | Adapt sizing to the container |
There is no auto-rotate attribute on <agent-3d>; setting one is silently
ignored (it belongs to <model-viewer>, a different element).
agent:ready: model loaded and animating. Gate your "loaded" UI on this, never on a timeout.agent:error: load or boot failed. Show your fallback here.agent:load-progress: { phase, pct } detail for a real progress indicator.brain:thinking, brain:message, brain:stream,
voice:speech-start, voice:speech-end, voice:transcript.const el = document.querySelector('agent-3d');
el.addEventListener('agent:ready', async () => {
await el.wave({ style: 'enthusiastic' }); // greeting gesture
await el.playClip('dance', { loop: false }); // any named clip, reduced-motion aware
await el.lookAt('user'); // face the camera
el.setMood(0.8, 0.4); // sustained expression: valence -1..1, arousal 0..1
await el.say('Welcome!'); // speech bubble + talk animation (works with brain="none")
await el.speak('Welcome!'); // spoken TTS variant
});
Lifecycle: call el.pause() and el.resume() for tab-visibility or carousel
logic, and el.destroy() on unmount, from your framework's cleanup hook.
Theming: the element reads CSS custom properties, led by --agent-accent, so
you can match it to your brand color per instance:
el.style.setProperty('--agent-accent', '#b8ff2e').
Open https://three.ws/create/studio in an iframe (a modal works well; set
allow="camera *; microphone *; clipboard-write"). When the user exports, the
studio posts the finished GLB to the parent window:
window.addEventListener('message', (event) => {
if (event.origin !== 'https://three.ws') return; // always check origin
const msg = event.data;
if (msg?.source === 'characterstudio' && msg.type === 'export' && msg.glb instanceof ArrayBuffer) {
const blob = new Blob([msg.glb], { type: 'model/gltf-binary' });
// Upload the blob to your storage (or use it in-memory), then point
// <agent-3d body="..."> at the resulting URL.
}
});
The message shape is { source: 'characterstudio', type: 'export', format: 'glb', glb: ArrayBuffer }.
The protocol is currently export-only: you cannot seed an existing GLB into the
studio for re-editing.
There is also a plain link target for text-to-3D generation with no integration
work: https://three.ws/create/prompt.
/agent-3d/latest/ in production. Pin a version and add SRI.setTimeout. Use agent:ready and agent:load-progress.poster image instead.eager on a hero placement, so the avatar boots late.el.destroy() on unmount in SPA frameworks, leaking WebGL contexts.auto-rotate, which does nothing on this element.brain="free" costs the embedder nothing.https://three.ws/docs/web-componenthttps://three.ws/docs/embeddinghttps://three.ws/agent-3d/versions.jsonWhat SKILL.md sets; muted values are Claude Code's defaults
A site or app (any framework, or plain HTML) should display or control a three.ws avatar. To generate the avatar model itself, use create-3d-avatar or generate-3d-model first; this skill covers putting the result on a page and driving it.
Three short reads, in order
6 skills in this plugin
/anatomyExplain how a machine works as an interactive isometric 3D cutaway. Use when the user asks how an engine, turbine, reactor, pump, clock, motor or any mechanism works and wants to see it, or types "/anatomy <machine>", for example "/anatomy explain how a big airliner turbofan engine like the A380's makes thrust, interactive". Produces a shareable three.ws link with real moving parts, shader effects (fire, exhaust, plasma, water, steam, sparks, arcs), flows, a section cut, an exploded view and a guided tour./create-3d-avatarTurn a text prompt (or reference image) into a rigged, animation-ready 3D avatar (GLB). Use when you or the user want to create, generate, or make a 3D avatar, character, or humanoid figure that can be posed and animated, for example "make a 3D avatar of a knight", "generate a character I can animate", "create a rigged astronaut". Generates the mesh and adds a humanoid skeleton in one step. Returns a GLB URL plus a pose-studio link./find-3d-assetsSearch thousands of ready-made 3D assets on three.ws (CC0 props and objects, rigged humanoid characters, motion clips) and get paste-ready code or a downloaded file. Use when you or the user need a 3D model, prop, object, character, or animation for a scene, site, game, or app ("I need a 3D chair", "find a rigged character", "is there a wave animation", "add a lamp model to my page"). Free: no account, no API key, no payment. Check here BEFORE generating a model from scratch./generate-3d-modelTurn a text prompt into a downloadable, textured 3D model (GLB). Use when you or the user want to generate, create, make, or forge a 3D model, asset, object, mesh, or prop from a text description, for example "make a 3D model of a robot", "generate a GLB of a sword", "I need a 3D chair". Runs on the FREE text→3D lane (no key, no account, free). Returns a GLB URL plus a browser viewer link./rig-a-modelAuto-rig a static 3D GLB model into an animation-ready one. Use when you or the user have an existing GLB and want to rig it, add a skeleton, add bones, make it posable, or make it animatable, for example "rig this model", "add a skeleton to my GLB", "make this character animation-ready". Takes a GLB URL, adds a humanoid skeleton plus skin weights, and returns the rigged GLB URL and a pose-studio link.npx claudepluginhub nirholas/three-ws-3d-skills --plugin three-ws-3d2 plugins ship this exact skill · first indexed Oct 14, 2026
Other plugins' skills for the same job