Godot GDScript Coding
Writes typed GDScript for Godot 4 that parses cleanly, with a check that every script compiles.
Claude's review
8/10 Typed GDScript guidance with exact parse error causes, 4.7 behaviour changes and a bundled compile check.
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
GDScript 2.0 for Godot 4.7: static typing, @export and @onready, await and coroutines, and porting 3.x code. Use for .gd parse errors ("Cannot infer the type"), a coroutine that never resumes, a null @onready variable or upgrade breakage. Not for signals (`godot-signals-groups`), scenes (`godot-nodes-scenes`), C# (`godot-csharp`) or CI tests (`godot-gdscript-headless-testing`).
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: godot-gdscript
description: >
GDScript 2.0 for Godot 4.7: static typing, @export and @onready, await and coroutines, and
porting 3.x code. Use for .gd parse errors ("Cannot infer the type"), a coroutine that never
resumes, a null @onready variable or upgrade breakage. Not for signals (`godot-signals-groups`),
scenes (`godot-nodes-scenes`), C# (`godot-csharp`) or CI tests
(`godot-gdscript-headless-testing`).
---
# Godot GDScript (4.x)
Write typed GDScript that parses on the project's Godot version and behaves the way the
engine schedules it, then prove every script compiles. Targets **Godot 4.7**; read
`config/features` in `project.godot` and keep an older project on its own version.
## Workflow
1. **Match the project's version and settings.** Check `config/features` and any
`debug/gdscript/warnings/*` entries in `project.godot`: a warning set to Error (2) fails the
parse, and `inference_on_variant` is an error by default.
2. **Type by default.** Annotate members, parameters and returns; use `:=` only when the
right side has a static type (see Gotchas). Typed code catches mistakes at parse time and
runs faster.
3. **Put code in the right callback.** `_init()`: no tree, no children. `_ready()`: after
the children, only the first time the node enters the tree (`request_ready()` re-arms
it). `_physics_process()`: movement and physics. `_process()`: visuals and UI.
4. **Write coroutines defensively.** Anything after `await` may run frames later, or never.
5. **Verify before you finish** (paths are relative to this skill's folder):
- On a fresh checkout, import first: `godot --headless --path <project> --import`.
- Run `godot --headless --path <project> --script <this skill>/assets/check_scripts_compile.gd`.
It loads every `.gd` with autoloads and `class_name` types registered; exit 1 lists each
`BROKEN` file under the engine's parse error and line. Fix the first error in a file
first; later ones are often follow-ons.
- Run the main scene briefly and read the log, because Godot exits 0 after runtime errors:
`godot --headless --path <project> --quit-after 300 > run.log 2>&1`, then
`grep -nE "SCRIPT ERROR|^ERROR:" run.log`.
- For behaviour, write a test with `godot-gdscript-headless-testing`. If
`godot-nodes-scenes` is installed,
`python3 ../godot-nodes-scenes/scripts/check_godot_project.py <project>` catches broken
...From gamedev-skills's repository, Apache-2.0 licence.
Related skills
-
Checked
Game Audio Mixing
Sets up game audio buses, volume sliders, music ducking and adaptive music for Godot, Unity or FMOD.
8/101 credit -
Checked
Game camera tuning
Builds and tunes follow, orbit and first person game cameras in Godot or Cinemachine so they stop jittering.
8/101 credit -
Checked
Game Enemy AI
Designs enemy AI with perception, pathfinding and steering so enemies chase fairly and never get stuck.
8/101 credit -
Checked
Game Loop and Timing
Makes movement, timers and physics behave the same at any frame rate in Unity, Godot, Bevy and web games.
7/101 credit -
Checked
Godot Game Testing
Writes and runs Godot tests with gdUnit4 or GUT, including scene tests and headless runs that report real results.
7/101 credit -
Checked
Game Security Review
Reviews Unity, Godot and Unreal code for cheats that hurt other players, purchase exploits and unsafe save files.
7/101 credit