尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證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.
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗Cursor rules and an AGENTS.md that stop the most common AI coding mistakes in Unity C#:
using directives (the #1 cause of CS0246 after an AI edit)GameObject.FindByTag, transform.GetChildByName, Rigidbody.AddVelocity…)velocity → linearVelocity, drag → linearDamping, obsolete FindObjectOfType)Works with Cursor, Claude Code, and any agent that reads AGENTS.md. There's also a paste-in header for ChatGPT and Claude chat.
| AI writes | What breaks | Rule says |
|---|---|---|
target?.TakeDamage(1) | MissingReferenceException after Destroy. ?. can't see Unity's "fake null" | Use target != null on UnityEngine.Object (full kit) |
renames speed → moveSpeed | Every prefab's tuned value quietly resets | Add [FormerlySerializedAs("speed")] (full kit) |
+= an event in Start with no -= | Errors after a scene reload | Subscribe in OnEnable, unsubscribe in OnDisable (full kit) |
| File | What it does |
|---|---|
.cursor/rules/00-unity-core.mdc | Always on. Reads ProjectVersion.txt and manifest.json first, no invented APIs, writes complete compilable files |
.cursor/rules/01-namespaces-usings.mdc | Keeps usings, plus a type → namespace lookup table and name-clash fixes |
.cursor/rules/04-unity-versions-api.mdc | 2022.3 LTS vs Unity 6 API table |
AGENTS.md | The same guidance for Claude Code, Codex and other agents |
PRIMING_HEADER.md | Paste at the start of a ChatGPT or Claude chat |
git clone https://github.com/scoyoc5/unity-ai-agent-rules
cp -r unity-ai-agent-rules/.cursor unity-ai-agent-rules/AGENTS.md /path/to/YourUnityProject/
Then ask your agent: "Add a jump to PlayerController." It should read ProjectVersion.txt first and keep your using lines.
.cursor/ and AGENTS.md into your Unity project root, next to Assets/.PRIMING_HEADER.md first.| Topic | 2022.3 LTS | Unity 6 |
|---|---|---|
| Rigidbody velocity | rb.velocity | rb.linearVelocity |
| Drag | rb.drag, rb.angularDrag | rb.linearDamping, rb.angularDamping |
| Find objects | FindFirstObjectByType<T>() | same (FindObjectOfType obsolete) |
| Async | Coroutines | Coroutines or Awaitable |
The Unity AI Agent Kit adds lifecycle, serialization, Input System, performance and test rules, a CLAUDE.md, a phased feature-planning workflow with templates, 20 task prompts (controllers, save/load, FSM, inventory, pooling, UI…), and a batchmode compile + EditMode test loop.
👉 Get it on itch.io ($12 suggested, $9 minimum)
Seen an AI invent a Unity API? Open an issue with the fake call and the real one, and I'll add it to the list.
MIT. Not affiliated with or endorsed by Unity Technologies, Anysphere (Cursor), or Anthropic.
Keywords: cursor rules for unity, .cursorrules unity, claude code unity, CLAUDE.md unity, AGENTS.md unity, chatgpt unity c#, unity 6 linearVelocity, CS0246 AI.