К основному содержанию
скилл Claude Code CX Codex Cursor GitHub Copilot

threejs-audio-generator — скилл для Claude Code: звук для Three.js

Скилл генерирует через ElevenLabs звуки, музыку и озвучку для игр на Three.js и встраивает их в проект через Web Audio.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add majidmanzarpour/threejs-game-skills --skill threejs-audio-generator -a claude-code
Открыть на GitHub

Что делает threejs-audio-generator

Скилл оборачивает ElevenLabs в один скрипт scripts/threejs_audio_asset.py. Подкоманды sfx, music, tts, voice-change и isolate пишут готовые mp3 прямо в папку проекта. Перед первой генерацией загляните в references/audio-workflows.md: там матрица звуков, шаблоны промптов и форма Web Audio-менеджера с загрузкой, лупами и разблокировкой по жесту.

Музыку можно заказать коротким промптом с --duration от 3 до 600 секунд или JSON-планом композиции через --plan. Флаг --seed работает только вместе с планом. У API ElevenLabs нет флага лупа, поэтому длину трека и склейку петли агент выставляет по инструкции из референса.

Ключ берётся из --api-key или из переменной ELEVENLABS_API_KEY. Ключ, прописанный только в профиле шелла, может не доехать до процесса; тогда пригодится threejs-game-director/scripts/probe_asset_credentials.sh, он подхватывает профиль. Проверка наличия — probe, а --validate дополнительно дёргает GET /user. Ключ валиден, а генерация всё равно падает с HTTP 4xx? Значит упёрлись в кредиты или тариф, и чинить надо не ключ.

Какие задачи решает

  • сгенерировать звук подбора предмета по текстовому описанию
  • сделать зацикленный эмбиент дождя или ветра для уровня
  • собрать боевую музыку на 60 секунд без интро и затухания
  • вычистить шумную запись реплики босса перед встройкой
  • озвучить анонсера через TTS выбранным голосом

Примеры запросов агенту

  • Сгенерируй короткий звук взрыва через `threejs_audio_asset.py sfx` и положи в `assets/audio/sfx/`
  • Сделай зацикленный эмбиент арены на 12 секунд и привяжи его к событию старта боя
  • Прогони `assets/audio/source/noisy-boss-line.wav` через `isolate`, потом через `voice-change`, чтобы получить чистую реплику

Как установить threejs-audio-generator

1Через Skills CLI (Vercel)

npx skills add majidmanzarpour/threejs-game-skills --skill threejs-audio-generator -a claude-code

2Вручную: положить файлы

~/.claude/skills/threejs-audio-generator/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/threejs-audio-generator/

Из того же набора4

Весь набор →

Похожие

unreal-cpp-gameplay gamedev-skills Учит агента писать геймплейный C++ под Unreal Engine 5: макросы рефлексии, классы Gameplay Framework, зависимости модуля в *.Build.cs. Claude Code CX Codex Cursor +1 5 000установок unreal-niagara gamedev-skills Скилл ведёт агента по Niagara в Unreal Engine 5: сборка систем и эмиттеров, модули в стейджах spawn/update, спавн эффектов из Blueprint и C++. Claude Code CX Codex Cursor +1 4 900установок unreal-enhanced-input gamedev-skills Помогает настроить систему ввода Enhanced Input в Unreal Engine 5. Полезен при сборке ассетов действий, привязке событий в C++ или Blueprints и отладке управления. Claude Code CX Codex Cursor +1 4 900установок sprite-pipeline официальный OpenAI Готовит и нормализует полосы 2D-анимации по утверждённому кадру. Подойдёт, когда нужны согласованные игровые кадры и лист для предпросмотра. CX Codex GP ChatGPT 53установок orbit-card heygen-com Скилл для встраивания готового 10-секундного 3D-блока HyperFrames: карточка фичи облетает сферу из точек по траектории камеры из Blender. Claude Code CX Codex Cursor +1 9 800установок sdf earthtojake Скилл создаёт и проверяет SDFormat-файлы для моделей и миров, а затем помогает подготовить их к передаче в симулятор. Claude Code CX Codex Cursor +1 10 500установок urdf earthtojake Скилл помогает создавать, проверять и отлаживать описания роботов в формате URDF. Пригодится для работы со звеньями, сочленениями и геометрией. Claude Code CX Codex Cursor +1 10 400установок hatch-pet официальный openai Создаёт и упаковывает анимированных питомцев и спрайт-листы для Codex. Пригодится, когда нужен персонаж по описанию, изображению или фирменным ориентирам. Claude Code CX Codex Cursor +1 3 300установок

Вопросы о threejs-audio-generator

Как установить threejs-audio-generator в Claude Code?

Выполните npx skills add majidmanzarpour/threejs-game-skills --skill threejs-audio-generator -a claude-code. Скилл окажется в ~/.claude/skills/threejs-audio-generator/SKILL.md.

Что делает threejs-audio-generator?

Генерирует и обрабатывает звук для игр на Three.js: эффекты, лупы, музыку, озвучку и конверсию голоса через ElevenLabs. Заодно подсказывает, как подключить файлы к Web Audio.

Чем `tts` отличается от `voice-change`?

tts синтезирует чистую реплику из текста. voice-change нужен, когда важны тайминг и актёрская подача из черновой записи. Шумную речь перед конверсией прогоняют через isolate.

Исходный текст

SKILL.md · MIT
---
name: threejs-audio-generator
description: "Generate, convert, clean, and integrate audio for Three.js browser games with ElevenLabs: sound effects, looping ambience, music tracks and loops (menu, gameplay, boss, victory/defeat stingers), UI sounds, impact/weapon/vehicle audio, creature and boss stingers, announcer and dialogue TTS, voice conversion from a scratch performance, voice cleanup, audio manifests, and Web Audio integration."
---

