unity-api

unity-api is a skill for Claude Code from bigdra50/unity-cli. It costs 68 tokens per session (725 once invoked), scanned A, original, MIT.

A workflow for searching and calling Unity’s public programming interface, or API—the collection of functions exposed by Unity. It uses commands to find available methods and run them, including methods not covered by other tools.

In plain words
What is it for?
Use it to search Unity API methods, check project settings or compilation state, inspect assets, refresh the asset database, and call other public Unity methods.
Why use it?
It provides a fallback when a Unity task does not have a dedicated command, while allowing developers to inspect what API methods are available.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: built for openclaw.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **PREREQUISITE:** `../unity-shared/SKILL.md`(Relay Server 経由で Unity Editor が起動/アクティブであること).

Part of the unity-cli plugin — 9 skills, 1 hook shipped together

Good fit Use it to search Unity API methods, check project settings or compilation state, inspect assets, refresh the asset database, and call other public Unity methods.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/bigdra50/unity-cli
agentmods
npx agentmods add skills/bigdra50/unity-cli/unity-api

Made for: Claude Code.

Or install unity-cli, the plugin that ships this one along with the rest of its 9 skills, 1 hook.

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-api

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/bigdra50/unity-cli/unity-api"><img src="https://agentmods.dev/badge/skills/bigdra50/unity-cli/unity-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 725 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 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.00068 $0.00725
Opus 5.5 $0.00027 $0.00290
Sonnet 5.5 $0.00014 $0.00145
Haiku 4.5 $0.00007 $0.00072

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

Security

Grade A, and why

unity-api 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 2mo 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.

skills/unity-api/SKILL.md · 61 lines

What it actually says

unity-api

PREREQUISITE: ../unity-shared/SKILL.md(Relay Server 経由で Unity Editor が起動/アクティブであること)

skill 経由のコマンドは必ず -i <instance> を付ける (unity-shared #インスタンス指定)。--offline オプションのみ Relay 不要 = -i 不要。

メソッド検索

u -i <instance> api schema --type AssetDatabase          # 型名でフィルタ
u -i <instance> api schema --namespace UnityEditor       # 名前空間でフィルタ
u -i <instance> api schema --method Refresh              # メソッド名で検索
u api schema --offline --type PlayerSettings              # キャッシュから (Relay 不要なので -i 不要)

メソッド呼び出し

u -i <instance> api call UnityEngine.Application get_unityVersion
u -i <instance> api call UnityEditor.AssetDatabase Refresh
u -i <instance> api call UnityEditor.AssetDatabase ImportAsset --params '["Assets/Prefabs/Player.prefab", 0]'
u -i <instance> api call UnityEditor.EditorApplication ExecuteMenuItem --params '["Window/General/Console"]'

よく使うパターン

用途 コマンド
プロジェクト設定 u -i <instance> api call UnityEditor.PlayerSettings get_productName
コンパイル状態 u -i <instance> api call UnityEditor.EditorApplication get_isCompiling
アセット存在確認 u -i <instance> api call UnityEditor.AssetDatabase AssetPathExists --params '["Assets/..."]'
フォルダ作成 u -i <instance> api call UnityEditor.AssetDatabase CreateFolder --params '["Assets", "New"]'
メニュー実行 u -i <instance> api call UnityEditor.EditorApplication ExecuteMenuItem --params '["Tools/..."]'

制約

  • static メソッドのみ
  • 引数: プリミティブ, string, enum, プリミティブ配列
  • UnityEngine / UnityEditor 名前空間のみ
  • [Obsolete] メソッドは除外済み

既存コマンドとの使い分け

既存コマンド (u scene, u build 等) がある操作はそちらを使う。u api は既存コマンドがカバーしない操作のためのフォールバック。

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. 2mo ago First seen · 61 lines · 68 tokens per session scan A 46d36a4ff4fd

Subscribe to this mod's changes

unity-api is a skill published in the GitHub repository bigdra50/unity-cli (39 stars, last pushed 4mo ago), licensed MIT. It adds 68 tokens to every session and 725 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

uloop-get-project-info

Get Unity project information via uloop CLI. Use when you need to check project settings, Unity version, platform, or other project metadata.

hatayama/unity-cli-loop · 34 tokens

aibridge-prefab-patch

Unity Prefab asset patch workflow for AIBridge. Use when modifying complex prefab assets with prefab patch operations, child or component creation, SerializedProperty writes, array edits, internal GameObject/component references, dry-run validation, or when deciding between prefab patch, inspector setproperty, scene…

liyingsong99/AIBridge · 72 tokens

aibridge

Unity Editor and Player Runtime CLI integration for AIBridge. Use for harness snapshot reads, Unity compile/logs/assets/scenes/prefabs/Inspector, screenshots/GIFs, Play Mode input, Runtime Player targets, focus/menu/game view, or AIBridgeCLI syntax. Route batch/multi, complex prefab patching, and direct UnityYAML…

liyingsong99/AIBridge · 79 tokens

aibridge-code-index

Optional read-only AIBridge Code Index lightweight lookup for Unity C# declaration names. Use only when Root Rule declares Code Index enabled and this Skill is installed. Map declaration names to files or positions. Do not use for references, callers, implementations, derived types, diagnostics, comments, strings, or…

liyingsong99/AIBridge · 70 tokens

aibridge-development-workflow

A development workflow guide for projects built with Unity, a game and interactive-app engine. It routes coding, asset changes, debugging, reviews, and validation through project-specific rules and checks.

liyingsong99/AIBridge · 86 tokens

aibridge-workflow-orchestration

AIBridge workflow and multi-agent orchestration guidance. Use when Codex needs to design, review, or execute a multi-agent workflow plan, split Unity work into parallel or pipeline agent roles, define structured workflow artifacts, choose between batch/multi automation and agent orchestration, run adversarial…

liyingsong99/AIBridge · 86 tokens