/unity-cli:unity-apifrom unity-cli
Explores and calls Unity API methods via the `u` CLI. Searches schemas, executes static methods, and serves as a fallback for operations not covered by existing Unity commands.
Ships in unity-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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/..."]' |
既存コマンド (u scene, u build 等) がある操作はそちらを使う。u api は既存コマンドがカバーしない操作のためのフォールバック。
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub bigdra50/unity-cli --plugin unity-cli9 skills in this plugin
/unity-assetアセット管理ワークフロー。依存関係調査、参照整合性チェック、パッケージ管理。
Use for: "アセット依存", "参照切れ", "パッケージ管理", "不要アセット"
/unity-buildビルドワークフロー。検証 → 設定確認 → ビルド実行 → エラー対応。
Use for: "ビルド", "ビルド実行", "プラットフォーム設定", "ビルドエラー"
/unity-debugランタイムエラー・NullReference・コンソールログの調査ワークフロー。
Use for: "エラー調査", "NullReference", "デバッグ", "コンソール確認", "ログ確認"
/unity-perfパフォーマンス計測ワークフロー。プロファイリング、GC 分析、最適化提案。
Use for: "パフォーマンス", "プロファイル", "FPS", "GC", "最適化", "ボトルネック"
Other plugins' skills for the same job