AI Agent Unity Rules
Production-ready AI rules for Unity 6.2+. Single Source of Truth for Cursor (.cursor) and Google Antigravity (.agent) with auto-sync workflow.
Install
git clone https://github.com/Common-ka/ai-agent-unity-rulesInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →Unity AI Agent Rules (Cursor + Antigravity)
📋 Description
The Single Source of Truth for Unity AI assistance.
This repository provides production-ready configuration rules for Unity 6.2+ projects. It is designed to be universal, automatically supporting both:
- Cursor IDE (via native
.mdcformat) - Google Antigravity (via synced
.agent/rulesformat)
We use a "write once, deploy everywhere" approach: rules are defined in Cursor's format and automatically converted for Antigravity Workspace using a custom CI/CD workflow.
🚀 Quick Start
Requirements
- Unity 6.2 or higher
- IDE: Cursor IDE OR Google Antigravity Workspace
- .NET SDK for C# development
Installation
Option A: Automatic Setup (Recommended)
Simply clone this repository into the root of your Unity project. The AI agents will automatically detect their respective configuration folders.
cd YourUnityProject
git clone https://github.com/Common-ka/ai-agent-unity-rules.git
Option B: Manual Setup
For Cursor Users:
- Copy the
.cursor/folder to your project root. - Copy
.vscode/settings.jsonto your project's.vscode/folder.
For Antigravity Users:
- Copy the
.agent/folder to your project root. - Ensure
.agent/rules/contains the.mdfiles.
🛠 How it Works (Sync Workflow)
This repository uses a Uni-Directional Data Flow to keep rules in sync.
graph LR
A[.cursor/rules/*.mdc] -- python script --> B(.agent/rules/*.md)
- Source: Rules are authored in
.cursor/rules/using the modern.mdcformat. - Sync: A Python script (
sync_rules.py) automatically converts these files into standard Markdown for Antigravity. - Automation: A GitHub Action runs on every push to ensure
.agent/rulesare always up to date.
📄 License
MIT License - see LICENSE
Similar plugs
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
Bash is all you need - A nano claude code–like 「agent harness」, built from 0 to 1
Documented system prompts from Anthropic - Claude Fable 5.1, Opus 5.5, Claude Design, Claude Code. OpenAI - ChatGPT GPT-6-Astra, Codex. Google - Gemini 3.8 Flash, 3.1 Pro,…
Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build, Muse Code, Devin as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini…