I use AI coding agents on my game projects every day. They're very good at writing code. They're much worse at game engines: the file formats, the editor conventions, the "this compiles but breaks at runtime" rules every engine has.
After a few months I had a list of mistakes they made again and again. So I stopped re-explaining the rules in prompts and wrote checkers instead. This post covers what went wrong, why prompts didn't fix it, and what happened when I measured whether the fix helps. That last part has a less flattering result than I expected.
flxnsee / gamedev-toolkit
Game-dev toolkit for AI coding agents: Godot, Unity, Unreal, Roblox and Blender skills plus checks that run on your real project.
🧰 gamedev-toolkit
The game-dev toolkit for AI coding agents: skills that know your engine, and checks that run on your real project.
Works with Claude Code, Codex, Cursor and any agent that supports Agent Skills.
AI coding agents write Godot 3 code in Godot 4 projects, lose Unity .meta files, forget UPROPERTY on pointers, export Blender models rotated -90°, and put Roblox LocalScripts where they never run. gamedev-toolkit gives them engine-specific know-how plus tested scripts that examine your actual project, find what is broken and say how to fix it. No role-play agents, no "you are a senior game designer" prompts: just tools that work.
Real output of godot-project-lint on the test fixture. Regenerate all demo images with python tools/make_demo_svg.py.
Quick start (Claude Code):
claude plugin marketplace add flxnsee/gamedev-toolkit claude plugin install godot@gamedev-toolkit Then ask: "check my Godot project before I export it". More options in Install…
Four ways my agents broke my projects
1. Godot 3 code in a Godot 4 project
Ask an agent for a platformer controller and you often get this:
extends KinematicBody2D export var speed = 200 onready var sprite = $Sprite func _physics_process(delta): velocity = move_and_slide(velocity, Vector2.UP) func hurt(): sprite.modulate = Color.red yield(get_tree().create_timer(0.2), "timeout") Every line of it is Godot 3. In Godot 4 it's CharacterBody2D, @export, @onready, await, and move_and_slide() takes no arguments. There's simply more Godot 3 code on the internet than Godot 4 code, and it shows.
2. A Unity script renamed without its .meta
"Rename Player to Hero" sounds harmless. The agent runs mv Player.cs Hero.cs and updates the class name. But Unity tracks assets by the GUID in Player.cs.meta, not by file name. The .meta is left behind, Unity creates a new one with a new GUID for Hero.cs, and every prefab that used the script now shows Missing (Mono Script).
3. A raw UObject* in Unreal
UCLASS() class MYGAME_API AEnemyBase : public ACharacter { GENERATED_BODY() private: AActor* Target; // no UPROPERTY() }; This compiles and works in testing. But Unreal's garbage collector can't see Target. When that actor is destroyed and collected, the pointer still points at freed memory, and the next Tick crashes, usually far from the cause.
4. A Roblox LocalScript that never runs
The agent puts a HUD script in ReplicatedStorage. LocalScripts don't run there. There's no error and no warning. The HUD just doesn't show up.
What these have in common: none of them show up in the agent's terminal. The problems appear in the editor, after export, or at runtime, which are exactly the places the agent can't see.
Why rules in a prompt weren't enough
The obvious fix is to tell the agent the rules. I tried. The thing is, the agent mostly already knows them. Ask "what's the Godot 4 equivalent of yield?" and it answers correctly. The failure isn't knowledge. The agent never looks, and nothing in the project tells it something is wrong.
A rule says what's right. A checker says what's wrong in this project, at these lines. That's a much stronger signal for an agent, because it's just output to act on, like a failing test.
So the toolkit is built around Agent Skills: small folders with a SKILL.md the agent loads when the task matches its description. Each skill has short engine-specific rules, and where the problem can be detected, a script that inspects the real project. The agent runs the script, reads the findings, fixes them and runs it again.
There are 17 skills across Godot, Unity, Unreal, Blender and Roblox, plus engine-independent ones for Git LFS setup, game feel, performance budgets, localization and Steam releases.
Checking a project without the engine
The useful trick is that you rarely need the engine to find these bugs. Most engine files are text:
- Godot:
.gd,.tscnandproject.godotare plain text, and everyres://reference can be resolved against the file system. - Unity:
.metafiles are YAML with a GUID, and.asmdeffiles are JSON. That's enough to find missing and duplicate GUIDs or draw the assembly graph. - Unreal:
.uprojectis JSON, and headers can be scanned forUCLASS,GENERATED_BODY()and member declarations. - Roblox (Rojo):
default.project.jsonmaps files to the instance tree, so you know where each script ends up and whether it can run there.
All checkers use only the Python standard library. They don't need Godot, Unity or Unreal installed, so they run in a few seconds on a plain CI runner. Here's part of the Godot linter's output on the test project:
Godot 4 project: 2 scripts, 1 scenes, 0 resources, 10 res:// references checked 16 errors, 1 warnings, 0 info [error] scenes/main.tscn:4 path-case: res://art/hero.png differs in letter case from res://Art/hero.png. Works in the editor on Windows/macOS, fails in exported builds and on Linux. [error] scenes/main.tscn:6 missing-resource: res://Art/gone.png does not exist. [error] scripts/player.gd:1 gd3-class: `KinematicBody2D` is a Godot 3 class. Godot 4 name: `CharacterBody2D`. [error] scripts/player.gd:18 gd3-yield: `yield()` was removed. Use `await obj.signal_name` or `await get_tree().create_timer(t).timeout`. [warning] scenes/main.tscn:5 stale-path: res://Art/old_name.png does not exist, but uid://bmoved000000a is known so Godot will load the moved file by UID. Open and re-save this file to refresh the path. That last warning took some thought. Godot 4 stores a UID next to each path, so a moved file often still loads. Calling that an error would be wrong, and ignoring it would hide a path that breaks the day the UID cache is rebuilt. So it's a warning that says exactly why it still works.
Every message says what is wrong, why it matters and how to fix it. That's for the agent as much as for humans: a finding the agent can act on without guessing.
The Roblox linter works the same way:
[error] client-api-on-server: src/server/main.server.luau:10 - Players.LocalPlayer is nil on the server. [error] script-wont-run: src/shared/misplaced.client.luau - This LocalScript ends up in ReplicatedStorage.Shared.misplaced, where LocalScripts never run. [warning] require-asset-id: src/server/main.server.luau:34 - require(assetId) downloads and runs a published module at runtime. Free models use this to hide backdoors. Testing the testers
A linter with false positives is worse than none, because people (and agents) learn to ignore it. So:
- Every checker has a fixture project with planted bugs. The tests require it to find every one and to report nothing on the clean files.
- The demo images in the README are generated from the checkers' real output, and CI fails if they drift from what the tools print.
- Every
SKILL.mdis validated against the Agent Skills spec. Everything runs on Linux, Windows and macOS, and the Blender export presets run against a real Blender in CI.
Does it actually help? The honest answer
I wanted a number rather than a vibe, so I built an eval harness with 12 small, realistic broken projects, one or more per engine. Each gets a developer-style request ("port this player to Godot 4", "rename this script to Hero"). An agent runs each task twice, with and without the skills, and the toolkit's own checkers score the results.
First pilot, Claude Code with Sonnet, one run per task and condition:
| Without skills | With skills | |
|---|---|---|
| Tasks solved | 12/12 | 12/12 |
| Runs that loaded a skill | 0/12 | 8/12 |
| Runs that ran a checker | 0/12 | 7/12 |
| Cost (12 runs) | $0.83 | $0.86 |
No difference. Sonnet solved everything either way.
That stung for a minute, but it was a useful lesson about evals: my prompts named the problem. "Port this to Godot 4" tells the agent exactly what to think about, and a strong model knows how. It tested knowledge, and as I said above, knowledge was never the problem. The real-world failure is an agent doing something else and not noticing it broke a path or left a .meta behind.
What the pilot did show: when the skills were available the agent used them (8 of 12 runs, for example running the asmdef checker before and after its fix), and it cost about 3 cents more for all 12 runs.
So the next batch of tasks makes the agent find the problem: "check this project before export", with one bad path among many files, and runs on a smaller model. I'll publish those numbers, with 3+ runs per task, whichever way they go.
If you write evals for prompts or skills, here's the takeaway: if the task prompt names the bug, you're measuring whether the model knows the fix, not whether it would notice the bug.
Try it
Claude Code:
claude plugin marketplace add flxnsee/gamedev-toolkit claude plugin install godot@gamedev-toolkit # also: unity, unreal, roblox, blender, core Codex, Cursor, Gemini CLI or any agent with Agent Skills:
npx skills add flxnsee/gamedev-toolkit No AI at all: the checkers are standalone scripts and work fine in CI:
python plugins/godot/skills/godot-project-lint/scripts/godot_lint.py path/to/project python plugins/unity/skills/unity-project-hygiene/scripts/unity_meta_check.py path/to/project python plugins/roblox/skills/roblox-luau-lint/scripts/luau_lint.py path/to/rojo-project Everything is MIT-licensed. Bevy, Defold, Phaser and MonoGame are on the roadmap.
I'd love to hear: what's a bug that cost you a day and that a script could have caught? And if you've found eval tasks where agents actually fail at game dev, I want them.
