unity-optimization

unity-optimization is a skill for Claude Code, Codex from batihandev/unity-mcp-skills. It costs 18 tokens per session (1,400 once invoked), scanned A, a copy of unity-optimization, MIT.

Unity project optimization tools for reducing the size or cost of textures and 3D models. Unity is a tool for building games and interactive 3D applications.

In plain words
What is it for?
Use them to optimize textures and meshes, find large assets, find duplicate materials, and configure level-of-detail groups or static batching settings.
Why use it?
They help identify and change asset settings that can make a game load slowly or run poorly. Results should be reviewed before applying changes in bulk.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use them to optimize textures and meshes, find large assets, find duplicate materials, and configure level-of-detail groups or static batching settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/batihandev/unity-mcp-skills/optimization
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add batihandev/unity-mcp-skills --skill optimization
Clone the repo
git clone --depth 1 https://github.com/batihandev/unity-mcp-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for unity-optimization

README.md
[![agentmods](https://agentmods.dev/badge/skills/batihandev/unity-mcp-skills/optimization/github.svg)](https://agentmods.dev/skills/batihandev/unity-mcp-skills/optimization)
Your own site
<a href="https://agentmods.dev/skills/batihandev/unity-mcp-skills/optimization"><img src="https://agentmods.dev/badge/skills/batihandev/unity-mcp-skills/optimization/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for unity-optimization

Your own site · 80×15
<a href="https://agentmods.dev/skills/batihandev/unity-mcp-skills/optimization"><img src="https://agentmods.dev/badge/skills/batihandev/unity-mcp-skills/optimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,400 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 89% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.01400
Opus 5.5 $0.00007 $0.00560
Sonnet 5.5 $0.00004 $0.00280
Haiku 4.5 $0.00002 $0.00140

Measured 1mo ago against content hash 3c99d957388e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

unity-optimization scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

89% identical to unity-optimization — 30 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/optimization/SKILL.md · 139 lines

How it starts

The opening of the file, as written. The whole thing — 139 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Optimization Skills

Overview

Optimize project assets (Textures, Models).

Common Mistakes

DO NOT (common hallucinations):

  • optimize_scene / optimization_run do not exist → use specific skills: optimize_analyze_scene, optimize_find_large_assets, optimize_find_duplicate_materials, etc.
  • optimize_compress / optimize_compress_textures / optimize_compress_meshes / optimize_compress_audio do not exist → use optimize_textures (textures), optimize_mesh_compression (meshes), optimize_audio_compression (audio)
  • optimize_set_lod / optimize_setup_lod do not exist → use optimize_set_lod_group
  • Optimization skills are analysis + action tools — always review results before applying batch changes

Routing:

  • For profiler metrics → use native Unity_Profiler_* tools (see ../../mcp-tools.md)
  • For static batching flags → optimize_set_static_flags (this module)

Skills

optimize_textures

Optimize texture settings (maxSize, compression). Returns list of modified textures.

Parameter Type Required Default Description
maxTextureSize int No 2048 Max texture size
enableCrunch bool No true Enable crunch compression
compressionQuality int No 50 Compression quality 0-100
filter string No "" Asset filter

Returns: { success, count, message, modified }

optimize_mesh_compression

Set mesh compression for 3D models.

Parameter Type Required Default Description
compressionLevel string No "Medium" Compression level: Off/Low/Medium/High
filter string No "" Asset filter

Returns: { success, count, compression, modified }

optimize_analyze_scene

Analyze scene for performance bottlenecks (high-poly meshes, excessive materials).

Parameter Type Required Default Description
polyThreshold int No 10000 Triangle count threshold for high-poly warning
materialThreshold int No 5 Material slot count threshold for excessive materials warning

Read the full file on GitHub · 139 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 139 lines · 18 tokens per session scan A 3c99d957388e

Subscribe to this mod's changes

unity-optimization is a skill published in the GitHub repository batihandev/unity-mcp-skills (6 stars, last pushed 12d ago), licensed MIT. It adds 18 tokens to every session and 1,400 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 89% identical to unity-optimization, differing in 30 lines, and is treated as a copy.

Related

Other skills, from other repositories

unity-csharp

A set of practical guidelines for writing Unity game scripts in C#. Unity is a game engine, and these rules cover its update loop, object lifetime, memory cleanup, coroutines, and editable data.

Wade-DevCode/awesome-coding-skills-cn · 28 tokens

script-execute

Compiles and runs C# in the Unity Editor (Roslyn): plain statements with the last expression as the result, or a full class with a static method. See the skill body for the modes, usings/include and Unity object parameters.

IvanMurzak/Unity-MCP · 53 tokens

pufferlib

This skill should be used when working with reinforcement learning tasks including high-performance RL training, custom environment development, vectorized parallel simulation, multi-agent systems, or integration with existing RL environments (Gymnasium, PettingZoo, Atari, Procgen, etc.). Use this skill for…

foryourhealth111-pixel/Vibe-Skills · 83 tokens

script-update-or-create

Write a .cs script file (create or overwrite) with the provided C# code. Validates syntax via Roslyn before write — invalid code is rejected with error details and the file is left untouched. Refreshes the AssetDatabase and delivers the final result via requestId after Unity finishes the triggered compilation. Use…

IvanMurzak/Unity-MCP · 80 tokens

godot-csharp

Use C#/.NET in Godot 4.7: partial classes extending nodes, the PascalCase lifecycle (Ready/Process/PhysicsProcess), [Export] fields, [Signal] delegates as C# events, type-safe node lookup, and calling between C# and GDScript. Use when writing Godot game code in C# (.cs files, .csproj), needing the Godot .NET build…

gamedev-skills/awesome-gamedev-agent-skills · 108 tokens

ai-navigation

Use when implementing AI movement — NavigationAgent2D/3D, steering behaviors, behavior trees, and patrol patterns.

jame581/GodotPrompter · 26 tokens