Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

optimize-audio

БесплатноБез исполняемых скриптовНе проверен

Optimizes audio memory, CPU cost, and playback quality through import settings and mixer configuration. Use when asked to reduce audio memory or Audio Mixer…

Unity-Technologiesот Unity-Technologies★ 1 342 звезды на GitHub

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

Important

  • Use the unity cli (unity command --format json) and the unity-cli and unity-pipeline skills for each step.
  • Before making changes, establish a baseline so you can tell whether a later result is caused by your change.
  • Create a restore point you can roll back to if your changes fail.
  • Do only what's asked. Don't change unrelated assets or files.
  • Never leave verification code in the user's script. Never build logging or detection they didn't ask for.
  • Avoid long explanations.
  • Do not make changes before reporting findings to the user, because import and mixer settings apply to every scene that uses the clip or mixer.
  • Follow steps in strict order; never jump ahead, because each step uses what the previous one found.
  • STOP at every WAIT checkpoint and await the user's response before continuing, because the user decides which changes to make.
  • Always verify results in a device build; Editor audio stats are indicative only

Full topic map

Before you go forward with a workflow or diagnosis:

  1. Read the documentation page(s) covering what you intend to do or fix, and check if you've missed anything.
  2. Name the file(s) you read in your response.

Your training knowledge about Unity may be out of date, incorrect, or for the wrong version.

Prefer WebFetch over WebSearch — faster and lands on the exact reference. Only fetch what you need. Replace <VERSION> with the following before fetching:

  • docs.unity3d.com (the xrefmap.yml and ScriptReference URLs): The Editor version, for example 6000.0. This isn't a package version.
  • docs.unity.com: The product version, eg 7000.0

Read the Unity version from ProjectSettings/ProjectVersion.txt.

If <editor-install>/Editor/Data/Documentation/en/Manual exists, read the local html file named below from it. Otherwise fetch the online .md page.

  • Audio Clip Import Settings reference — class-AudioClip.html, online: every clip import setting.
  • Audio file compression — AudioFiles-compression.html, online: size, CPU and quality cost of each format.
  • Audio settings — class-AudioManager.html, online: DSP Buffer Size.
  • Audio Mixer — AudioMixer.html, online: mixer groups, effects and snapshots.
  • Audio Mixer inspectors — AudioMixerInspectors.html, online: effect CPU display, Auto Mixer Suspend.
  • Audio Source — class-AudioSource.html, online: Spatial Blend, rolloff, Output.
  • Audio Listener — class-AudioListener.html, online: listener behaviour.
  • Audio Profiler module — ProfilerAudio.html, online: measuring audio memory and DSP CPU.

API reference

The API is UnityEditor.AudioImporter and the UnityEngine audio classes, part of the Unity Engine. It is versioned by Unity version, so check the project's Unity version before relying on a specific class or method.

  1. Use the unity-cli skill to check the project's Unity version.
  2. If <editor-install>/Editor/Data/Documentation/en/ScriptReference exists, grep its html files and skip the remaining steps.
  3. Otherwise, fetch and cache https://docs.unity3d.com/<VERSION>/Documentation/ScriptReference/xrefmap.yml. This file lists every public API member's fully qualified name as a uid (e.g. uid: 'UnityEditor.AudioImporter.forceToMono').
  4. Grep the yml file locally for a class or method instead of refetching per lookup. The file is large (about 6 MB), so don't read the whole file.
  5. Convert the uid to a markdown page: remove the parameters in brackets, lowercase it, replace . with /, and add .md. Then fetch https://docs.unity.com/en-us/engine/<VERSION>/script-reference/<converted uid>. For example, UnityEngine.AudioClip.LoadAudioData => https://docs.unity.com/en-us/engine/<VERSION>/script-reference/unityengine/audioclip/loadaudiodata.md. All overloads are on the same page.
    • Constructors use ctor, and indexers use item. For operators, fetch the class page and follow its link.
    • Links inside the pages start with /engine/. Add https://docs.unity.com/en-us before them.
    • If the page doesn't exist for that Unity version, use the href in the xrefmap.yml entry instead (e.g. href: 'AudioImporter.html' => `https://docs.unity3d.com//Documenta
Полный SKILL.md на GitHub

Установить optimize-audio в Claude Code и Claude Desktop

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

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

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

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

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

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

Вложенные файлы

SECURITY.mdreferences/audio-import-api.mdreferences/platform-settings.mdreferences/troubleshooting.md

FAQ

Что делает скилл optimize-audio?

Optimizes audio memory, CPU cost, and playback quality through import settings and mixer configuration. Use when asked to reduce audio memory or Audio Mixer CPU cost, change clip Load Types, sample rates or codecs, or force 3D audio to mono.

Как установить скилл optimize-audio?

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

Скилл optimize-audio запускает скрипты?

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

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

Сравнить optimize-audio с