# optimize-web

> Claude/Codex skill by [@unity-technologies](https://omgskills.com/library/unity-technologies/index.md) · 553 stars · Updated 2026-10-23

Optimizes Unity WebGL and WebGPU builds for smaller downloads, faster loading, and smoother browser performance. Use when asked to shrink a web build, speed up its load, or fix stutter, memory or battery problems in the browser.

## Install

```sh
git clone https://github.com/Unity-Technologies/unity-agent-plugin /tmp/unity-agent-plugin && ln -s /tmp/unity-agent-plugin/skills/optimize-web ~/.claude/skills/optimize-web
```

## From README

Important Use the unity cli (unity command --format json) and the unity-cli skill for each step. Use unity-pipeline too when it is available. Before making changes, establish a baseline of the current behavior so you can tell whether a later result is actually 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. If the changes affect runtime behavior, add Debug.Log lines that will prove the actual scene behaviour (not just your changes) is now working - you'll read these when you enter Play mode to validate later. For example, log a GameObject's Transform scale if your fix is meant to make sure it changes size. Avoid long explanations. Performance Notes Take your time to do this thoroughly. Quality is more important than speed.

## Links

- HTML page: https://omgskills.com/library/unity-technologies/unity-agent-plugin/skills/optimize-web/
- GitHub: https://github.com/Unity-Technologies/unity-agent-plugin
- Author: [@unity-technologies](https://omgskills.com/library/unity-technologies/index.md)

## More from this repo

- [audio-setup-mixers](https://omgskills.com/library/unity-technologies/unity-agent-plugin/skills/audio-setup-mixers/index.md) — Routes Audio Sources into existing Audio Mixer Groups, classifying each source by what it plays.
   - [@unity-technologies](https://omgskills.com/library/unity-technologies/index.md) · 553 stars
- [build-live-game](https://omgskills.com/library/unity-technologies/unity-agent-plugin/skills/build-live-game/index.md) — Builds and operates live games with Unity Services.
   - [@unity-technologies](https://omgskills.com/library/unity-technologies/index.md) · 553 stars
- [migrate-birp-to-urp](https://omgskills.com/library/unity-technologies/unity-agent-plugin/skills/migrate-birp-to-urp/index.md) — Plans, executes, and troubleshoots migration from the Built-in Render Pipeline to URP.
   - [@unity-technologies](https://omgskills.com/library/unity-technologies/index.md) · 553 stars
