Godot 4 Guard (no Godot 3 code, no silent script errors)
/godot4-guard
A GameSkill original gate for Godot 4 projects: lints every .gd, .tscn and project.godot for Godot 3 API with the Godot 4 form, auto-fixes the mechanical renames, then has Godot 4 headless load every script and play a scene for N frames, failing on parse errors, SCRIPT ERRORs or a missing expected line even when Godot exits 0.
- License
- MIT
- By
- By GameSkill
Tested by GameSkill
25/25 checks passed on Godot 4.7.2 (headless import, script load, scene run, Movie Maker) (2026-11-09): trigger, a runnable example, a screenshot and self-check, one job per skill, and English + Chinese docs. Trigger checks match prompts against skill descriptions; they are not a live agent run.
Test reportGameSkill's tested copy
Written and tested by GameSkill for gameskill.dev. The ZIP holds the whole skill: SKILL.md and its Chinese version, scripts, a runnable example, tests, the self-check list and our test report.
A GameSkill original, released under MIT. The ZIP keeps LICENSE and CREDITS.md, which lists the workflow inspiration, the CC0 test assets and the third-party libraries with their licenses.

Self-check
- 带 --godot 和 --run 跑,输出 GUARD CLEAN / Run with --godot and --run; it prints GUARD CLEAN
- --expect 是游戏真正正常时才打印的一行 / --expect is a line the game prints only when it really works
- 再跑一次 --fix 不改任何东西 / A second --fix changes nothing
Install
Tell your AI
Install the skill from https://gameskill.dev/skills/godot4-guard/install.md
GameSkill's tested copy
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/godot4-guard.zip -o /tmp/gameskill-godot4-guard.zip
unzip -oq /tmp/gameskill-godot4-guard.zip -d .claude/skills
rm /tmp/gameskill-godot4-guard.zipWhat you get
- tools/guard.py: 22 Godot 3 -> 4 lint rules with the Godot 4 form, --fix for the 13 mechanical ones, headless script load and scene run, --expect, --json
- Beacon Keeper, our own tiny Godot 4 project, a Godot 3 habits copy (15 findings) and a runtime-error copy
- 12 checks in test/run_tests.py, run against Godot 4.7.2
Good fit
- A gate after an agent writes or edits GDScript
- Porting Godot 3 scripts and scenes to Godot 4
- Pre-commit or CI checks that catch scripts that fail to load while Godot still exits 0
Not for
- Code style or performance review
- C# projects (the lint reads GDScript)
- Unity or Unreal
Try this prompt
An agent wrote these GDScript files for my Godot 4.4 game. Make sure there is no Godot 3 code left and that the main scene runs 600 frames without errors.About this skill
A GameSkill original. Coding agents learned GDScript from years of Godot 3 tutorials and keep writing export var, yield, KinematicBody2D and move_and_slide(velocity, Vector2.UP), and Godot exits 0 even when a script fails to load. tools/guard.py lints the project for Godot 3 API with the Godot 4 form for each hit, rewrites the mechanical renames with --fix, then copies the project, imports it with Godot 4 headless, loads every script and plays a scene for N frames. Any parse error, SCRIPT ERROR or missing --expect line fails, with exit codes an agent or CI can use.
Agent steps
- Run the guard after every GDScript change, with
--godot,--runon the main scene and an--expectline the game prints. - Port Godot 3 code with
--fix, then fix the remaining findings by hand. - Report
GUARD CLEANwith the frame count and the expected line.
Common problems it catches
export,onready,yield,setget, stringconnectand other syntax Godot 4 refuses to parse.- Godot 3 node and API names: KinematicBody2D, Spatial, Position2D, move_and_slide with arguments, rand_range, File.new().
- Scripts that parse but fail at runtime, which Godot reports and then exits 0 anyway.
Credits
The idea of headless checks and Godot 3 to 4 migration for agent-written Godot code comes from Godotwright by laaielichter (MIT; link only, no code or text used). The rule table, tools, example and text are ours.
Requirements
- Python 3 standard library; no packages
- Godot 4.2+ (tested on 4.7.2) for the headless parse and run checks; set GODOT or pass --godot
Topics
FAQ
Roguelike Core Systems Kit
4 zero-dependency UMD modules extracted from live roguelike production: 3-Slot Controlled RNG Dealer with rarity pity, Deterministic Anti-SL Seed Hashing, Escalating Shop Purge Sink (MIN_DECK=5), and 3-Layer Progressive Meta-Unlock Engine.
Based on Godotwright (idea only) by laaielichter (MIT; idea only, no code, rules or text used). Ideas only: GameSkill wrote the code and text; CREDITS.md in the ZIP lists every source.
Works well with
Skills the author points to as related or as the better fit for neighbouring tasks.
Godot MCP (bundled server, run and read errors)
A GameSkill skill that ships the godot-mcp server (Coding-Solo, MIT) pre-built as one Node file, so an agent can drive Godot 4 over MCP: run the game and read its printed output and errors, stop it, launch the editor, create scenes, add nodes, put textures on sprites, export a MeshLibrary and read UIDs. Nothing is installed from npm or GitHub; it needs only Node.js 18+ and Godot 4.
Godot, One Mechanic at a Time (reference folder, grey box, tested mechanics)
A GameSkill original for building a Godot 4 game with an agent in an order that holds up: a reference folder with a style-prompt JSON, a grey box, then one mechanic per prompt in its own script with its own headless playtest, re-running every earlier playtest before the next. Ships templates, checkers for the reference folder and project layout, and a tested 2D example (run and jump, then glide across a gap) whose playtests catch a broken mechanic.
GLB to Godot Acceptance (is this model really done?)
A GameSkill original that decides whether a 3D model is ready for a game: Godot 4 imports the GLB like any file in the project, then checks import errors, triangle budget, size in metres with Y up, origin at the base, materials, colliders, the clips the code plays, a drop test on a floor and runtime errors, with a fix for every failure. Works on any GLB from Blender or an image-to-3D model.
Similar skills
Claude Code Game Studios
Turns Claude Code into a full game studio: 49 agents and 72 workflow skills arranged like a real studio hierarchy.
Godogen
Autonomous game development with Claude Code and Codex. Publishes a ready game repo for Godot, Bevy, Babylon.js or three.js.
Awesome Gamedev Agent Skills
77 portable SKILL.md skills across 12 engines (Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox, Defold, Ebitengine), with a router.
pixelfx
244 pixel-art effects written as code (fire, explosions, magic, weather, UI, pickups, critters) plus a draft, render, look, refine loop for making new ones; every effect exports a sprite sheet with Aseprite-style JSON for Godot, Unity, Phaser or any engine.