Unity asset
CLI tool for controlling Unity Editor via command line - Play Mode, console logs, tests, scenes, GameObjects and more
npx -y skills add bigdra50/unity-cli --skill unity-assetAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its author says it does
Copied from the file, not written here
アセット管理ワークフロー。依存関係調査、参照整合性チェック、パッケージ管理。 Use for: "アセット依存", "参照切れ", "パッケージ管理", "不要アセット"
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
1.9 KB, as published. Nobody here has run it
unity-asset
PREREQUISITE:
../unity-shared/SKILL.md(Relay Server 経由で Unity Editor が起動/アクティブであること)skill 経由のコマンドは必ず
-i <instance>を付ける (unity-shared #インスタンス指定)。
調査フロー
1. アセット情報 u -i <instance> asset info <path>
2. 依存関係 u -i <instance> asset deps <path>
3. 参照元 u -i <instance> asset refs <path>
4. 問題検出 → 修正 → /unity-verify
コマンド
アセット操作
u -i <instance> asset info "Assets/Prefabs/Player.prefab" # 基本情報
u -i <instance> asset deps "Assets/Prefabs/Player.prefab" # 依存先一覧
u -i <instance> asset refs "Assets/Prefabs/Player.prefab" # 参照元一覧
u -i <instance> asset prefab "Assets/Prefabs/X.prefab" --target "X" # Prefab 化
u -i <instance> asset scriptable-object "Assets/Data/Config.asset" --type "GameConfig"
パッケージ管理
u -i <instance> package list # インストール済みパッケージ
u -i <instance> package add com.unity.inputsystem # 追加
u -i <instance> package remove com.unity.inputsystem # 削除
CLI 非対応操作
unity-shared のフォールバック順に従う:
u -i <instance> api schema --type AssetDatabaseで対応メソッドを検索 (107メソッド)u -i <instance> api callで実行- .meta インポート設定は YAML 直接編集