BosskuAI Godot Gameplay Scripter
Use this skill for Godot 4 gameplay systems built from scenes, nodes, signals, and resources, with static typing turned on.
How this differs from nearby skills
bosskuai-game-designer: what the game should do on paper. This skill is how to implement it in Godot code.
bosskuai-game-audio-engineer: audio middleware and mixing; here only the gameplay scripting side.
bosskuai-csharp-testing and bosskuai-dotnet-patterns: general C# practice, used when a Godot project mixes C#.
bosskuai-tdd-loop: red-green loop, reusable for isolated scene tests.
Principles
- Compose behaviour from small child nodes (a health component, a movement component) instead of deep inheritance.
- Every scene should run alone (play the scene directly) without assuming a parent or sibling.
- Components talk upward with signals and downward with direct calls. Avoid reaching into parents or
owner.
- Type everything: variables, parameters, returns, typed arrays, typed exports, typed signal parameters. Raise typing warnings to errors in project settings if the team agrees.
- Autoloads hold true global state only (settings, save data, event bus). Gameplay logic does not belong in them, and they cannot be tested in isolation.
- Use custom
Resource classes for static data such as enemy stats so designers edit assets, not code.
Workflow
- Decide which scenes are self-contained units and which signals cross scene boundaries. Put only genuine cross-scene events on an event-bus autoload.
- Declare signals first with typed parameters and doc comments; treat them like a public API.
- Split monolithic character scripts into components, each with one concern and its own exports.
- Acquire node references with typed
@onready variables or exported node paths, not scattered runtime path lookups.
- Lifecycle: set up in
_ready, not _init; disconnect or use one-shot connections where lifetimes differ; free nodes with queue_free.
- Replace per-frame polling with signals when state changes are rare.
- Run each scene standalone and fix errors before integration. Use assertions for development invariants.
- When moving to C#, remember signal naming and connection syntax differ between languages; check the engine documentation for the installed 4.x version.
Guardrails
- Names, annotations, and APIs change between Godot 4.x minor releases. Verify against the installed version's docs.
- Profile before moving code to C# or a native extension; justify with data.
- Do not edit project settings or export presets without saying so.
- Read the engine version from
project.godot (the config/features line), and check Godot's latest stable release notes before you use an API.
- A stored node reference can point to a freed node, for example after a deferred call. Check
is_instance_valid() before you use one.
- Save data from an older build must still load. Add a version field, migrate it, and test with a save from the last release.
Full quality bar (versions, edge cases, data, deploy, proof): ../../references/checklists/engineering-quality-bar.md.
Output format
Scene tree and component split: [..]
Signals: [name, typed params, emitter, listeners]
Autoloads and why each is global: [..]
Typing and lifecycle issues fixed: [..]
Standalone scene test result: [..]
Adapted from agency-agents/game-development/godot/godot-gameplay-scripter.md (agency-agents, MIT).
1---2name: bosskuai-godot-gameplay-scripter3description: "Use when writing or reviewing Godot 4 gameplay code: typed GDScript, signal design, node composition, autoload and event bus use, scene lifecycle, resources for data, and GDScript versus C# boundaries."4metadata:5 source: https://skillmd.com/skills/wankimmy/bosskuai-godot-gameplay-scripter6---78# BosskuAI Godot Gameplay Scripter910Use this skill for Godot 4 gameplay systems built from scenes, nodes, signals, and resources, with static typing turned on.1112## How this differs from nearby skills1314- **`bosskuai-game-designer`**: what the game should do on paper. This skill is how to implement it in Godot code.15- **`bosskuai-game-audio-engineer`**: audio middleware and mixing; here only the gameplay scripting side.16- **`bosskuai-csharp-testing`** and **`bosskuai-dotnet-patterns`**: general C# practice, used when a Godot project mixes C#.17- **`bosskuai-tdd-loop`**: red-green loop, reusable for isolated scene tests.1819## Principles2021- Compose behaviour from small child nodes (a health component, a movement component) instead of deep inheritance.22- Every scene should run alone (play the scene directly) without assuming a parent or sibling.23- Components talk upward with signals and downward with direct calls. Avoid reaching into parents or `owner`.24- Type everything: variables, parameters, returns, typed arrays, typed exports, typed signal parameters. Raise typing warnings to errors in project settings if the team agrees.25- Autoloads hold true global state only (settings, save data, event bus). Gameplay logic does not belong in them, and they cannot be tested in isolation.26- Use custom `Resource` classes for static data such as enemy stats so designers edit assets, not code.2728## Workflow29301. Decide which scenes are self-contained units and which signals cross scene boundaries. Put only genuine cross-scene events on an event-bus autoload.312. Declare signals first with typed parameters and doc comments; treat them like a public API.323. Split monolithic character scripts into components, each with one concern and its own exports.334. Acquire node references with typed `@onready` variables or exported node paths, not scattered runtime path lookups.345. Lifecycle: set up in `_ready`, not `_init`; disconnect or use one-shot connections where lifetimes differ; free nodes with `queue_free`.356. Replace per-frame polling with signals when state changes are rare.367. Run each scene standalone and fix errors before integration. Use assertions for development invariants.378. When moving to C#, remember signal naming and connection syntax differ between languages; check the engine documentation for the installed 4.x version.3839## Guardrails4041- Names, annotations, and APIs change between Godot 4.x minor releases. Verify against the installed version's docs.42- Profile before moving code to C# or a native extension; justify with data.43- Do not edit project settings or export presets without saying so.44- Read the engine version from `project.godot` (the `config/features` line), and check Godot's latest stable release notes before you use an API.45- A stored node reference can point to a freed node, for example after a deferred call. Check `is_instance_valid()` before you use one.46- Save data from an older build must still load. Add a version field, migrate it, and test with a save from the last release.4748Full quality bar (versions, edge cases, data, deploy, proof): `../../references/checklists/engineering-quality-bar.md`.4950## Output format5152```text53Scene tree and component split: [..]54Signals: [name, typed params, emitter, listeners]55Autoloads and why each is global: [..]56Typing and lifecycle issues fixed: [..]57Standalone scene test result: [..]58```5960Adapted from agency-agents/game-development/godot/godot-gameplay-scripter.md (agency-agents, MIT).