Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

unity-pipeline

БесплатноБез исполняемых скриптовНе проверен

Controls a Unity Editor or dev Player through the com.unity.pipeline package to compile, run tests, evaluate C#, method-reload code, enter Play Mode and…

Unity-Technologiesот Unity-Technologies★ 1 342 звезды на GitHub

Об этом скилле

Unity Pipeline (agent control)

Invoke commands with unity command <group> <name> [args]. unity command lists the command groups, unity command <group> one group's commands, and --query <term> filters by name, description or tag. Two servers exist: Editor (7800-7849, auto-starts with the editor) and Runtime (7900-7949, only in a dev Player build).

Targeting the Editor

Always pass --project-path <project>, or run unity from inside the project folder. A project folder holds exactly one Editor, so this is unambiguous, needs no other flag, and reads the Editor's port and token straight from the project, with no process scan. An MPPM clone is its own project: --project-path <mainProject>/Library/VP/<vpId>.

Don't use --port, --pid or --instance unless the user asks for them. Without --project-path they search every running Editor: on Unity 6 (6000.x) that is a scan of every process, a second or more on each call; only Unity 7 Editors answer it without a scan. The CLI warns on stderr when a call had to scan.

Before you start

  • If the package is not installed, install it first (1. Install & verify).
  • Before any other workflow or diagnosis, open and read the Topic map pages for your task, and name the files you read. Your training knowledge about Unity and this package may be out of date, incorrect, or for the wrong version.
  • Read only .md files in the installed package's Documentation~ folder, or the live pages for its version, as the Topic map describes.
  • Create a restore point you can roll back to if your changes fail, such as a git commit or stash.
  • Do only what's asked. Don't change unrelated assets or files. Avoid long explanations.
  • Never leave verification code in the user's script. Never build logging or detection they didn't ask for.

1. Install & verify

unity pipeline install            # install into current project (or --project-path)
unity pipeline editors            # list Editor instances and their Pipeline status
unity status --until-ready        # wait until the editor server is ready
unity command editor status       # confirm the editor server answers

An Editor that was already open picks up the package only on its next refresh, usually when its window regains focus. Until then unity status reports STATUS_PIPELINE_LOAD_PENDING; if that persists, ask the user to switch to the Unity Editor window, then re-run unity status --until-ready.

2. Autonomous edit loop (Editor)

This is the core agent workflow: keep the editor alive, change code, recompile, test.

# 1. Keep the editor ticking when unfocused or minimized; otherwise Unity throttles update and
#    compile. It is on by default, but a session that set it explicitly keeps its own value.
unity command editor set_auto_tick --enabled true

# 2. Edit C# source files on disk normally.

# 3. Recompile (async: triggers a domain reload, then poll until done).
unity command script recompile
unity command script recompile_status    # repeat until "completed" or "up_to_date"
#   Tolerate connection errors while the domain reload is in flight — that is expected.
#   If script recompile_status reports failed=true, read its "errors" array. Fix errors in code
#   you wrote; for errors in the user's code, report them and ask before editing. Tests run on a
#   failed compile use the last assemblies that built, so their results don't cover the change.

# 4. (Optional) List available tests without running them.
unity command test list --mode editor            # mode: all | editor | playmode

# 5. Run tests (filter to keep it fast).
unity command test run --mode editor --filter MyFixture.MyTest

test run modes: editor (default) | playmode | all (both need --async-tests true). filter-type: testName | assembly | category. Use --async-tests true and poll unity command test status for long runs and any run that may reload the domain (a reload drops a synchronous run's request; abort with test cancel). A synchronous run returns one record per test, failures included, with its message and stack trace. For an async run, unity command test status --detail failures returns only the failed tests' results.

Reading exit codes. They separate "rewrite the invocation" from "the Editor failed", which is the distinction this loop depends on:

Exit Meaning What to do
2 Bad arguments — a misspelled flag, a wrong type, too many positionals. Nothing ran. Fix the command line and retry. The error names the problem and often suggests the right flag.
6 The command ran and failed, or no Editor could be reached. Read the error. If it says no Pipeline instance was found, the Editor isn't reachable: wait with unity status --until-ready (or check unity pipeline editors for Safe Mode), then retry. Otherwise retrying the same invocation will not help
Полный SKILL.md на GitHub

Установить unity-pipeline в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

SECURITY.md

FAQ

Что делает скилл unity-pipeline?

Controls a Unity Editor or dev Player through the com.unity.pipeline package to compile, run tests, evaluate C#, method-reload code, enter Play Mode and capture screenshots. Make sure to use this skill when the user asks to drive, test, debug or inspect a running Unity Editor or Player from the command line.

Как установить скилл unity-pipeline?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл unity-pipeline запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить unity-pipeline с