
If you're building anything beyond a single-scene Godot project, you'll eventually need global state that survives scene changes. This covers the full spectrum of AutoLoad patterns, from basic singletons to thread-safe access and lazy loading. The real value is in the "NEVER" section, which catches the common traps like accessing AutoLoads in _init() or creating circular dependencies that hang your game at startup. Includes practical scripts for scene transitions, event buses, and debug consoles. The initialization order diagnostic alone will save you hours if you're running multiple singletons that depend on each other.
$ npx -y skills add thedivergentai/gd-agentic-skills --skill godot-autoload-architecture --agent claude-codeInstalls into .claude/skills of the current project.
MANDATORY before trusting a multi-Autoload dependency graph — verifies boot sequence.
MANDATORY with the mermaid/order diagram — maps who may call whom at boot.
MANDATORY before a cross-system Autoload bus (Achievements, UI, Save events).
MANDATORY before Autoload-owned scene transitions (deferred free / root management).
MANDATORY before Engine.register_singleton DI for non-Node services.
Data that must survive change_scene_to_file() (inventory, settings).
static var global state when you do not need a SceneTree Node.
Sponsors