Skip to main content
UNI
SkillOfficialFree

Unity WebGL Optimization

/optimize-web

Optimizes Unity WebGL and WebGPU builds for smaller downloads and faster load.

GitHub stars
1,118
(repository stars as of 2026-10-21)
License
Unity Companion License
Last commit
2026/10/20
By
Unity Technologies

Part of

Unity Skills (official)

Unity's own collection of skills for AI coding agents: prompts, slash commands and tools built for Unity workflows.

Listed from the author's README. GameSkill has not run this end to end yet. Agent support and install steps are as documented by the author.

Install

Any agent (skills CLI)
npx skills add Unity-Technologies/skills --skill optimize-web

Installs only this skill. Add -a claude-code (puts it in .claude/skills/), -a codex or -a cursor (.agents/skills/) to choose the agent, and -g to install it for your user instead of the project.

Commands are copied from the project's README. Check the repository before running anything on your machine.

Install for a specific agent
Agents-aFolder
Claude Codeclaude-code.claude/skills/
Codexcodex.agents/skills/
Cursorcursor.agents/skills/
Gemini CLIgemini-cli.agents/skills/
GitHub Copilotgithub-copilot.agents/skills/
OpenCodeopencode.agents/skills/
Windsurfwindsurf.windsurf/skills/

Add -a <flag> to the command. These are project folders; add -g to install for your user account instead.

What you get

  • Worked steps: Pre-Flight; Assess Current State; Understand Request; Web Build Optimization Workflow
  • A verification step before the work is called done
  • Bundled 3 supporting files the agent reads when needed

Good fit

  • When a web build is too large or stutters, or the user asks about compression, stripping, shader variants, or web profiling

Try this prompt

Prompt
My WebGL build is 80 MB and loads slowly. Make it smaller and faster.

About this skill

Optimizes Unity WebGL and WebGPU builds for smaller downloads and faster load. Use when a web build is too large or stutters, or the user asks about compression, stripping, shader variants, or web profiling.

From the optimize-web SKILL.md in Unity-Technologies/skills.

What's inside

  • Performance Notes
  • Running C# in the Editor
  • Passing C# to eval
  • Reading the settings this skill audits
  • Applying the settings
  • Verify from disk, not from the objects you just wrote
  • Pre-Flight
  • Assess Current State
  • Understand Request
  • Web Build Optimization Workflow

Good to know

Maintained and published by Unity. Many skills drive the open Unity Editor through the Unity CLI instead of editing scene files by hand.

Requirements

  • A Unity project
  • Unity CLI (recommended: many skills drive the open Editor through it)

FAQ

More from Unity Skills (official)

See all 20

Similar skills