tty-avatar
БесплатноБез исполняемых скриптовНе проверенShow a live 3D avatar in the terminal, print one rendered frame of any GLB, and change the avatar's mood or caption from scripts or Claude Code hooks. Use…
от nirholas★ 289 звёзд на GitHubОб этом скилле
tty-avatar
@three-ws/tty-avatar renders a GLB with a software rasterizer (no GPU, no browser) to truecolor half-blocks, braille or plain ASCII. Needs Node 18 or newer.
npx @three-ws/tty-avatar <source> [options]
Sources
A local ./model.glb, a GLB URL, a three.ws avatar id, agent:<agent id> (its 3D body), or a https://three.ws/avatars/<id> page URL. Id lookups use --origin or THREE_WS_ORIGIN (default https://three.ws).
Commands
tty-avatar <source> run the live viewer
tty-avatar snapshot <source> [opts] print one frame and exit
tty-avatar mood <name> [--say text] [--ttl ms] change the running viewer's mood
tty-avatar say <text> change the caption
tty-avatar hook read a hook payload on stdin, hand it to the viewer
tty-avatar install-hooks [--write] [--json] Claude Code hooks to this viewer
tty-avatar moods list moods
Moods: idle, spin, think, work, talk, happy, attention, error, sleep.
Useful flags: --mode blocks|braille|ascii (ascii is the default when stdout is not a TTY), --mood, --fps, --columns, --rows, --yaw, --pitch, --zoom, --frames <n> (exit after n frames), --no-caption, --no-alt, --max-triangles, --state-dir (or TTY_AVATAR_DIR), --no-state, --plain (snapshot without colour).
Recipes
Check a model without opening a viewer (works in a non-interactive shell):
npx @three-ws/tty-avatar snapshot ./hero.glb --mode ascii --columns 80 --rows 40 --yaw 30
Give a coding agent a face:
- Run
npx @three-ws/tty-avatar install-hooksto print the settings fragment, or add--writeto merge it into~/.claude/settings.json. Only write to the user's settings file when the user asked for it. - The user runs a viewer in a split pane:
npx @three-ws/tty-avatar <avatar id>. - The viewer polls
~/.three-ws/tty-avatar/event.jsonand maps Claude Code events to moods (UserPromptSubmit think, PreToolUse work, Stop happy, SessionEnd sleep).
Signal progress from a script:
tty-avatar mood happy --say "deploy landed" --ttl 5000
Library
import { resolveSource, parseGlb, TtyAvatar, snapshot } from '@three-ws/tty-avatar';
const { bytes } = await resolveSource('./hero.glb');
const mesh = await parseGlb(bytes);
console.log(snapshot(mesh, { mode: 'ascii', columns: 60, rows: 30 }));
Установить tty-avatar в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл tty-avatar?
Show a live 3D avatar in the terminal, print one rendered frame of any GLB, and change the avatar's mood or caption from scripts or Claude Code hooks. Use when the user wants to preview a GLB or three.ws avatar in a terminal or give a coding agent a visible face.
Как установить скилл tty-avatar?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tty-avatar запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic