Command Palette

Search for a command to run...

Назад к скиллам
скилл № 81277

add-avatar-companion

Add the @three-ws/walk animated 3D avatar companion (corner mascot plus full-page stroll and platformer playground) to a website, configure its roster and…

БесплатноБез исполняемых скриптов
nirholasот nirholas★ 289 звёзд на GitHub

Установить add-avatar-companion в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Add the walking avatar companion

@three-ws/walk (version 0.1.2, the package in this repo) is a Three.js library. A character idles in the page corner, follows the cursor and greets each page. Clicking it detaches it into a full-page playground in stroll or platformer mode. Visitors choose their avatar from a built-in roster, or the site supplies its own GLB.

Install

npm install @three-ws/walk three

three (0.150 or newer) is a peer dependency. The site must serve two sets of assets from its own origin or from a CDN set through assetBase: the avatar GLBs the roster references (for example /avatars/*.glb) and the shared animation manifest at /animations/manifest.json with its clips, used to retarget motion onto rigs that ship no locomotion.

Mount it

import { createWalkCompanion } from '@three-ws/walk';

createWalkCompanion().bootstrap(); // auto-mount, honours ?walk= and ?avatar= links

Or control it:

const walk = createWalkCompanion({ defaultAvatarId: 'fox' });
walk.enable();            // mount the corner companion
walk.openPicker();        // let the visitor choose
walk.setAvatar('michelle'); // persist and hot-swap
walk.disable();

Import is side-effect free: nothing touches the DOM until enable() or bootstrap(). The returned control also has isEnabled(), toggle() and instance.

Options

avatars (roster, default WALK_AVATARS), defaultAvatarId (default 'robot'), assetBase, apiBase (prefix for the /api/avatars/<id>/glb proxy), manifestUrl (default /animations/manifest.json), excludedRoutes (path prefixes where it never mounts), enablePicker (default true), greeting ((path) => string | null), docsUrl, storagePrefix (default walk).

Custom avatar

Each roster entry needs id, name, category, asset, source: 'static', rig, and optionally accent. rig: 'embedded' plays clips baked into the GLB (robots, animals). rig: 'shared' retargets the shared idle, walk, run, wave, jump clips onto a humanoid.

import { createWalkCompanion, WALK_AVATARS } from '@three-ws/walk';
createWalkCompanion({
  avatars: [...WALK_AVATARS, { id: 'mascot', name: 'Our Mascot', category: 'Brand', asset: '/brand/mascot.glb', source: 'static', rig: 'shared' }],
  defaultAvatarId: 'mascot',
}).bootstrap();

URL controls (with bootstrap())

?walk=1 forces it on, ?walk=0 off, ?walk=play opens the playground, ?avatar=<id> picks an avatar.

Lower-level exports

launchPlayground, exitPlayground, switchPlaygroundMode, createAvatarPicker, loadWalkAvatar, getAvatar, listCategories, makeApiAvatarEntry, resolveAvatarUrl. See types/index.d.ts for signatures.

Notes

It respects prefers-reduced-motion, shares one WebGL context budget with other Three.js viewers on the page, and loads the playground lazily. The repo license is proprietary (all rights reserved), so tell the user to check the LICENSE before shipping it in a product.

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл add-avatar-companion?

Add the @three-ws/walk animated 3D avatar companion (corner mascot plus full-page stroll and platformer playground) to a website, configure its roster and assets, and deep-link it. Use when the user wants a walking 3D mascot or avatar on their pages.

Как установить скилл add-avatar-companion?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл add-avatar-companion запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить add-avatar-companion с