Skip to main content
skill CX Codex

optimize-audio — Claude Code skill: audio checks and setup

This skill audits Unity audio settings and guides changes for memory use, mixer CPU load, and 3D playback issues. It reports findings before making edits.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add Unity-Technologies/skills --skill optimize-audio -a claude-code
Open on GitHub

What optimize-audio does

The skill checks the build target, output sample rate, mixer assets, and AudioListener count, then gathers AudioSource and mixer details. It routes the investigation toward clip import settings, spatial audio, mixer overhead, or compression quality. Separate paths cover mobile sample-rate changes and streaming.

It runs C# through the Unity CLI in a live Editor, using unity command eval --code '<snippet>'. The command catalog must include eval; otherwise, the workflow stops. The skill presents its assessment and waits for the user before changing anything. Editor statistics are only indicative, so the result must be checked in a device build.

Import settings cannot be changed by editing .meta files directly. They take effect through SaveAndReimport() in the Editor, so an unreachable Editor blocks that workflow.

What it helps with

  • reduce memory used by audio clips
  • investigate DSP spikes and Audio Mixer CPU load
  • fix stereo playback on positioned 3D audio
  • audit audio clip import settings
  • trace artifacts in compressed audio

Example prompts for the agent

  • Check why audio uses so much memory in this Unity build.
  • Find the cause of Audio Mixer CPU spikes and show me the assessment before changing anything.
  • Check stereo clips used with 3D positioning and recommend mono settings.

How to install optimize-audio

1Skills CLI (Vercel)

npx skills add Unity-Technologies/skills --skill optimize-audio -a claude-code

2Manually: put the files in place

~/.claude/skills/optimize-audio/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/optimize-audio/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about optimize-audio

How do I install optimize-audio in Claude Code?

Run npx skills add Unity-Technologies/skills --skill optimize-audio -a claude-code. The skill file is at ~/.claude/skills/optimize-audio/SKILL.md.

What does optimize-audio do?

It inspects Unity's audio setup and guides changes to clip imports or the mixer when investigating memory use, CPU load, or playback problems. It reports its findings and waits for approval before editing.

What does optimize-audio need to run?

It needs a Unity Editor reachable through the Unity CLI, with eval available in the command catalog. Import changes are applied in the Editor with SaveAndReimport(), and results must be checked in a device build.

Similar skills

Everything for Game dev and 3D: Unity, Unreal, Godot, Blender →

From the same set28

urp-postprocessing Walks an agent through URP post-processing with the Volume framework: bloom, tonemapping, color adjustments, depth of field, vignette. Useful when an effect never shows up. CX Codex +1 5,800installs optimize-text-mesh-pro Walks through TextMeshPro problems in Unity: bloated atlases, fuzzy glyphs, CPU spikes on text updates, build size. CX Codex +1 5,700installs implement-in-app-purchases Configures Unity In-App Purchasing v5, handles receipt validation, and guides migrations from native store billing or third-party SDKs. CX Codex +1 5,800installs shader-graph-create-custom-node Generates custom Shader Graph nodes directly from HLSL functions. It handles reflection markup so Unity registers your shader code in the graph creation menu. CX Codex +1 5,600installs sprite-editor Rewrites Unity sprite rects, borders, pivots and slicing by generating C# snippets that run inside a live Editor. CX Codex +1 5,600installs localization Configures the Unity Localization package in your project. It sets up String and Asset Tables, configures locales, and binds text to UI components. CX Codex +1 5,500installs validate-urp-render-graph-renderer-feature Reviews a Unity 6 URP ScriptableRendererFeature built on the Render Graph API: material binding, resource wiring, pass structure. Useful before you merge the feature. CX Codex +1 5,600installs initialize-ai-navigation Sets up Unity AI Navigation components for NavMesh pathfinding, patrols, links, and obstacle avoidance. Use it when a scene needs navigable agents or route troubleshooting. CX Codex +1 5,400installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor