unity-cli-loop: Skill for Claude Code

.agents/skills/uloop-execute-dynamic-code/SKILL.md

uloop-execute-dynamic-code is a skill for Claude Code, Codex from hatayama/unity-cli-loop. It costs 43 tokens per session (1,741 once invoked), scanned A, original, MIT.

A Unity command that runs custom C# code with access to Unity's editor and project APIs. C# is the programming language commonly used for Unity projects.

In plain words
What is it for?
Use it to automate scenes, prefabs, serialized properties, asset database refreshes, metadata-file creation, editor menus, or Play Mode tasks. It accepts short inline code or a C# script file.
Why use it?
Built-in commands may not expose enough of a scene, prefab, asset, menu, or Play Mode workflow. Custom code can inspect or change those parts when needed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is hatayama/unity-cli-loop's own configuration. It tells Claude Code and Codex how to work on unity-cli-loop itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything unity-cli-loop configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hatayama/unity-cli-loop. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/hatayama/unity-cli-loop/main/.agents/skills/uloop-execute-dynamic-code/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/hatayama/unity-cli-loop

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 uloop-execute-dynamic-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/hatayama/unity-cli-loop/uloop-execute-dynamic-code/github.svg)](https://agentmods.dev/skills/hatayama/unity-cli-loop/uloop-execute-dynamic-code)
Your own site
<a href="https://agentmods.dev/skills/hatayama/unity-cli-loop/uloop-execute-dynamic-code"><img src="https://agentmods.dev/badge/skills/hatayama/unity-cli-loop/uloop-execute-dynamic-code/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 uloop-execute-dynamic-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/hatayama/unity-cli-loop/uloop-execute-dynamic-code"><img src="https://agentmods.dev/badge/skills/hatayama/unity-cli-loop/uloop-execute-dynamic-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,741 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00043 $0.01741
Opus 5.5 $0.00017 $0.00696
Sonnet 5.5 $0.00009 $0.00348
Haiku 4.5 $0.00004 $0.00174

Measured 15d ago against content hash 76eed2ece953, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

uloop-execute-dynamic-code 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 15d 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.

.agents/skills/uloop-execute-dynamic-code/SKILL.md · 91 lines

How it starts

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

Task

Run focused C# snippets in the active Unity Editor with uloop execute-dynamic-code.

For basic selected GameObject discovery or property inspection, use find-game-objects --search-mode selected first. Use this tool when the built-in inspection tools are not enough or when you need to modify Unity state.

This tool can inspect reachable Unity state — GameObjects, components, public properties, static values, method results — but it cannot read local variables or intermediate calculations inside an already-running method. When those values matter, follow the uloop-pause-point skill: a pause point's CapturedVariables carries the locals, parameters, and instance fields at that line with no code edit or recompile, and while Unity stays paused UloopPausePoint.TryGetCapturedValue(name) gives this tool live captured references (it returns (bool Found, object Value); see its references/captured-variables.md). That skill also covers the reverse combination — registering an EditorApplication.update watcher from this tool that freezes Unity on the first frame a runtime condition holds. Never poll or sleep inside a snippet: the body runs on the main thread, and a long await keeps other tool commands BUSY — pass ct (see references/cancellation.md).

Live state injection: when a running PlayMode session is merely in the wrong state — a stuck end-to-end scenario, a camera angle a raycast can never hit, a private flag blocking the path under test — fix the state instead of the code: write the field directly from this tool (reflection reaches private fields) and steer the session onward. Nothing recompiles or reloads, so the session's in-memory state survives. The snippet is a one-off diagnostic that never lands in source files, so project rules against reflection in production code do not apply.

Parameters

Parameter Type Default Description
--code string - Inline C# statements to execute. Direct statements only; return is optional, and using directives may appear at the top of the snippet.
--parameters object - Shell-quoted JSON object literal for reusing a snippet with varying data or keeping values outside the code. Values are exposed as parameters["param0"], parameters["param1"], and so on. Omit for most snippets; never pass a JSON string value.
--wait-for-domain-reload flag - Wait for Domain Reload recovery after snippets that intentionally trigger Unity script reload or import work. Omit for normal inspection and editor-state workflows.
--yield-to-foreground-requests flag - Allow foreground requests to preempt this execution

Read the full file on GitHub · 91 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 15d ago Changed 76eed2ece953
  2. 25d ago Changed c16b512c26e5
  3. 1mo ago Changed 50494ba52f63
  4. 1mo ago Changed 536d64addf8f
  5. 1mo ago Changed · +2 lines 1b05f24feda9
  6. 1mo ago Changed 940bbda1637d
  7. 1mo ago Changed · +1 lines · -5 tokens per session 9e7ddefb9414
  8. 2mo ago First seen · 88 lines · 48 tokens per session scan A f4098e45a6a5

Subscribe to this mod's changes

uloop-execute-dynamic-code is a skill published in the GitHub repository hatayama/unity-cli-loop (586 stars, last pushed 2d ago), licensed MIT. It adds 43 tokens to every session and 1,741 once invoked, about $0.0002 per session on Opus 5.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.