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

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.

agentmods
npx agentmods add skills/batihandev/unity-mcp-skills/optimization
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00018 $0.01400
Opus 5 $0.00009 $0.00700
Sonnet 5 $0.00004 $0.00280
Haiku 4.5 $0.00002 $0.00140

Measured 5d ago against content hash 3c99d957388e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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. 5d 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 (5 stars, last pushed 1mo ago), licensed MIT. It adds 18 tokens to every session and 1,400 once invoked, about $0.0001 per session on Opus 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

game-opportunity

Rankup 的小游戏机会专项 Skill。用于监测游戏平台 sitemap、发现 24 小时游戏新词、建立多语言关键词需求簇、核对 KD/SERP/近 7 天趋势/独立需求/可玩供给并生成每日决策报告;通用规则和脚本随 Rankup 提交,项目私有结果写进被 Git 忽略的 .rankup/。.

yan-labs/yan-skills · 91 tokens

hz-unity-meta-mixed-reality-utility-kit

Meta XR Mixed Reality Utility Kit (MRUK) (com.meta.xr.mrutilitykit) for Unity XR development. Use when working with Scene API data (rooms, walls, floors, furniture), spawning prefabs on scene anchors, placing virtual objects in the real world, world locking to prevent anchor drift, raycasting against room geometry…

meta-quest/agentic-tools · 136 tokens

hz-unity-meta-movement-sdk-retargeting

Set up and tweak Meta Movement SDK (MSDK) retargeting for a character model. Use this whenever the user wants to retarget a humanoid FBX/prefab for Meta Quest body tracking, generate a retargeting config, or hand-edit the resulting .json (fix known-joint mappings, exclude joints from auto-mapping, rename target…

meta-quest/agentic-tools · 182 tokens

hz-vr-debug

Debugs Meta Quest and Horizon OS VR/MR applications using the metavr CLI — view logs, capture screenshots, diagnose common issues. Use when troubleshooting crashes, errors, or unexpected behavior on Quest devices.

meta-quest/agentic-tools · 46 tokens

hz-perfetto-debug

Analyzes Meta Quest and Horizon OS VR performance using Perfetto traces — frame timing, CPU/GPU bottlenecks, render pass analysis. Use when profiling frame drops, jank, or thermal issues on Quest devices.

meta-quest/agentic-tools · 50 tokens

hz-store-submit

Guides end-to-end Meta Quest and Horizon OS app submission to the Meta Horizon Store — build validation, store-readiness checks, asset preparation, upload, and submission tracking. Use when preparing a Quest app for store publishing.

meta-quest/agentic-tools · 49 tokens