Comprehensive, production-ready Unity CLI Agent Skill for all modern AI coding harnesses (Claude Code, Cursor, Windsurf, OpenCode, VS Code Copilot, Codex, Antigravity, Cline, and more).
This skill enables AI agents to directly control a running Unity Editor via the native Unity Pipeline IPC package (com.unity.pipeline), replacing deprecated in-editor MCP servers with high-speed (200–600ms latency, zero domain reload) command execution, live C# eval, project management, batch builds, and test automation.
You can install this skill globally across your AI agent tools or locally in your project repository:
# Add globally to all detected agents (Claude Code, Cursor, Windsurf, Codex, etc.)
npx skills add DennysOliveira/unity-cli -g
# Or specifically for Claude Code CLI
npx skills add DennysOliveira/unity-cli --agent claude-code -g
# Or specifically for Cursor / Windsurf
npx skills add DennysOliveira/unity-cli --agent cursor -gcd /path/to/your/unity-workspace
npx skills add DennysOliveira/unity-cli| Capability | CLI / Pipeline Interface | Description |
|---|---|---|
| Live Editor Control | unity command, unity list, unity status |
Create/modify GameObjects, edit scenes, change transforms, add components in the active scene without YAML editing. |
| In-Memory C# Eval | unity command eval '<C#>' |
Evaluate arbitrary C# expressions and scripts inside a running Editor instance in 200–600ms without recompiling. |
| Project Creation & Templates | unity projects create, unity templates |
Scaffold new 2D, 3D, URP, HDRP, VR/AR, or Multiplayer projects with verified template packages. |
| Package & Pipeline Sync | unity pipeline install |
Install or update com.unity.pipeline for zero-configuration AI agent socket integration. |
| Batch Runs & Headless CI | unity run, unity build |
Headless execution, standalone player builds, Android signing/export, CI timeout management. |
| Test Automation | unity test |
Run EditMode and PlayMode tests with automated conversion to standard NUnit / JUnit reports. |
| Editor & Module Lifecycle | unity install, unity editors, unity install-modules |
Download, configure, and upgrade Unity Editor versions and target platform build modules. |
| Diagnostics & Recovery | unity doctor, unity logs, unity pipeline list |
Automated detection and recovery loops for Editor Safe Mode and compilation lockouts. |
The skill is modularized into dedicated reference guides to optimize context-window tokens and precision:
unity-cli/
├── SKILL.md # Main orchestrator & operational entry point
├── CHANGELOG.md # Release & deprecation tracking
├── SECURITY.md # Security & authorization standards
└── references/
├── integration-advanced.md # Live Editor driving, C# eval, Pipeline package, Safe Mode recovery
├── build-run-test.md # Headless batch, CI builds, Android keystore, test runners
├── projects-templates.md # Hub registry, project creation, cloning, custom templates
├── editors-install.md # Editor versions, modules, release feeds, installation paths
├── auth-license-cloud.md # Unity Cloud, license activation/floating, OAuth & service accounts
├── config-hub.md # Persistent CLI proxy settings, telemetry, Hub management
└── diagnostics-maintenance.md # Diagnostic logs, doctor utility, cache purging, analytics
Before modifying scene files (.unity), prefabs (.prefab), or assets (.asset), the agent checks if an Editor is live:
# 1. Check if an active Editor is connected
unity status --format json
# 2. Discover commands exposed by the project's Pipeline package
unity command
# 3. Create or manipulate GameObjects dynamically
unity command create_gameobject
unity command eval 'new UnityEngine.GameObject("ProceduralSpawner");'
unity command save_scene# List available templates for installed Editor
unity templates list --editor 6000.5.10f1
# Create a clean URP project
unity projects create MyNewGame --editor-version 6000.5.10f1 --template com.unity.template.urp-blank
# Install the Pipeline bridge
unity pipeline install --project-path ./MyNewGame
# Launch the Editor
unity open ./MyNewGameIf an Editor fails to connect, the agent diagnoses compilation issues immediately:
# Confirm Safe Mode status
unity pipeline list --format json
# Read precise compilation errors from project logs
cat ./Logs/Editor.log | grep -E "error CS"This toolkit is strictly grounded on official Unity documentation and live CLI specifications:
- Unity CLI: Replacement for in-Editor MCP Server
- Unity CLI Full Command Reference
- Unity Production Pipeline Package (
com.unity.pipeline) - Built-in binary introspection via
unity --help,unity skill, andunity doctor.
Contributions are welcome! If Unity releases new CLI commands or subcommands, feel free to open a Pull Request or issue.
- Fork the repo.
- Create your feature branch (
git checkout -b feature/new-subcommand). - Commit your changes (
git commit -m 'feat: add support for unity cloud build'). - Push to the branch (
git push origin feature/new-subcommand). - Open a Pull Request.
Distributed under the MIT License. See LICENSE for more information.