MCPInstall

godot-scene-management

Expert blueprint for scene loading, transitions, async (background) loading, instance management, and caching. Covers fade transitions, loading screens, dynamic spawning, and scene persistence. Use when implementing level changes OR dynamic content loading. Keywords scene, loading, transition, async, ResourceLoader, changescene, preload, PackedScene, fade.

Installs
466
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/thedivergentai/game-dev-agentic-skills --skill godot-scene-management
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads godot-scene-management automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Available Scripts

MANDATORY triggers below — read the matching script; do not paste incomplete Autoload loaders.

  • async_scene_manager.gd — MANDATORY before loading screens / threaded level swaps (THREAD_LOAD_FAILED included).
  • background_resource_loader.gd — MANDATORY when preloading the next level during gameplay (hitch avoidance).
  • scene_transition_manager.gd — Fade/wipe Tweens wrapping a safe change.
  • scene_pool.gd — MANDATORY before frequent spawn/despawn (bullets, enemies, VFX).
  • scene_instancing_pooling.gd — Pool fill / reclaim patterns.
  • additive_ui_layering.gd — Menus/overlays without destroying the world scene.
  • subviewport_scene_layering.gd — Parallel worlds / minimaps (SubViewport input plan required).
  • persistent_data_preservation.gd — Autoload / root holders across swaps.
  • scene_state_manager.gd — Persist-group save/restore across transitions.
  • node_unparent_reparent.gd — Transform-preserving reparent (never mid-physics blindly).
  • node_path_safe_retrieval.gd — %UniqueName / guarded @onready.
  • dynamic_script_attachment.gd — Runtime script attach for mods/dynamic entities.

NEVER Do in Scene Management

  • NEVER load large scenes synchronously — load("res://large_scene.tscn") on the Main Thread causes "hiccups" or full freezes during level transitions. Use ResourceLoader.load_threaded_request() for async loading with a progress bar.
  • NEVER use get_tree().change_scene_to_file() for transient state — This method purges the current scene and all its local variables. Use an Autoload (Singleton) or a persistent 'Game' node to store state across levels.
  • NEVER instance 100+ identical nodes per frame — Use Object Pooling to reuse bullets, debris, or enemies. Constant instantiate() and queue_free() calls spike CPU and trigger the Garbage Collector too often.
  • NEVER hardcode get_node("../../Path/To/Node") — These paths break as soon as you move a node in the editor. Use Scene Unique Names (%NodeName) or @export var target_node: Node for robust references.
  • NEVER reparent nodes mid-physics-step without care — Reparenting can cause one-frame transform "teleports". Always store the global_transform and re-apply it after the add_child() call.
  • NEVER rely on the SceneTree for 10,000+ objects — If you don't need SceneTree features (signals, per-node scripts), use PhysicsServer and RenderingServer directly for raw performance.
  • NEVER forget to handle NOTIFICATION_WM_CLOSE_REQUEST — On desktop, if you don't handle the close request in a persistent node, the game may close during a critical save operation.
  • NEVER use deep recursion for node cleanup — queue_free() is natively recursive in Godot 4. Freeing the root node automatically cleans up all children. Manual loops are redundant and inefficient.
  • NEVER mix SubViewport and main world inputs without a plan — By default, input events bubble up. Use set_input_as_handled() to prevent UI clicks in a subviewport from triggering gameplay in the main world.
  • NEVER use change_scene to "Reset" a level — It reloads everything from disk. For a quick respawn, just reset the variables and move the player to the start position.

Decision Tree: How to Change Content

GoalPreferMANDATORY script
Full level swap with progress UIThreaded load → swap when THREAD_LOAD_LOADEDasync_scene_manager.gd
Hide hitch before a door/triggerStart threaded request early during playbackground_resource_loader.gd
Fade / wipe around a swapTransition Autoload wraps the managerscene_transition_manager.gd
Keep world; show pause/map/inventoryAdditive UI layer (do not change_scene)additive_ui_layering.gd
Manual root swap / deferred freeOwn current_scene lifecyclePeer docs + safe patterns in godot-autoload-architecture
Spawn many identical actorsPool, never raw instantiate/free stormsscene_pool.gd / scene_instancing_pooling.gd
Minimap / split renderSubViewport + update mode + input isolationsubviewport_scene_layering.gd
Survive scene purgeAutoload / persist group — not localspersistent_data_preservation.gd / scene_state_manager.gd
Quick respawnReset state + teleport — not change_scene—
DLC / hot patch scenesProjectSettings.load_resource_pack then load path(PCK) see Official Docs

Expert WHY (staging / integrity)

  • Pool pre-fill during loading screens (PROCESS_MODE_DISABLED + hide) — absorb instantiate cost up front via scene_pool.gd.
  • Background staging — load_threaded_request mid-gameplay; transition only when loaded (background_resource_loader.gd).
  • PCK overrides — mount pack, then change_scene/load the same res:// path for patched content.
  • Orphan audit — after swaps, Performance.OBJECT_ORPHAN_NODE_COUNT > 0 means leaked refs still hold freed nodes.
  • Cleanup — queue_free() on a root is recursive in Godot 4; no manual child loops.
  • Quick respawn — reset state + teleport; NEVER change_scene just to restart a level.

Deep dive (load on demand)

Fade Autoloads, loading screens, spawn tracking, persistence holders, PCK patch — references/scene-patterns-deep.md.

Reference

Progressive disclosure: open Official Documentation links only when researching a specific API; load Related Skills when routing to a peer domain — do not preload the whole lattice.

Official Documentation

  • Background loading — ResourceLoader.load_threaded_request / status polling for hitch-free level loads and progress bars.
  • Change scenes manually — Deferred free + root reparent patterns behind safe switchers (prefer over blind change_scene_to_file for staged transitions).
  • Using SceneTree — current_scene, pause, groups, and how the tree relates to Autoload root children across swaps.
  • Scene organization — Ownership edges so loaders/UI layers do not become God Objects when nesting sub-scenes.
  • Nodes and scene instances — PackedScene.instantiate(), ownership, and when to preload vs load at runtime.
  • Scene unique nodes — %Name references that survive hierarchy edits better than brittle get_node("../../…") paths.
  • Autoloads versus regular nodes — Keep cross-scene state in singletons; keep level content in scenes the tree can unload.
  • Using Viewports — SubViewport worlds for minimaps, split-screen, and layered rendering without swapping the main scene.
  • Groups — Persist-group save/restore and bulk cleanup across scene transitions.
  • Exporting packs, patches, and mods — ProjectSettings.load_resource_pack for DLC/mod scene overrides on res:// paths.
  • ResourceLoader — Threaded load API surface (load_threaded_*, exists) used by async managers.
  • PackedScene — Scene resource type for pooling, change_scene_to_packed, and instance caches.

Related Skills

Prerequisites

  • godot-project-foundations — Project layout, scene tree basics, and import paths loaders and Autoload registries assume.
  • godot-gdscript-mastery — Typed signals, await, and process-frame polling required by threaded load loops and transition staging.
  • godot-autoload-architecture — Singleton boot order and ownership so Game/state holders survive change_scene without becoming God Objects.

Complements

  • godot-signal-architecture — Reconnect or bus-emit after swaps so loaders do not leave ghost listeners on freed scenes.
  • godot-resource-data-patterns — Level registries and payload Resources that map IDs to .tscn paths instead of hardcoded strings.
  • godot-save-load-systems — Serialize persist-group / Autoload state; scene swaps must not invent a second save path.
  • godot-tweening — Fade and wipe Tweens that wrap scene changes without blocking the load thread.
  • godot-ui-containers — Loading screens and additive menu layers parented under persistent UI roots.
  • godot-performance-optimization — Pool budgets, orphan-node monitors, and when SceneTree should yield to servers for dense spawns.
  • godot-composition — Component scenes and ownership edges that keep instanced gameplay pieces swappable without path coupling.

Downstream / consumers

  • godot-genre-open-world — Chunk streaming and background preloads built on threaded ResourceLoader queues from this skill.
  • godot-export-builds — PCK/patch packaging that supplies the runtime packs scene patchers mount.
  • godot-multiplayer-networking — Authority-aware scene spawns and late-join sync that reuse pooling and safe change patterns.

Master

  • godot-master — Library router and mirrored module entry; open when discovering which Domain Skill owns loading vs persistence vs UI.

FAQ

What does the godot-scene-management skill do?

Expert blueprint for scene loading, transitions, async (background) loading, instance management, and caching. Covers fade transitions, loading screens, dynamic spawning, and scene persistence. Use when implementing level changes OR dynamic content loading. Keywords scene, loading, transition, async, ResourceLoader, changescene, preload, PackedScene, fade.

How do I install godot-scene-management?

Run npx skills add https://github.com/thedivergentai/game-dev-agentic-skills --skill godot-scene-management in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/godot-scene-management/ (personal) or .claude/skills/godot-scene-management/ (project).

Which AI agents can use godot-scene-management?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is godot-scene-management safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains godot-scene-management?

It is published by thedivergentai in thedivergentai/game-dev-agentic-skills. It has 466 recorded installs.

More from thedivergentai/game-dev-agentic-skills

View all →

godot-master

thedivergentai/game-dev-agentic-skills

Consolidated expert library for professional Godot 4.7+ game and application development. Orchestrates 92 Domain Skills through architectural workflows, anti-pattern catalogs, performance budgets, and Server API patterns. Use when: (1) starting a new Godot project, (2) designing game or app architecture, (3) building entity/component systems, (4) debugging performance or physics issues, (5) choosing between 2D/3D approaches, (6) implementing multiplayer, (7) optimizing draw calls or script time, (8) porting between platforms, (9) migrating from 4.6 to 4.7. Primary entry point for ALL Godot development tasks. Keywords: Godot 4.7, AreaLight3D, HDR, Asset Store, godot-master.

godot-shaders-basics

thedivergentai/game-dev-agentic-skills

Expert Godot shader patterns for batch-safe hitflash, alpha-scissor foliage/dissolve, screenspace postFX, depth reconstruction, triplanar, and instance uniforms — not first-shader tutorials. Trigger on draw-call batching breaks, discard vs depth-prepass, foliage shadows, post-process quads, or world-position FX. Keywords: instance uniform, ALPHASCISSOR, hintscreentexture, hintdepthtexture, global uniform, sampler2DArray, canvasitem, spatial, post-processing.

AI & Agents691 installs

godot-2d-animation

thedivergentai/game-dev-agentic-skills

Expert patterns for 2D animation in Godot using AnimatedSprite2D and skeletal cutout rigs. Use when implementing sprite frame animations, procedural animation (squash/stretch), cutout bone hierarchies, or frame-perfect timing systems. Trigger keywords: AnimatedSprite2D, SpriteFrames, animationfinished, animationlooped, framechanged, frameprogress, setframeandprogress, cutout animation, skeletal 2D, Bone2D, procedural animation, animation state machine, advance(0).

Frontend & Design688 installs

godot-ui-theming

thedivergentai/game-dev-agentic-skills

Expert blueprint for UI themes using Theme resources, StyleBoxes, custom fonts, and theme overrides for consistent visual styling. Covers StyleBoxFlat/Texture, theme inheritance, dynamic theme switching, and font variations. Use when implementing consistent UI styling OR supporting multiple themes. Keywords Theme, StyleBox, StyleBoxFlat, addthemeoverride, font, theme inheritance, dark mode.

Frontend & Design623 installs

godot-gdscript-mastery

thedivergentai/game-dev-agentic-skills

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: statictyping, signalarchitecture, uniquenodes, @onready, classname, signalupcalldown, Callable.bind, typedcollections, awaitsequence.

godot-particles

thedivergentai/game-dev-agentic-skills

Expert blueprint for GPU particle systems (explosions, magic effects, weather, trails) using GPUParticles2D/3D, ParticleProcessMaterial, gradients, sub-emitters, and custom shaders. Use when creating VFX, environmental effects, or visual feedback. Keywords GPUParticles2D, ParticleProcessMaterial, emissionshape, colorramp, subemitter, oneshot.

Media & Creative614 installs

Popular ai & agents skills

View category →

google-agents-cli-publish

google/agents-cli

This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini", "publish to Gemini" (formerly Gemini Enterprise), or needs guidance on the agents-cli publish gemini command. Also use when the user wants to "manage agents in Agent Registry", "list/update/delete registered agents", or "register an MCP server". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment (use google-agents-cli-deploy).

AI & Agents513.9K installs

google-agents-cli-eval

google/agents-cli

This skill should be used when the user wants to "run an evaluation", "evaluate my agent", "evaluate my ADK agent", "write an eval dataset", "analyze eval failures", "compare eval results", "optimize agent", or needs guidance on the Gemini platform eval methodology and the Quality Flywheel. Covers eval metrics, dataset schema, LLM-as-judge scoring, and common failure causes. Applies to any agents-cli project, whatever framework the agent is written in. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), deployment (use google-agents-cli-deploy), or project scaffolding (use google-agents-cli-scaffold).

AI & Agents513.5K installs

skill-creator

anthropics/skills

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

OfficialAI & Agents416.4K installs

codex-pet

prime-skills/runcomfy-agent-skills

Codex Pet generator on RunComfy. Build a Codex-compatible Codex Pet spritesheet.webp + pet.json from a single reference image, drop it into ${CODEXHOME:-$HOME/.codex}/pets/ / and Codex picks it up as a custom Codex Pet next to the 8 built-ins. This skill produces the exact Codex Pet atlas Codex expects (1536x1872 PNG/WebP, 8 cols x 9 rows, 192x208 cells, 9 animation states — idle, running-right, running-left, waving, jumping, failed, waiting, running, review). Calls OpenAI GPT Image 2 edit ONCE via the local RunComfy CLI as runcomfy run openai/gpt-image-2/edit to produce a canonical Codex Pet pose, then assembles all 9 animation rows programmatically with ImageMagick micro-transforms — no Codex Pro, no $imagegen, no OPENAIAPIKEY required, only RUNCOMFYTOKEN. Triggers on "codex pet", "create codex pet", "make codex pet", "hatch codex pet", "/hatch image", "desktop pet codex", "codex pets", "spritesheet.webp", or any explicit ask to build a custom pet for OpenAI Codex.

AI & Agents402.1K installs

full-output-enforcement

leonxlnx/taste-skill

Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.

AI & Agents401K installs

executing-plans

obra/superpowers

Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available

AI & Agents245.7K installs