# Three.js Audio Generator

Game-ready audio for Three.js projects: SFX, music, voice work, cleanup, and runtime integration. Provider: ElevenLabs.

Resolve `<this-skill-dir>` from the actual loaded skill file. Resolve sibling skills beside it first, then use the runner's discovered paths. Do not mix installed versions or assume a particular home directory.

## Reference

`references/audio-workflows.md` — the audio matrix, prompt patterns, generation, music, and voice strategy, Web Audio manager shape, and runtime failure modes. Read it before planning a game's audio, generating a batch, wiring runtime playback, or converting voices.

## When to use

SFX (jumps, hits, weapons, explosions, pickups, collisions, UI clicks) · music (menu and gameplay loops, boss themes, intensity layers, win/lose stingers) · ambience (wind, rain, city bed, engine hum, room tone, arena beds) · voice (announcer barks, boss lines, tutorial prompts, menu narration) · voice conversion from a scratch performance when timing and acting matter · cleanup and isolation before conversion or final use · Web Audio integration with loading, looping, manifests, volume groups, pause/resume, and gesture unlock.

Audio is not cosmetic for a premium game. Build an audio matrix from the events the game actually has; do not add dialogue, weapons, music, or ambience layers just to fill categories. Respect explicit silent, procedural-audio, accessibility, and external-service constraints. A narrow sound fix does not need a new soundtrack.

## API key

The script reads `--api-key` or `ELEVENLABS_API_KEY`. Keys never go in skill files, game code, or reports.

```bash
python3 <this-skill-dir>/scripts/threejs_audio_asset.py probe   # ELEVENLABS_API_KEY=SET|MISSING
```

Keys defined only in a shell profile can be absent from the process env; `threejs-game-director/scripts/probe_asset_credentials.sh` sources the profile and probes all three providers.

Add `--validate` to call `GET /user` and confirm the key actually works (prints `VALID_USER=...`) when a key is present but generation fails. A valid key can still be blocked by credit or plan limits, which surface as an `HTTP 4xx` from a real generation attempt — report that as a plan blocker rather than a missing key.

## Commands

Run from the game project directory:

```bash
python3 <this-skill-dir>/scripts/threejs_audio_asset.py sfx \
  --prompt "tight futuristic boost pickup, bright transient, short sparkling tail, arcade racing game" \
  --duration 1.2 --prompt-influence 0.65 --out assets/audio/sfx/boost-pickup.mp3

python3 <this-skill-dir>/scripts/threejs_audio_asset.py sfx \
  --prompt "seamless cyber resort ambience, distant surf, soft neon transformer hum, gentle crowd bed" \
  --duration 12 --loop --prompt-influence 0.45 --out assets/audio/ambience/cyber-resort-loop.mp3

python3 <this-skill-dir>/scripts/threejs_audio_asset.py music \
  --prompt "driving synthwave race loop, 128 BPM, punchy analog bass, bright arpeggios, steady energy with no intro or fade-out, designed to loop" \
  --duration 60 --instrumental --out assets/audio/music/race-loop.mp3

python3 <this-skill-dir>/scripts/threejs_audio_asset.py tts \
  --text "Perfect shot." --voice-id JBFqnCBsd6RMkjVDRZzb --out assets/audio/voice/perfect-shot.mp3

python3 <this-skill-dir>/scripts/threejs_audio_asset.py isolate \
  --input assets/audio/source/noisy-boss-line.wav --out assets/audio/voice/boss-line-clean.mp3

python3 <this-skill-dir>/scripts/threejs_audio_asset.py voice-change \
  --input assets/audio/source/scratch-boss-line.wav --voice-id JBFqnCBsd6RMkjVDRZzb \
  --remove-background-noise --out assets/audio/voice/boss-line-final.mp3
```

## Defaults

- SFX: `mp3_44100_128`, 0.5–2.5s, prompt influence 0.55–0.8.
- UI: 0.15–0.8s, high prompt influence, transients kept clear.
- Ambience: 8–30s with `--loop`, prompt influence 0.3–0.55.
- Music: `music --prompt` (`--duration` 3–600s, `--instrumental`) or `--plan FILE` with a `composition_plan` JSON for sectioned tracks (`--seed` works only with plans). The API has no loop flag; lengths, looping, and layering are in the reference's Music Strategy.
- Voice: TTS for clean generated lines; `voice-change` when timing and acting from a scratch performance matter. Isolate noisy speech first.
- Runtime: generate into the game project and load through Web Audio. Follow the project's asset/version-control policy; do not commit or publish unless asked. No API keys in browser code.

## Recovery and Coordination

For coordinated games use the director's `references/asset-recovery.md`. Preserve outputs and the audio trigger mapping before retrying work. Distinguish missing credentials, permissions, exhausted credits, invalid input, and transient service failures. Reconcile an uncertain paid request before resubmitting; these one-shot commands do not implement Tripo task resume. Keep independent gameplay work moving and provide a local/synthesized fallback with honest limitations when genuinely blocked.

Listen to a representative effect or line before generating a batch. Test it through its real game event, then give the lead paths and local playback findings for one consolidated QA pass.

## Report

Generated and processed file paths, the prompts, composition plans, text, source files, voice IDs, durations, loop flags and loop points and formats behind them, the runtime trigger mapping and audio groups, and any remaining gaps or plan limits.

© majidmanzarpour · MIT · majidmanzarpour/threejs-game-skills

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой