Skills Explorer Add Skills

optimize-web

An agent skill by Unity-Technologies, from Unity-Technologies/unity-agent-plugin. Tags: build-tool, cdn, optimization, performance, web.

What it does

Optimizes Unity 6 WebGL and WebGPU builds for smaller download size, faster initial load, and efficient browser runtime performance. Use when the user's web build is too large, stutters in a specific browser, consumes excessive battery, needs CDN/server compression configured, or needs guidance on resource stripping, shader variant reduction, KTX textures, quality settings, or web profiling.

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-web

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-web ~/.claude/skills/optimize-web

Safety box score

Grade C, moderate risk: 18 of 100 risk points, rated 2026-10-20. 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 optimizes Unity WebGL/WebGPU projects by reading and writing Player Settings from a live Unity Editor and by shipping an editor script that applies a bundle of release settings. The main risks are that it can execute C# inside the open Editor and persist project-setting changes; the only network exposure is incidental, via an example `npx` dev-server command.

Category levels, from 0 (none) to 3 (high)
CategoryLevelWhy
Code & shell execution3 (high)It explicitly runs C# in the live Editor with `unity command eval --caller plugin --skill optimize-web --code '<snippet>'`, and ships `resources/WebOptimizer.cs` as an executable `[MenuItem]` editor script.
Network access1 (low)The skill itself does not exfiltrate data, but it includes an example local-server command `npx serve path/to/build -l 3001`, which can fetch a package from the npm registry if not already installed.
Filesystem reach1 (low)It writes persistent Unity project state under `Assets/Editor/` and `ProjectSettings/`, and the shipped script also saves `Library/EditorUserBuildSettings.asset` via `AssetDatabase.SaveAssets()`.
Secrets & credentials0 (none)There is no instruction to read or request tokens, passwords, `.env` files, keychains, or browser sessions.
Privilege & persistence0 (none)No sudo, global installs, services, scheduled tasks, or OS-level settings changes are required.
Instruction hijack surface0 (none)The files do not contain prompt-injection content or instructions to ignore safeguards or follow remote instructions.
Irreversible actions0 (none)It does not publish, post, deploy, pay, book, or delete; it only tunes local Unity build settings.
Transparency0 (none)All shipped files are readable text; there are no binaries, encoded blobs, or opaque installers.

Before installing

Rated 2026-10-20 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-web/SKILL.md
Branch
main
Updated
2026-09-22