All skills
thedivergentai avatar

/godot-gdscript-mastery

@57c9225

Expert GDScript landmine guidance: static typing opcodes, signal-up/call-down, %UniqueName/@onready lifecycle, Callable bind/unbind, await sequences, typed collections, and safe Dictionary iteration. Use for code review, refactoring hot paths, or project standards. Trigger keywords: static_typing, signal_architecture, unique_nodes, @onready, class_name, signal_up_call_down, Callable.bind, typed_collections, await_sequence.

Use this Skill: https://skilld.dev/gh/thedivergentai/gd-agentic-skills/godot-gdscript-mastery

This session only. Nothing lands on disk.

referencesmigration-notes.md

≈898 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Migration notes: godot-gdscript-mastery

Incremental upgrade for topics this skill covers. Apply one hop, stabilize/test, then next. Never skip hops.

If the project is < 4.0, follow godot-version-migration era bridges (legacy → 3→4) until 4.0, then these hops. Official 3→4: Upgrading from Godot 3 to Godot 4.

3.x → 4.0

Official: Upgrading from Godot 3 to Godot 4

  • Lifecycle _ready/_process no longer auto-call parent — use super().
  • Setters/getters syntax only partially converted — fix manually.
  • tool → @tool on built-in scripts often missed.
  • String vs StringName (&"name"); instance() → instantiate(); Array empty→is_empty, invert→reverse.
  • call_group is immediate by default — use GROUP_CALL_DEFERRED when needed.

4.0 → 4.1

Official: Upgrading to Godot 4.1

  • Object.get_meta_list return type is Array[StringName] (was PackedStringArray).
  • WorkerThreadPool.wait_for_task_completion now returns Error.

4.1 → 4.2

Official: Upgrading to Godot 4.2

  • NOTIFICATION_NODE_RECACHE_REQUESTED removed from Node.

4.2 → 4.3

Official: Upgrading to Godot 4.3

  • Binary serialization of scripted Objects/typed Arrays changed — re-test save/load of custom Resources.
  • PackedByteArray may use compact base64 storage; older editors may not open 4.3 resources with large byte arrays.

4.3 → 4.4

Official: Upgrading to Godot 4.4

  • @export_file Inspector assignments become uid:// — scripts expecting res:// strings must resolve UIDs or use @export_file_path (4.5+).
  • FileAccess.store_* methods return bool success.
  • Curve enforces min_value/max_value — adjust curves that used points outside [0, 1].
  • OS.read_string_from_stdin requires buffer_size.

4.4 → 4.5

Official: Upgrading to Godot 4.5

  • Resource.duplicate(true) deep-duplicates only internal resources; use duplicate_deep(DEEP_DUPLICATE_ALL) for old behavior.
  • Node.get_rpc_config renamed to get_node_rpc_config.
  • JSONRPC.set_scope replaced by set_method.
  • ProjectSettings.add_property_info warns on invalid/usage keys.

4.5 → 4.6

Official: Upgrading to Godot 4.6

  • TSCN gains unique node IDs (large VCS diffs on first 4.6 save — expected).
  • FileAccess.get_as_text drops skip_cr parameter.
  • Performance.add_custom_monitor gains optional type.

4.6 → 4.7

Official: Upgrading to Godot 4.7

  • Setting an element of a packed array property no longer calls the property setter for the whole array.
  • Overrides of methods with typed returns must actually return (add return null if needed).
  • Object.is_class takes StringName.

Source: SKILL.md on GitHub

1 warning16d4 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    This skill provides expert guidance and diagnostic scripts for Godot GDScript development. It includes automated tools to audit project code for performance and architectural best practices. While the skill analyzes local files to provide these diagnostics—creating a surface for indirect prompt injection—the scripts are limited to read-only operations and reporting results to the editor console.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • Runlayer7mo

    3/6 files flagged

Signed by skilld at 57c9225. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 2 months ago

README badge

README badge for thedivergentai/gd-agentic-skills/godot-gdscript-mastery