mocap-clips
БесплатноБез исполняемых скриптовНе проверенSave, list, fetch, update and delete motion capture clips on three.ws with @three-ws/mocap. Use when a task needs to store or replay a face, pose or hand…
от nirholas★ 289 звёзд на GitHubОб этом скилле
Mocap clips with @three-ws/mocap
A thin Node/browser client over the /api/mocap/clips endpoints on three.ws. It stores browser-recorded frames and returns them for replay on any avatar.
Install
npm install @three-ws/mocap
Node 18 or newer. Zero dependencies. The base URL defaults to https://three.ws and can be overridden with the baseUrl option or the THREE_WS_BASE_URL env var.
Auth
Writes need a session cookie or a bearer token with the right scope. Reads of public clips are open. Pass the token per call or bind it once:
import { createMocap } from '@three-ws/mocap';
const mocap = createMocap({ token: process.env.THREEWS_TOKEN });
Cookie-authenticated writes also need X-CSRF-Token (mint one with GET /api/csrf-token). Bearer tokens do not.
Functions
All are exported both as top-level functions and on the createMocap() client.
saveClip(recording, meta, auth?):POST /api/mocap/clips.meta.nameis required (1 to 120 chars). Optionalslug,description,tags,visibility(private|unlisted|public),avatarId.getClip(idOrSlug, auth?): one clip with its fullframes.listClips(auth?, { limit, cursor, kind, includePublic }): metadata only, returns{ items, nextCursor }.kindisface,pose,handorvmc.updateClip(idOrSlug, patch, auth?): owner only. Patch may includename,description,tags,visibility,avatarId,price.deleteClip(idOrSlug, auth?): soft delete, returns{ ok }.supportedFormats,formatKind(format): helpers.
Recording shape
{ format: 'three.ws.face-mocap.v1', duration: 2.4, frames: [{ t: 0, shapes: { jawOpen: 0.1 }, mat: null }] }
Supported format values: three.ws.face-mocap.v1, three.ws.pose-mocap.v1, three.ws.hand-mocap.v1, three.ws.vmc.v1. At most 18000 frames per clip.
Example
import { saveClip, getClip, listClips } from '@three-ws/mocap';
const token = process.env.THREEWS_TOKEN;
const clip = await saveClip(recording, { name: 'Wave hello', visibility: 'unlisted', tags: ['wave'] }, { token });
const full = await getClip(clip.slug ?? clip.id, { token });
const mine = await listClips({ token }, { kind: 'face', limit: 20 });
Errors
Failures throw ThreeWsError (code, status, detail, retryAfter). A 402 throws PaymentRequiredError with the x402 accepts challenge. Do not retry a 402 without the user approving the payment.
Frames come from a webcam or video capture running in the browser. This package does not capture, it persists and fetches.
Установить mocap-clips в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mocap-clips?
Save, list, fetch, update and delete motion capture clips on three.ws with @three-ws/mocap. Use when a task needs to store or replay a face, pose or hand recording on an avatar.
Как установить скилл mocap-clips?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mocap-clips запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic