/three-ws-core:embed-three-ws-avatarfrom three-ws-core
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-core. 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
npx claudepluginhub nirholas/three.ws --plugin three-ws-core49 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./authenticate-walletSign in to the wallet. Use when you or the user want to log in, sign in, connect, or set up the wallet, or when any wallet operation fails with authentication or "not signed in" errors. This skill is a prerequisite before sending, trading, or funding./build-an-agent-skillWrite a real three.ws agent skill bundle (manifest.json + SKILL.md + tools.json + handlers.js) that gives a 3D agent a new capability, then install it on an agent and test it. Use when you or the user want to build, write, author, or code a custom skill, capability, tool, or ability for a three.ws agent or an <agent-3d> embed ("give my agent a new skill", "make my agent able to check the weather", "write a custom tool for my avatar", "add a gesture skill"). Covers the four-file bundle layout, the handler context API, the sandbox limits, trust policy, and how to install the bundle./connect-three-ws-mcpConnect any MCP client (Claude Code, Claude Desktop, the Agent SDK, or a custom one) to the three.ws MCP servers, so the model can generate 3D models and avatars, read and write agent data, and pay for services. Use when you or the user want to connect, add, install, configure, wire up, or debug three.ws MCP, an MCP server for 3D or avatars or agent wallets, a .mcp.json entry, or "give Claude access to three.ws". Also use to pick which of the hosted servers to add, and to test a connection that is not working./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./create-a-three-ws-agentCreate a real three.ws AI agent (identity, 3D body, custodial Solana wallet, persona) from the command line and get its live public page. Use when you or the user want to create, build, deploy, launch, or set up an AI agent, a 3D agent, an on-chain agent, or "my own agent" on three.ws, attach a 3D body to an existing agent, edit an agent's persona or brain, or list the agents an account already owns. Returns the agent id, its Solana wallet address, and the public URL anyone can visit and chat with.2 plugins ship this exact skill · first indexed Oct 14, 2026
Other plugins' skills for the same job