BU

besty0728/unity-skills

Developer tools
1.9K stars Quality 71 Trend 50MIT

AI automation skills specifically designed for Unity

Overview

REST API-based AI-driven Unity Editor Automation Engine Let AI control Unity scenes directly through Skills The current official maintenance baseline is . Some Unity 2021 compatibility logic may still remain in the codebase, but future feature work, regression testing, and adaptation will focus on . This project is a deep refactoring and feature extension based on the excellent concept of unity-mcp. - 🛠️ : Includes 51 functional source modules plus 19 advisory design modules, with Batch operations for multi-object control. - ⚡ : Schema caching + exponential backoff polling + BATCH-FIRST guidance → , . Current: v2.1.0. - 🔐 : Approval / Auto / Bypass with dual approval channels (Dialog / Panel), aligned with Claude Code permission modes; zero-impact upgrade for existing users. - 🤖 : Claude Code / Antigravity / Codex / Cursor — one-click install and use. - 🛡️ : Failed operations auto-rollback, leaving scenes clean and safe.

README

🎮 UnitySkills

REST API-based AI-driven Unity Editor Automation Engine Let AI control Unity scenes directly through Skills

🎉 We are now indexed by DeepWiki! Got questions? Check out the AI-generated docs →

The current official maintenance baseline is Unity 2022.3+. Some Unity 2021 compatibility logic may still remain in the codebase, but future feature work, regression testing, and adaptation will focus on 2022.3+ / Unity 6.

💖 Sponsors

Become a sponsor →

📈 Project Contribution Rankings

🤝 Acknowledgments

This project is a deep refactoring and feature extension based on the excellent concept of unity-mcp.


🚀 Core Features

  • 🛠️ 839 REST Skills Toolkit: 56 source files across 54 categories, plus 29 advisory design modules, with Batch operations.
  • ⚡ UnityCLI Support: Bind UnityCLI to cold-start the bound project — no need to launch Unity Hub.
  • 🔐 Three-Tier Permission Modes: Approval / Auto / Bypass with dual approval channels, aligned with Claude Code permission modes.
  • 🤖 6 Major IDEs Native Support: Claude Code / Antigravity / Codex / Cursor / OpenCode / Kimi Code — one-click install and use.
  • 🛡️ Transactional Atomicity: Failed operations auto-rollback, leaving scenes clean.
  • 🌍 Multi-Instance Control: Automatic port discovery and global registry for controlling multiple Unity projects at once.
  • 🔗 Stable Long Connections: Configurable request timeout (default 15 minutes), automatic recovery after Domain Reload.
  • 🛡️ Anti-Hallucination Guardrails: Each Skill module includes DO NOT lists and routing rules.

🛡️ Built for Trust: The Governance Layer

An AI driving the Editor writes to real scenes, prefabs and .meta files. The interesting question isn’t whether it can — it’s what happens when it gets something wrong. UnitySkills answers that at four points in the call lifecycle:

  • Before execution: ?mode=dryRun / ?mode=plan rehearsal — returns parameter validation and an impact estimate, writes nothing.
  • At execution: the server derives high-risk gating (NeverInSemi) from each skill’s risk metadata — gating never depends on the AI behaving well; Allowlist grants a persistent per-skill pass.
  • After execution: every call, grant, revoke and blocked hit lands in a JSONL audit trail, browsable in the panel; deletions are audited too.
  • After a mistake: five types of persistent snapshots survive Domain Reloads; workflow_undo_task rolls back one task, not the whole project; POST /skills/batch runs as a transaction (cross-step $ref, rollback on failure, ?diff=1 net change).

Full mechanics → Operating Modes & Governance

How this compares

Dimension UnitySkills Typical MCP bridge Unity’s official AI Assistant
Permission granularity Per-operation: three modes (Approval / Auto / Bypass) + risk metadata on every skill + per-skill Allowlist No permission model — once connected, the whole tool surface is callable Per-client trust (Pending Connections → Allow / Revoke); after approval, calls are not distinguished by operation
Audit Structured JSONL for every call / grant / revoke / block, browsable in-panel; deletions are audited too Process logs only; no structured per-call record Surfaced as chat history and checkpoints rather than a per-operation audit record
Rollback granularity Per-task, five snapshot types, file and .meta content-addressed, persists across sessions Relies on Unity’s native Undo stack; not guaranteed to survive a Domain Reload Project-wide checkpoints taken per prompt — restoring rewinds the entire project to that point
Pre-execution preview ?mode=dryRun / ?mode=plan — semantic parameter validation + impact estimate, nothing written No equivalent found No pre-execution parameter validation or impact preview found
Batch transactions POST /skills/batch — fail-fast / continueOnError, cross-step $ref, rollback, ?diff=1 net change Per-call tool invocations, no transaction semantics Not exposed as a batch transaction

The UnitySkills column describes mechanisms that exist in this repository and can be checked against the source or by calling the endpoints. The other two columns reflect public material and open-source repositories surveyed in 2026-07; they characterise a class of tooling rather than any specific project, and those capabilities may have changed since.


🔐 Operating Modes

UnitySkills ships with a true server-side permission system aligned with Claude Code permission modes. All mode switching happens in the Unity panel: Window > UnitySkills → ⚙ Settings → Server section (chat trigger words are no longer supported).

Mode Default Behavior
Approval — Server returns a grant token; the AI executes after user approval
Auto New installs FullAuto skills run directly; high-risk ops (NeverInSemi) are auto-blocked
Bypass Existing installs (upgrade) All skills run unrestricted; only the optional high-risk confirmation gate remains

