All skills
thedivergentai avatar

/godot-autoload-architecture

@9d6e91e

Expert patterns for Godot AutoLoad (singleton) architecture including global state management, scene transitions, signal-based communication, dependency injection, autoload initialization order, and anti-patterns to avoid. Use for game managers, save systems, audio controllers, or cross-scene resources. Trigger keywords: AutoLoad, singleton, GameManager, SceneTransitioner, SaveManager, global_state, autoload_order, signal_bus, dependency_injection.

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

This session only. Nothing lands on disk.

referencesautoload-patterns.md

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

AutoLoad registration (basic)

Do NOT Load this file for expert architecture work — Project Settings → AutoLoad registration and typed-var hygiene are covered by official docs. Open only when a teammate needs a beginner checklist.

Register a Node Autoload

  1. Create res://autoloads/game_manager.gd extending Node.
  2. Project → Project Settings → Autoload → Add → name GameManager.
  3. Verify project.godot:
[autoload]
GameManager="*res://autoloads/game_manager.gd"

Access

func _ready() -> void:
    GameManager.game_started.connect(_on_started)

Prefer signals for state changes; do not reach into Autoload children from gameplay scenes. For boot-order, service locator, and safe scene switch — return to SKILL.md and the scripts under scripts/.

Source: SKILL.md on GitHub

1 warning17d4 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    This skill provides a set of architectural patterns and GDScript templates for managing global state, singletons (AutoLoads), and scene transitions in the Godot Engine. No security risks or malicious behaviors were detected.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: LOW · No issues

  • Runlayer7mo

    4/4 files flagged

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-autoload-architecture