Install
$ agentstack add skill-bigdra50-unity-cli-unity-api ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
unity-api
> PREREQUISITE: ../unity-shared/SKILL.md(Relay Server 経由で Unity Editor が起動/アクティブであること) > > skill 経由のコマンドは必ず -i を付ける (unity-shared #インスタンス指定)。--offline オプションのみ Relay 不要 = -i 不要。
メソッド検索
u -i api schema --type AssetDatabase # 型名でフィルタ
u -i api schema --namespace UnityEditor # 名前空間でフィルタ
u -i api schema --method Refresh # メソッド名で検索
u api schema --offline --type PlayerSettings # キャッシュから (Relay 不要なので -i 不要)
メソッド呼び出し
u -i api call UnityEngine.Application get_unityVersion
u -i api call UnityEditor.AssetDatabase Refresh
u -i api call UnityEditor.AssetDatabase ImportAsset --params '["Assets/Prefabs/Player.prefab", 0]'
u -i api call UnityEditor.EditorApplication ExecuteMenuItem --params '["Window/General/Console"]'
よく使うパターン
| 用途 | コマンド | |------|---------| | プロジェクト設定 | u -i api call UnityEditor.PlayerSettings get_productName | | コンパイル状態 | u -i api call UnityEditor.EditorApplication get_isCompiling | | アセット存在確認 | u -i api call UnityEditor.AssetDatabase AssetPathExists --params '["Assets/..."]' | | フォルダ作成 | u -i api call UnityEditor.AssetDatabase CreateFolder --params '["Assets", "New"]' | | メニュー実行 | u -i api call UnityEditor.EditorApplication ExecuteMenuItem --params '["Tools/..."]' |
制約
- static メソッドのみ
- 引数: プリミティブ, string, enum, プリミティブ配列
- UnityEngine / UnityEditor 名前空間のみ
- [Obsolete] メソッドは除外済み
既存コマンドとの使い分け
既存コマンド (u scene, u build 等) がある操作はそちらを使う。u api は既存コマンドがカバーしない操作のためのフォールバック。
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: bigdra50
- Source: bigdra50/unity-cli
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.