godot
Skill4 starsChanged 6 months agoMITView on GitHub
Generate production-ready GDScript 2.0 for Godot 4.3+ with strict static typing. Auto-triggers on Godot, GDScript, or game development tasks. Enforces official style guide, modern architecture patterns, and version-safe syntax. Covers: player controllers, state machines, signals, tilemaps, save/load, UI, and more.
13 other projects use a version of this.
Adopted by
Most recently taken up by
- Gucixdev/claude-skillstheir own version, first seen Nov 29, 2026
- n-n-code/n-n-code-skillstheir own version, first seen Nov 8, 2026
- AxlZero21/Skillstheir own version, first seen Nov 8, 2026
- jammyfu/open-game-skillstheir own version, first seen Oct 11, 2026
- jablonkai/skillstheir own version, first seen Oct 1, 2026
- saschb2b/skillstheir own version, first seen Aug 8, 2026
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- fetasty/godot-skills★ 29same name
- saschb2b/skills★ 22same name
- jammyfu/open-game-skills★ 13same name
- fernforestgames/agent-skill-godot★ 11same name
- n-n-code/n-n-code-skills★ 4same name
- mattstruble/skills★ 3same name
- jablonkai/skills★ 2same name
- jarrodmedrano/jarrod-claude-skills★ 2same name
- lucasbrandao4770/claude-code-gamedev★ 2same name
- aleiby/claude-skills★ 1same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/godot.mdcCursor rule
- godotSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 9 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 62
Every declaration must be statically typed:
- Distinctive: line 90
Every script follows this exact sequence:
- Distinctive: line 126
TileMapLayer: not deprecated TileMap — one node per layer
- Very specific: line 127
FileAccess/DirAccess: not File/Directory — user:// for saves, res:// read-only in exports
- Very specific: line 170
Never output Godot 3 syntax (yield, emit_signal(), string-based connect(), TileMap, File, Directory)
- Distinctive: line 171
Never use dynamic typing when static typing is possible
- Very specific: line 172
Never use camelCase, Hungarian notation, or symbolic booleans (&&, ||, !)
- Very specific: line 173
Never use get_parent() or get_node("../Sibling") for cross-node communication
- Distinctive: line 174
Never suggest Autoloads for pure utility/data — use static classes
- Distinctive: line 175
Never combine conditional and execution on one line
- Distinctive: line 176
Never use backslash line continuation — use parentheses
- Very specific: line 177
Never place and/or at end of line in multi-line conditions
- Very specific: line 178
Never skip -> void on functions that return nothing
- Distinctive: line 179
Never write comments explaining WHAT code does — only WHY
- Distinctive: line 180
Never generate code without reading user's existing project context first
“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Produce production-ready, type-safe GDScript 2.0 for Godot 4.3+. Enforce official style guide, strict static typing, and modern architecture patterns across all generated code.
Purpose
This skill constrains all Godot-related code generation to:
- Godot 4.3+ only — actively blocks Godot 3 syntax and deprecated APIs
- Strict static typing — every variable, parameter, and return type declared
- Official GDScript style guide — naming, formatting, 17-step code ordering
- Loose coupling — "call down, signal up", composition over inheritance
- Data-driven design — Resources for data, Nodes for presentation, Managers for logic
When to Apply
Activate whenever the task involves:
- Writing or modifying GDScript files
- Designing Godot scene architecture or node trees
- Implementing game mechanics (movement, combat, inventory, AI)
- Building UI, save/load systems, procedural generation
- Migrating Godot 3 code to Godot 4
Syntax Constraints
These are non-negotiable. Violations produce compilation errors:
| Banned (Godot 3 / Deprecated) | Required (Godot 4.3+) |
yield | await |
emit_signal("name") | signal_name.emit() |
connect("signal", target, "method") | signal.connect(callable) |
TileMap node | TileMapLayer node |
File / Directory classes | FileAccess / DirAccess |
deg2rad / rad2deg | deg_to_rad / rad_to_deg |
stepify / rand_range / instance() | snapped / randf_range / instantiate() |
export var / onready var | @export var / @onready var |
KinematicBody2D | CharacterBody2D |
move_and_slide(velocity) | velocity = ...; move_and_slide() |
Load references/godot4-syntax.md for the complete deprecation map when migrating code.
Type Safety
Every declaration must be statically typed:
var speed := 400.0 # Inferred
var player_name: String = "" # Explicit
var enemies: Array[Enemy] = [] # Typed array
func calculate_damage(base: float, mult: float) -> float: # Params + return
func take_damage(amount: int) -> void: # Void explicitNaming and Formatting
Load references/gdscript-style-guide.md for naming conventions and formatting rules.
Key rules always active:
| Element | Convention | Example |
| Files | snake_case.gd | weapon_system.gd |
| Classes/Nodes | PascalCase | class_name NetworkManager |
| Functions | snake_case() | func calculate_velocity(): |
| Signals | snake_case (past tense) | signal enemy_defeated |
| Constants/Enum members | CONSTANT_CASE | const MAX_SPEED := 600.0 |
Formatting: one statement per line, English booleans (and/or/not), no unnecessary parentheses, double-indent multi-line conditions.
Script Structure (17-Step Ordering)
Every script follows this exact sequence:
1. @tool, @icon 2. class_name 3. extends
4. ## Docstring 5. signals 6. enums
7. constants 8. static var 9. @export var
10. var (public → _private) 11. @onready var 12. _static_init()
13. static func 14. Virtual callbacks (_init → _ready → _process → _physics_process)
15. Public methods 16. Private methods 17. Inner classesArchitecture Patterns
Load references/architecture-patterns.md for signal bus, state machine, entity pattern, and composition examples.
Decision trees always active:
State management:
Needs _process() or node lifecycle? → Autoload
Just data/utilities/config? → Static class (class_name + static var/func)Communication:
Parent → Child: direct method calls
Child → Parent: signals (emit up)
Sibling → Sibling: signal bus or parent mediates
Cross-scene: Autoload event busCommon Systems
Load references/common-systems.md for TileMapLayer, FileAccess, Resources, input, camera, pooling, and UI patterns.
Key constraints always active:
- TileMapLayer not deprecated TileMap — one node per layer
- FileAccess/DirAccess not File/Directory —
user://for saves,res://read-only in exports - ResourceLoader for loading assets in exported builds
- Resources (
.tres) for portable data — separate data from presentation
Common Task Patterns
Player Controller (2D Platformer)
Generate complete CharacterBody2D script: exported movement vars, _physics_process with move_and_slide(), coyote time, jump buffering, enum-based state tracking, input map references.
State Machine
Dedicated StateMachine node managing State child nodes. Each state extends base State class. Transitions via signals. Never string-based state comparison.
Save/Load
user:// for all saves. FileAccess.open() with error checking. JSON or ResourceSaver. Never File class.
TileMap / Level Design
TileMapLayer per logical layer. get_cell_source_id() / set_cell(). Procedural gen via code.
Output Rules
- Code blocks + max 2 sentences architectural rationale
- No conversational filler
- Comments explain WHY, not WHAT
- File paths always specified
- Node tree described when relevant:
Player (CharacterBody2D)
├── CollisionShape2D
├── Sprite2D
├── AnimationPlayer
└── Hurtbox (Area2D)
└── CollisionShape2DError Recovery
Godot 3 code provided → identify deprecated elements, provide modern equivalent, explain migration in 1 sentence, generate corrected code.
Architecturally unsound request → generate using proper patterns, note concern in 1 sentence, suggest alternatives only if issue causes real scaling problems.
Never Do
- Never output Godot 3 syntax (
yield,emit_signal(), string-basedconnect(),TileMap,File,Directory) - Never use dynamic typing when static typing is possible
- Never use camelCase, Hungarian notation, or symbolic booleans (
&&,||,!) - Never use
get_parent()orget_node("../Sibling")for cross-node communication - Never suggest Autoloads for pure utility/data — use static classes
- Never combine conditional and execution on one line
- Never use backslash line continuation — use parentheses
- Never place
and/orat end of line in multi-line conditions - Never skip
-> voidon functions that return nothing - Never write comments explaining WHAT code does — only WHY
- Never generate code without reading user's existing project context first
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

