I make small games in Unity and Godot with Cursor, and kept hitting the same agent mistakes: deleted using lines (CS0246), invented APIs like GameObject.FindByTag, Unity 6 vs 2022 API mixups, and in Godot, Godot 3 syntax (yield, export, KinematicBody2D) in Godot 4 projects.
So I wrote rule files for it. Two free repos, MIT:
- Unity: GitHub - scoyoc5/unity-ai-agent-rules: Free Cursor rules + AGENTS.md that stop AI (Cursor, Claude Code, ChatGPT) from writing broken Unity C#: missing usings, invented APIs, Unity 6 vs 2022 mixups. MIT. · GitHub
- Godot 4: GitHub - scoyoc5/godot-ai-agent-rules: Free Cursor rules + AGENTS.md that stop AI (Cursor, Claude Code, ChatGPT) from writing Godot 3 code in Godot 4 projects: yield, export, onready, old connect(), invented APIs. MIT. · GitHub
Setup: copy .cursor/ and AGENTS.md into your project root (next to Assets/ or project.godot). The core rule is alwaysApply; the others attach by glob (**/*.cs, **/*.gd). AGENTS.md covers Claude Code / Codex too.
Quick test: ask “add a jump to the player”. It should read ProjectVersion.txt (Unity) or use await / @export / CharacterBody2D (Godot) without being told.
There’s also a paid full version on itch with more rules and task prompts, but the free repos stand on their own. Mostly I’d like to hear which Unity/Godot mistakes your agent still makes, so I can add rules for them.