Cursor rules for Unity and Godot that stop the agent writing broken game code (free, MIT)

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:

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.

1 Like