unity-editor

unity-editor is a skill for Claude Code, Codex from Besty0728/Unity-Skills. It costs 10 tokens per session (3,319 once invoked), scanned A, original, MIT.

A set of tools for observing and controlling the Unity Editor, the application used to build Unity games. It can inspect editor and runtime state, change Play mode, run menu commands, and observe scene or file changes.

In plain words
What is it for?
Use it to inspect selected objects and editor state, drive or pause Play mode, check runtime behavior, and execute Unity menu actions.
Why use it?
It avoids having to inspect Unity's internal scene files by hand and helps an agent see what is happening in the editor.

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/besty0728/unity-skills/editor
Any agent
npx skills add Besty0728/Unity-Skills --skill editor
Clone the repo
git clone --depth 1 https://github.com/Besty0728/Unity-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-editor

README.md
[![agentmods](https://agentmods.dev/badge/skills/besty0728/unity-skills/editor.svg)](https://agentmods.dev/skills/besty0728/unity-skills/editor)
Your own site
<a href="https://agentmods.dev/skills/besty0728/unity-skills/editor"><img src="https://agentmods.dev/badge/skills/besty0728/unity-skills/editor.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,319 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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.00010 $0.03319
Opus 5 $0.00005 $0.01659
Sonnet 5 $0.00002 $0.00664
Haiku 4.5 $0.00001 $0.00332

Measured 4d ago against content hash 1a7617dbf822, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

unity-editor 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 4d 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.

SkillsForUnity/unity-skills~/skills/editor/SKILL.md · 271 lines

How it starts

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

Before calling any skill in this module: if you are about to call a skill with parameters guessed from its name or description, STOP — read this file (or fetch its schema via GET /skills/recommend?includeSchema=true) first. If you already have the parameter definitions from recommend/schema, you may proceed straight to dryRun.

Triggers

  • Reading persistent scene/file changes
  • Driving play mode
  • Inspecting runtime state
  • Executing menu items
  • 读取持久化场景/文件变更、操控 Play Mode、检查运行时状态、执行菜单项

Unity Editor Skills

Observe and control the Unity Editor without parsing scene YAML.

Operating Mode

  • Approval:本模块 Mixed —— editor_get_changes / editor_get_selection / editor_get_context / editor_get_state / editor_get_tags / editor_get_layers / editor_playmode_inspectSkillMode.SemiAuto,可直接执行;其余 editor_select / editor_undo / editor_redo / editor_playmode_step 默认 FullAuto,Approval 模式下需 grant。
  • Auto / Bypass:FullAuto 直接执行。
  • 含 NeverInSemi 高危 skilleditor_play / editor_play_capture / editor_stop / editor_pause(标 MayEnterPlayMode = true);editor_execute_menu(标 MayTriggerReload = true —— Assets/RefreshAssets/Reimport All 之类的菜单项会触发域重载)。这些在 Approval Auto 下都返 MODE_FORBIDDEN,仅 Bypass 或 Allowlist 命中可调;grant 流程对它们不适用,不要尝试。

DO NOT (common hallucinations):

  • editor_run does not exist → use editor_play to enter play mode
  • editor_compile / editor_recompile do not exist → use debug_force_recompile
  • editor_save does not exist → use editor_execute_menu with menuPath "File/Save"
  • editor_execute_menu requires exact menu path — typos cause silent failure

Routing:

  • For compilation check → use debug module's debug_check_compilation
  • For console errors → use debug module's debug_get_errors
  • For scene save → scene_save (scene module) or editor_execute_menu menuPath="File/Save"
  • When file watching reports changes, or the AI resumes after the user edited Unity → call editor_get_changes before reading .unity YAML
  • If editor_get_changes.dropped=true → its 500-entry retention window was exceeded; rebuild context with scene_context / scene_diff

Read the full file on GitHub · 271 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. 4d ago First seen · 271 lines · 10 tokens per session scan A 1a7617dbf822

Subscribe to this mod's changes

unity-editor is a skill published in the GitHub repository Besty0728/Unity-Skills (1,698 stars, last pushed today), licensed MIT. It adds 10 tokens to every session and 3,319 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

hatch-pet-v1

Create, repair, validate, preview, and package legacy Codex v1 animated pet spritesheets from character art, screenshots, generated images, or visual references. Use when a project requires the 8x9, 1536x1872 pet contract with transparent unused cells, row-by-row animation prompts, QA contact sheets, preview videos…

legeling/awesome-codex-pet · 107 tokens

16-marketing-psychology-global

Use when persuasion principles have to be applied to a specific asset — reciprocity, scarcity, authority, social proof, liking, commitment, and unity mapped onto copy, a landing page, an email, or an ad, each with a hypothesis and a test plan. Trigger on 'marketing psychology', 'Cialdini', 'persuasion principles'…

minhnv0807/ai-business-skills · 163 tokens

new-littlejs-game

Scaffold a brand-new, complete playable game project — LittleJS engine included, opens straight from disk in a browser with no server, smallest playable loop written for you. TRIGGER on ANY request to make/create/start/build a game when no other engine or framework is named — "make me a pong game", "make a breakout…

KilledByAPixel/LittleJS-AI · 211 tokens

littlejs-conventions

LittleJS game engine (littlejsengine) conventions — REQUIRED before answering, writing, editing, reviewing, or debugging ANY LittleJS code, including one-line questions about a snippet. TRIGGER whenever "LittleJS" appears, or the code uses…

KilledByAPixel/LittleJS-AI · 214 tokens

atlas-shape-art

Use when a LittleJS game's visuals are geometric/abstract/neon shapes or it has many round entities (orbs, gems, bubbles, asteroids, particles, stars), OR when speeding up a game that calls many drawCircle/drawEllipse/drawPoly/drawRegularPoly per frame. Renders shapes as tinted atlas tiles instead.

KilledByAPixel/LittleJS-AI · 73 tokens

dotcraft-unity

Use when dotcraft-unity MCP or unityexecutecsharp is available, or when the user asks to inspect, automate, capture, or debug Unity Editor state, scenes, assets, Console logs, or GameView output. Provides background-first Unity Editor automation rules.

DotHarness/dotcraft-unity · 58 tokens