Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

godot-scene-management

БесплатноЗапускает вложенные скриптыНе проверен

Expert blueprint for scene loading, transitions, async (background) loading, instance management, and caching. Covers fade transitions, loading screens…

thedivergentaiот thedivergentai★ 1 019 звёзд на GitHub

Об этом скилле

Available Scripts

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

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

Goal Prefer MANDATORY script
Full level swap with progress UI Threaded load → swap when THREAD_LOAD_LOADED async_scene_manager.gd
Hide hitch before a door/trigger Start threaded request early during play background_resource_loader.gd
Fade / wipe around a swap Transition Autoload wraps the manager scene_transition_manager.gd
Keep world; show pause/map/inventory Additive UI layer (do not change_scene) additive_ui_layering.gd
Manual root swap / deferred free Own current_scene lifecycle Peer docs + safe patterns in godot-autoload-architecture
Spawn many identical actors Pool, never raw instantiate/free storms scene_pool.gd / scene_instancing_pooling.gd
Minimap / split render SubViewport + update mode + input isolation subviewport_scene_layering.gd
Survive scene purge Autoload / persist group — not locals [persistent_data_preservation.gd](scripts/persistent_data_preserva
Полный SKILL.md на GitHub

Установить godot-scene-management в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/migration-notes.mdreferences/scene-patterns-deep.mdscripts/additive_ui_layering.gdscripts/async_scene_manager.gdscripts/background_resource_loader.gdscripts/dynamic_script_attachment.gdscripts/node_path_safe_retrieval.gdscripts/node_unparent_reparent.gdscripts/persistent_data_preservation.gdscripts/scene_instancing_pooling.gdscripts/scene_pool.gdscripts/scene_state_manager.gdscripts/scene_transition_manager.gdscripts/subviewport_scene_layering.gd

FAQ

Что делает скилл 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, change_scene, preload, PackedScene, fade.

Как установить скилл godot-scene-management?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл godot-scene-management запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить godot-scene-management с