GDScript for Godot 4
/godot-gdscript
Write idiomatic GDScript for Godot 4.7: static typing, the node lifecycle (_ready/_process/_physics_process), @export/@onready/@tool annotations, signals, and await for asynchronous flow.
- License
- Apache-2.0
- By
- By GameSkill
Part of
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.
Tested by GameSkill
30/30 checks passed on Godot 4.7.2 (2026-10-30): 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 reportWhat this skill does
When it triggers
7: static typing, the node lifecycle (_ready/_process/_physics_process), @export/@onready/@tool annotations, signals, and await for asynchronous flow.x (function signatures, yield to await, export to @export). …
GameSkill's tested copy
GameSkill's tuned build of this skill: the skill files from commit 19d93f97c9c1, plus our runnable example, test report, self-check list and Chinese guide, put through our skill process.
License: based on gamedev-skills/awesome-gamedev-agent-skills by gamedev-skills, under Apache-2.0. The ZIP keeps the license files (LICENSE, NOTICE) and lists everything GameSkill added in CHANGES.md.

Self-check
- 能写类型就写类型,用 := 推断 / Type everything you can; use := for inferred types
- 移动和物理放 _physics_process,别放 _process / Put movement and physics in _physics_process
- 节点引用用 @onready,别在 _init() 里取 / Get node refs with @onready, not in _init()
- 整数除法会截断,5/2 得 2,要小数就写 5.0/2 / Integer division truncates; use 5.0 / 2
- 4.x 用 x.emit() 和 x.connect(_on_x),yield 改成 await / In 4.x use x.emit() and x.connect(_on_x); yield is now await
Pairs well with
Install
Tell your AI
Install the skill from https://gameskill.dev/skills/godot-gdscript/install.md
GameSkill's tested copy
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/godot-gdscript.zip -o /tmp/gameskill-godot-gdscript.zip
unzip -oq /tmp/gameskill-godot-gdscript.zip -d .claude/skills
rm /tmp/gameskill-godot-gdscript.zipWhat you get
- Worked steps: A typed script with lifecycle, @export, and @onready; Signals: declare, emit, connect; await — pause until a timer or signal fires; Lambdas, typed arrays, and safe access
- A pitfalls section with the mistakes to avoid
- Bundled 1 reference doc the agent reads when needed
- Written for Godot 4.7
Good fit
- Editing .gd scripts in a Godot project (project.godot), writing or debugging GDScript
- Porting 3.x GDScript to 4.x (function signatures, yield to await, export to @export)
Try this prompt
Port this Godot 3 script to Godot 4 GDScript with static typing and await.About this skill
Write idiomatic GDScript for Godot 4.7: static typing, the node lifecycle (_ready/_process/_physics_process), @export/@onready/@tool annotations, signals, and await for asynchronous flow. Use when editing .gd scripts in a Godot project (project.godot), writing or debugging GDScript, or porting 3.x GDScript to 4.x (function signatures, yield to await, export to @export).
From the godot-gdscript SKILL.md in gamedev-skills/awesome-gamedev-agent-skills.
What's inside
- A typed script with lifecycle, @export, and @onready
- Signals: declare, emit, connect (4.x Callable syntax)
- await — pause until a timer or signal fires (replaces 3.x yield)
- Lambdas, typed arrays, and safe access
Requirements
- Godot 4.7
FAQ
Roguelike Deckbuilder Starter (Godot 4 + Web)
Stop staring at an empty project: a complete white-label playable Roguelike Deckbuilder template in Godot 4 & Web HTML5 — Opening 3-Slot Blessings, Non-Crossing DAG Map, Hand-Arc Combat, 50% Boss Phase Lock, Campfire/Shop Purge, atomic SaveStore, EN/ZH Localization, balanced JSON/CSV tables & 1,000-run HTML balance CLI.
- Runnable Godot 4.3+ project (project.godot, Main.tscn, GameBus, atomic SaveStore & EN/ZH LocService)
- Playable zero-build Web HTML5 starter with hand arc, 2f hit-flash, micro shake & checksummed save
Based on gamedev-skills/awesome-gamedev-agent-skills by gamedev-skills (Apache-2.0). The author's LICENSE and NOTICE files ship in the ZIP; ATTRIBUTION.md and CHANGES.md list the source commit and what GameSkill added.
Works well with
Skills the author points to as related or as the better fit for neighbouring tasks.
Godot Nodes & Scenes
Structure Godot 4.7 projects: reusable scenes, runtime instancing, safe node access and autoload singletons.
Godot Signals & Groups
Decoupled Godot 4.7 gameplay with signals and groups: custom signals, Callable connections and broadcasts with call_group.
Godot Resources
Data-driven Godot 4.7 games with custom Resource classes: typed data, .tres files, duplication and threaded loading.
Godot C#
Write Godot 4.7 games in C#: node classes and lifecycle, [Export] fields, signals as C# events and calls between C# and GDScript.
More from Awesome Gamedev Agent Skills
See all 442D Platformer
Build a 2D platformer: run/jump control with coyote time, jump buffering, and variable jump height, plus tiled levels and hazards.
Behavior Trees & Utility AI
Build a behavior-tree runtime and a Utility AI system with response curves, plus hybrid agents where the behavior tree drives utility scoring.
Bevy ECS
Structure a Bevy app around ECS: plugins, components and resources, systems with Query and Commands, system ordering and Time.
Card Game
Build a card game: card data, deck/hand/discard zones, draw/shuffle/reshuffle, a turn structure, costs, and effect resolution.
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.
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.
Godot AI
Production-grade MCP server and editor plugin for Godot 4.7+: 46 tools and 120+ operations for scenes, nodes, scripts, UI and more.