All skills
thedivergentai avatar

/godot-state-machine-advanced

@9d6e91e

Expert blueprint for hierarchical finite state machines (HSM) and pushdown automata for complex AI/character behaviors. Covers state stacks, sub-states, transition validation, and state context passing. Use when basic FSMs are insufficient OR implementing layered AI. Keywords state machine, HSM, hierarchical, pushdown automata, state stack, FSM, AI behavior.

Use this Skill: https://skilld.dev/gh/thedivergentai/gd-agentic-skills/godot-state-machine-advanced

This session only. Nothing lands on disk.

referencesmigration-notes.md

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

Migration notes: godot-state-machine-advanced

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.

4.0 → 4.1

Official: Upgrading to Godot 4.1

  • AnimationNode._process requires new test_only parameter; blend_input/blend_node gain optional test_only.
  • AnimationNodeStateMachinePlayback.get_travel_path returns Array[StringName].

4.1 → 4.2

Official: Upgrading to Godot 4.2

  • Many AnimationPlayer/AnimationTree APIs moved to AnimationMixer base.
  • method_call_mode → callback_mode_method; playback_process_mode/process_callback → callback_mode_process.
  • playback_active → active on mixer; AnimationTree.tree_root typed as AnimationRootNode.
  • AnimationPlayer.seek gains optional update_only.

4.2 → 4.3

Official: Upgrading to Godot 4.3

  • Animation interpolate / track_find_key gain backward/limit options.
  • AnimationMixer._post_process_key_value object arg is uint64.
  • Skeleton3D.bone_pose_changed → skeleton_updated; BoneAttachment3D.on_bone_pose_update → on_skeleton_update.
  • Capture mode replaced; see Migrating Animations 4.0→4.3 article for blend/time semantics.

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+).

4.4 → 4.5

Official: Upgrading to Godot 4.5

  • Resource deep-duplicate and UID export-file changes affect inventory/quest/economy Resource graphs.

4.5 → 4.6

Official: Upgrading to Godot 4.6

  • AnimationPlayer assigned_animation / autoplay / current_animation are StringName (C# binary break).
  • get_queue returns StringName[].

4.6 → 4.7

Official: Upgrading to Godot 4.7

  • Re-validate Resource pipelines after packed-array setter and typed-return GDScript changes.
  • Animation.length uses double metadata (C# impact).
  • AnimationNodeBlendSpace1D/2D.add_blend_point optional name.
  • LookAtModifier3D.relative default is false (was true).
  • Packed array element assignment no longer triggers whole-property setter.
  • Typed-return overrides require an explicit return statement.

Source: SKILL.md on GitHub

No alerts17d4 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    The skill provides a standard and professional set of templates for advanced AI state machines in Godot. The analysis found no malicious behavior, exfiltration patterns, or safety bypasses. It correctly implements data-driven patterns expected for game development.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: LOW · No issues

  • Runlayer7mo

    3 files scanned · No issues

Signed by skilld at 9d6e91e. 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-state-machine-advanced