godot4-api-guard
Installation
SKILL.md
Godot 4 API Guard
Godot 4 renamed or removed a large share of the Godot 3 API. Most GDScript in the world — tutorials, forum answers, training data — is Godot 3. When generating code from memory, the old names come out fluently and confidently, and the failure looks like a typo rather than a version mismatch.
Treat every one of the following as a red flag requiring a check, not a guess.
Instant tells that code is Godot 3
If you see any of these, the snippet is Godot 3 and needs translating before use:
yield(anywhereexport varoronready varwithout a leading@.instance()on a PackedSceneconnect("name", self, "_method")— the three-argument string formPool*ArraytypesKinematicBody2D,Spatial,Sprite(unsuffixed),ReferenceFile.new()orDirectory.new()