Upgrading users are detected automatically and stay on Bypass, preserving the previous Full-Auto behavior with no action required. Dual approval channels (Dialog / Panel), the audit log (Library/UnitySkillsAudit.jsonl), Allowlist and installer details → Operating Modes & Governance.

29 advisory design modules (architecture, performance, design patterns, testability, package-specific source rules, etc.) are available in all modes and loaded on demand.


🏗️ Quick Install Supported IDE/Terminals

This project has been deeply optimized for the following environments (tools not listed are not necessarily unsupported — they just lack a quick installer; use Custom Installation instead. Per-tool skill directories are listed in the Manual Installation section below):

AI Terminal Support Status Notes
Antigravity ✅ Supported Open Agent Skills standard; shares .agents/skills/ with Codex in workspace mode
Claude Code ✅ Supported Intelligent Skill intent recognition, supports complex multi-step automation
Codex ✅ Supported Supports $skill explicit invocation and implicit intent recognition
Cursor ✅ Supported Auto-discovers skill directories; supports /skill-name explicit invocation
Kimi Code ✅ Supported Native skill directory discovery; supports /skill:unity-skills explicit invocation
OpenCode ✅ Supported Native workspace and global skill directory discovery

🏁 Quick Start

Overview: Install Unity Plugin → Start UnitySkills Server → AI Uses Skills

1. Install Unity Plugin

Add via Unity Package Manager using Git URL:

Stable Version (main):

https://github.com/Besty0728/Unity-Skills.git?path=/SkillsForUnity

Beta Version (beta):

https://github.com/Besty0728/Unity-Skills.git?path=/SkillsForUnity#beta

Specific Version (e.g., v1.6.0):

https://github.com/Besty0728/Unity-Skills.git?path=/SkillsForUnity#v1.6.0

📦 All version packages are available on the Releases page

2. Open the Panel & Start Server

In Unity, open menu: Window > UnitySkills (or press Alt+Shift+U). Use the server toggle switch in the top bar to start it; once started it auto-restarts across domain reloads.

⏳ script_*, debug_force_recompile, debug_set_defines, some asset reimports, and package changes may trigger compilation or Domain Reload. Temporary REST unavailability during that window is expected; wait a moment and retry.

3. One-Click AI Skills Configuration

  1. Open Window > UnitySkills and go to the AI Config tab.
  2. Select the corresponding terminal icon and click “Install” — the installer copies the unity-skills~/ template from the package to the target location, no manual copying needed.

🔄 Auto-sync on update: after you upgrade the package, tools you already installed are refreshed to the new version automatically (nothing new is ever installed for you); turn it off in ⚙ Settings ▸ AI Tools.

Codex Note: Antigravity and Codex share .agents/skills/ in workspace mode — installing once makes the skill available to both; no AGENTS.md declaration needed for Codex.

📘 For complete installation and usage instructions, see: Setup Guide | 安装指南



📂 Project Structure

.
├── SkillsForUnity/                 # Unity Editor Plugin (UPM Package)
│   ├── package.json                # com.besty.unity-skills
│   ├── unity-skills~/              # Cross-platform AI Skill Template (tilde-hidden, bundled with package)
│   │   ├── SKILL.md                # Main Skill Definitions (AI-readable)
│   │   ├── scripts/
│   │   │   └── unity_skills.py     # Python Client Library
│   │   ├── skills/                 # 83 module docs (54 REST/module docs + 29 documentation-only docs)
│   │   └── references/             # Unity Development References
│   └── Editor/
│       ├── Locales/                # Decoupled JSON Localization Assets (en.json, zh-CN.json, ru.json)
│       ├── Skills/                 # Core Skill Logic (56 *Skills.cs files → 54 SkillCategory categories, 839 Skills)
│       │   ├── SkillsHttpServer.cs # HTTP Server Core (Producer-Consumer)
│       │   ├── SkillRouter.cs      # Request Routing & Reflection-based Skill Discovery
│       │   ├── WorkflowManager.cs  # Persistent Workflow (Task/Session/Snapshot)
│       │   ├── RegistryService.cs  # Global Registry (Multi-instance Discovery)
│       │   ├── GameObjectFinder.cs # Unified GO Finder (name/instanceId/path)
│       │   ├── BatchExecutor.cs    # Generic Batch Processing Framework
│       │   ├── Localization.cs     # Multi-Language Localization Engine
│       │   └── ...                 # 839 Skills source code
│       └── UI/                     # UI Toolkit Windows & Controllers
│           ├── UnitySkillsWindow.{cs,uxml,uss} # Main Dashboard Window
│           ├── UnityCliWindow.{cs,uxml,uss}    # Unity CLI Configuration Panel
│           ├── AuditLogWindow.{uxml,uss}       # Audit Log Viewer
│           ├── Controllers/                    # UI Tab & Widget Controllers
│           └── Tabs/                           # UXML Tab Layouts & Settings Drawer
├── docs/
│   └── SETUP_GUIDE.md              # Complete Setup & Usage Guide
├── CHANGELOG.md                    # Version Update Log
└── LICENSE                         # MIT License

⭐Star History


📄 License

This project is licensed under the MIT License.

Bundled font (separate license): the editor window bundles a subsetted CJK font SkillsForUnity/Editor/UI/Fonts/UnitySkillsCN-Regular.ttf, derived from Maple Mono (CN variant), licensed under the SIL Open Font License 1.1 — not MIT. The full license and attribution travel with the font in that folder (OFL.txt, THIRD-PARTY-NOTICES.md).

View the full README on GitHub

Recommended Tools

Try a different keyword or remove a filter.

Install

npx skillfish add besty0728/unity-skills
New to MCP? Start with the mcpskill.org guide →