This skill helps an agent shrink a Unity player build that is over a size limit. It first pins which file is limited (a Web build file, an Android download, an iOS thinned size or a Steam patch), then measures what ships with a Build Report summary and a project checker, fixes the biggest category first and proves the result by rebuilding.
Two read-only Python scripts do the measuring. A reference covers glTFast models whose embedded images ship uncompressed, with two fixes, and per-platform references cover Web, Android, iOS and desktop or Steam.
What You Get
- A five-step loop: pin the limited file, measure, find causes, fix the biggest category, rebuild and compare
- A Build Report summarizer that lists categories and the largest assets and can fail a CI job over a budget
- A project checker that names files, settings, estimated cost and a fix line, with a platform flag
- References for glTF textures and for Web, Android, iOS and desktop or Steam size limits, plus an editor script for bulk texture limits
Common Use Cases
- Getting a WebGL build under an itch.io per-file limit
- Cutting an Android download size reported by Google Play
- Finding glTF or GLB models that carry huge uncompressed textures
- Failing a CI job when the uncompressed build passes a budget
What Makes It Unique
The skill starts by asking which size is limited and records a baseline, so effort goes to the number that matters. It finds a cause many texture checks miss: images embedded in glTF models bypass the Texture Importer, and the reference gives measured size tables and two fixes, including the sRGB step for moved textures.
Under The Hood
The agent loads the SKILL.md and reads only the platform reference that matches the target. It runs two Python scripts with the standard library: one parses the Unity Editor log for the last Build Report, and one scans the project’s meta files and models for size problems; both are read-only. The checker mentions git commands such as a Git LFS pull and a git move only in the fix lines it prints, so the agent decides whether to run them. It may run the optional Unity command line tool to build and keep a log, and the skill shows commands that fetch and run the glTF Transform tool through npx from the npm registry, which rewrites model files, so it asks you to commit first. It can add an editor script that changes texture import settings. Documentation links are named for re-checking.