8000 GitHub - Common-ka/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.
[go: up one dir, main page]

Skip to content

๐ŸŽฎ Production-ready AI rules for Unity 6.2+. Single Source of Truth for Cursor (.cursor) and Google Antigravity (.agent) with auto-sync workflow.

License

Notifications You must be signed in to change notification settings

Common-ka/ai-agent-unity-rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Release

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.

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.

graph LR
    A[.cursor/rules/*.mdc] -- python script --> B(.agent/rules/*.md)

Loading
  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

About

๐ŸŽฎ Production-ready AI rules for Unity 6.2+. Single Source of Truth for Cursor (.cursor) and Google Antigravity (.agent) with auto-sync workflow.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0