Godot GDScript patterns
Writes typed Godot GDScript with clean scenes, signals and resources, so game state lives in the right place.
Claude's review
8/10 Specific idiomatic Godot 4 guidance with correct code and a useful anti pattern table.
We asked Claude the question you would ask: would I be glad I installed this? We only sell skills it rates 7 or higher.
In detail
Idiomatic Godot 4 GDScript patterns - static typing, scene and node design, signals, resources, autoloads, input, and lifecycle safety. Use when writing or reviewing GDScript, designing scenes, or deciding where game state should live.
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-patterns
description: Idiomatic Godot 4 GDScript patterns - static typing, scene and node design, signals, resources, autoloads, input, and lifecycle safety. Use when writing or reviewing GDScript, designing scenes, or deciding where game state should live.
origin: ECC
---
# Godot 4 GDScript Patterns
Idiomatic patterns for Godot 4.x projects written in GDScript. Verified against the Godot 4.7 documentation; most guidance applies to every 4.x release.
## When to Activate
- Writing or reviewing `.gd` files
- Designing a scene tree or deciding which node owns what
- Choosing between a signal, a direct call, an autoload, or a Resource
- Debugging "node not found", freed-object, or signal-connection errors
- Structuring a game so its logic can be tested without running the renderer
## Core Principles
1. **Type everything.** Typed GDScript catches bugs at parse time and speeds up the editor.
2. **Call down, signal up.** A parent may call methods on its children. A child announces events with signals and never reaches up to its parent.
3. **Keep game logic out of Nodes where you can.** Plain `RefCounted` or `Resource` classes can be tested headlessly. Nodes should draw and forward input.
4. **Data lives in Resources, not in scripts full of constants.**
5. **Autoloads are global state.** Use as few as you can and treat each one as a public API.
## Static Typing
```gdscript
class_name Inventory
extends RefCounted
## A bag of item counts. Pure data and rules: no Node, so tests can run headlessly.
signal item_added(item_id: StringName, new_count: int) ## typed signal parameters
const MAX_STACK: int = 99 ## typed constant
var _counts: Dictionary[StringName, int] = {} ## typed Dictionary (Godot 4.4+)
...From affaan-m's repository, MIT licence.
Related skills
-
Checked
Godot game optimisation
Profiles a Godot game and fixes common slowdowns in draw calls, physics and memory so it runs more smoothly.
7/101 credit -
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
Blender asset optimisation
Cuts Blender assets down to each platform's budget with LODs, decimation and texture atlases before export.
7/101 credit -
Checked
Three.js game UI
Designs HUDs, menus, pause screens and touch controls for Three.js games that read well on any screen.
7/101 credit