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 / Use
npx skills add Common-ka/ai-agent-unity-rulesInstalls into whichever agent you are using.
.cursorrules
Cursor IDE rules (legacy)
Quality Score
Category
AutomationSupported Platforms
Tags
Skill content
View source on GitHubUnity 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
Related Skills
Agent-Reach
84.2kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
ruflo
73.0k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
nanobot
48.5kUltra-lightweight, open-source, self-hosted personal AI agent framework in Python with WebUI, tools, memory, MCP, multi-agent workflows, automation, and chat apps
Scrapling
82.8k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ
