agentsclimarketplace

Unity asset

Skill bigdra50/unity-cli/skills/unity-asset

CLI tool for controlling Unity Editor via command line - Play Mode, console logs, tests, scenes, GameObjects and more

Install
npx -y skills add bigdra50/unity-cli --skill unity-asset

Assembled 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 のフォールバック順に従う:

  1. u -i <instance> api schema --type AssetDatabase で対応メソッドを検索 (107メソッド)
  2. u -i <instance> api call で実行
  3. .meta インポート設定は YAML 直接編集

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.