optimize-audio
An agent skill by Unity-Technologies, from Unity-Technologies/unity-agent-plugin. Tags: audio, import-settings, mixer, optimization, performance.
What it does
Optimizes Unity 6 audio memory, CPU cost, and playback quality through correct import settings and mixer configuration. Use when the user wants to reduce audio memory usage, choose the right Load Type for short clips versus music versus ambient beds, configure platform-appropriate sample rates and codecs, force 3D audio to mono, or reduce AudioMixer CPU cost from deep group trees or effects running on silent paths.
Install
With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:
npx skills add Unity-Technologies/unity-agent-plugin --skill optimize-audio
Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):
git clone --depth 1 https://github.com/Unity-Technologies/unity-agent-plugin
cp -r unity-agent-plugin/skills/optimize-audio ~/.claude/skills/optimize-audio
Safety box score
Grade C, moderate risk: 14 of 100 risk points, rated 2026-10-15. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.
This skill runs C# inside the user’s open Unity Editor to inspect and change audio import settings, mixer configuration, and scene audio components. Its main risk is persistent project modification through reimports and scene edits, though it does not show any network exfiltration or secret access.
| Category | Level | Why |
|---|---|---|
| Code & shell execution | 3 (high) | `SKILL.md` explicitly says to run C# via `unity command eval --caller plugin --skill optimize-audio --code '<snippet>'` and that "Every C# step below runs inside a live Editor," which is direct code execution in the user's Unity session. |
| Network access | 0 (none) | The shipped files contain no download, upload, HTTP/API, or remote-host commands; the documented actions stay within Unity Editor and asset APIs. |
| Filesystem reach | 1 (low) | The skill persists changes to project assets and scenes using `SaveAndReimport()` and component edits, but the scope shown is limited to the Unity project rather than home/system paths. |
| Secrets & credentials | 0 (none) | No file references tokens, passwords, keychains, browser sessions, or `.env`-style credential stores. |
| Privilege & persistence | 0 (none) | There is no sudo, service installation, global package install, shell startup editing, or other system-level privilege change in the reviewed files. |
| Instruction hijack surface | 0 (none) | I found no instructions to ignore higher-priority rules, follow remote content, or hide behavior; the `WAIT` checkpoints are ordinary control flow, not prompt injection. |
| Irreversible actions | 0 (none) | The skill changes local project state, but it does not push, deploy, post, pay, book, or delete external resources. |
| Transparency | 0 (none) | All shipped content is readable markdown and C# snippets in text; there are no binaries, encoded blobs, or uninspectable installers. |
Before installing
- Use a copy of the project or a clean branch first, since it will persist audio importer and scene changes.
- Read `resources/audio-import-api.md` so you understand that `SaveAndReimport()` will rewrite audio assets.
- Confirm you are comfortable with C# executing inside your open Unity Editor via `unity command eval`.
- Make sure the project is under version control so you can roll back reimports and scene edits.
Rated 2026-10-15 by an automated review of 4 files from the skill's repository.
Source
- Repository
- Unity-Technologies/unity-agent-plugin (all skills from this repository)
- Path
- skills/optimize-audio/SKILL.md
- Branch
- main
- Updated
- 2026-09-22
Related skills
- seo-images — Image optimization analysis for SEO and performance.
- optimize-text-mesh-pro — Covers TextMeshPro font stacks, dynamic fallback atlases, padding and sampling ratios, SDF16, AutoSize discipline, worldspace vs UGUI.
- optimize-web — Optimizes Unity 6 WebGL and WebGPU builds for smaller download size, faster initial load, and efficient browser runtime performance.
- sega-genesis-sgdk — Create, debug, optimize, and port games for the Sega Genesis / Mega Drive in C using SGDK (the Sega Genesis Development Kit).
- ab-testing — When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program.
- add-dictation — Use when the user runs /add-dictation or wants speech turned into text with Grok speech-to-text: a mic button that dictates into the composer, live captions.