Coding & Development✨gemini⌨️cursor🌐universal
Unity AI Agent Rules (Cursor + Antigravity)
🎮 Production-ready AI rules for Unity 6.2+. Single Source of Truth for Cursor (.cursor) and Google Antigravity (.agent) with auto-sync workflow.
Quick Start
Install this Skill
npx skills add Common-ka/ai-agent-unity-rules[](https://github.com/Common-ka/ai-agent-unity-rules/releases)
# 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:
1. **Cursor IDE** (via native `.mdc` format)
2. **Google Antigravity** (via synced `.agent/rules` format)
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.
```bash
cd YourUnityProject
git clone https://github.com/Common-ka/ai-agent-unity-rules.git
```
#### Option B: Manual Setup
**For Cursor Users:**
1. Copy the `.cursor/` folder to your project root.
2. Copy `.vscode/settings.json` to your project's `.vscode/` folder.
**For Antigravity Users:**
1. Copy the `.agent/` folder to your project root.
2. Ensure `.agent/rules/` contains the `.md` files.
---
## 🛠 How it Works (Sync Workflow)
This repository uses a **Uni-Directional Data Flow** to keep rules in sync.
```mermaid
graph LR
A[.cursor/rules/*.mdc] -- python script --> B(.agent/rules/*.md)
```
1. **Source:** Rules are authored in `.cursor/rules/` using the modern `.mdc` format.
2. **Sync:** A Python script (`sync_rules.py`) automatically converts these files into standard Markdown for Antigravity.
3. **Automation:** A GitHub Action runs on every push to ensure `.agent/rules` are always up to date.
## 📄 License
MIT License - see [LICENSE](https://www.google.com/search?q=LICENSE)
Repository
13stars
3forks
Details
Related Skills
More coding & development skills you might like
Reticle
Coding & DevelopmentAI agents can generate code, but still struggle to understand what they build. Reticle brings Jev-style machine-native runtime perception to web & desktop applications.
🤖claude🌐universal
1.2k
190
View
agentscope-java
Coding & DevelopmentExpert Java developer skill for AgentScope Java framework - a reactive, message-driven multi-agent system built on Project Reactor. Use when working with reactive programming, LLM integration, agent orchestration, multi-agent systems, or when the user mentions AgentScope, ReActAgent, Mono/Flux, Project Reactor, or Java agent development. Specializes in non-blocking code, tool integration, hooks, pipelines, and production-ready agent applications.
🌐universal
6.0k
1.5k
View
ospec
Coding & DevelopmentDocument-driven OSpec workflow for initialization, change/goal routing, validation, archiving, and durable project knowledge.
✨gemini🤖claude💬gpt🌐universal
524
34
View
misakanet-failure-memory
Coding & Development📚 A zero-dependency, git-backed micro-lesson library for AI Agents to asynchronously share and search verified debugging experience. Python stdlib only. | https://misakanet.org
🤖claude⌨️cursor🌐universal
424
158
View