/summer:scene-hierarchy-designfrom Summer Engine
Structures game scenes by access pattern: separates reusable asset scenes from live node trees, uses wrapper grouping for subtree operations, and keeps gameplay logic path-agnostic with groups and signals.
Ships in Summer Engine. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Scenes in Summer Engine that are organized by access pattern, not by accident: clear separation between reusable asset scenes (.tscn prefabs) and the live node tree, wrapper grouping where whole subtrees are operated on together, flat siblings where type-wide queries dominate, and gameplay logic that does not depend on deep fragile node paths.
Do not use this for shader/material work, asset import mechanics, or gameplay tuning — it is purely about hierarchy shape.
Sander Mertens' ECS article evaluates hierarchies on two axes and both translate directly:
.tscn sub-scenes and scene inheritance) and scene hierarchies (live parent-child relations → the node tree). A scene that repeatedly rebuilds the same inline cluster is missing its asset hierarchy; an asset scene nobody instantiates is dead weight.NodePath references instead of long ancestor chains.Scene hierarchy features from the article map onto Summer MCP tools as follows:
| Feature (article) | Summer Engine tool |
|---|---|
| Instantiate assets | summer_instantiate_scene |
| Recursively despawn | summer_remove_node on the wrapper parent (removes the subtree) |
| Reparent children | summer_remove_node + summer_add_node/summer_instantiate_scene under the new parent |
| Iterate the live hierarchy | summer_get_scene_tree (always read before mutating) |
| Lookup by name | descriptive, unique node names resolved from summer_get_scene_tree |
Recommended scene shape — group by operation, name by role:
World (Node3D) # scene root
├── Camera3D # unique to this scene → inline
├── DirectionalLight3D # unique → inline
├── Level (Node3D) # wrapper: geometry operated as one subtree
├── Props (Node3D) # wrapper: spawn/despawn clusters together
│ ├── Crate_01 (instance of res://scenes/props/crate.tscn)
│ └── Barrel_01 (instance)
├── Enemies (Node3D) # wrapper: recursive clear of all enemies
│ └── Grunt_01 (instance of res://scenes/enemies/grunt.tscn)
└── Player (instance of res://scenes/player.tscn)
Rules of thumb:
.tscn and instantiate. One-offs (main camera, a level-specific light) stay inline.Node, Node2); that breaks name lookup. Name by role and index (Crate_01).Follow the canonical scene loop from the Summer MCP reference: route → orient → read rules → resolve scenePath → mutate → verify.
summer_call {"op":"docs.plan"} to route the goal; summer_get_project_context; summer_call {"op":"summer_get_agent_playbook"}.summer_get_scene_tree on the exact res://...tscn. Never mutate blind, and never edit .tscn text while the engine is running — use the MCP tools.summer_create_scene / build inline then summer_save_scene(scenePath="res://main.tscn", path="res://scenes/<name>.tscn")), then bring them in with summer_instantiate_scene(scenePath="res://main.tscn", parent="./<Wrapper>", scene="res://scenes/<name>.tscn", name="<Role>_01").summer_add_node(parent="./<Wrapper>", type="...", name="...", scenePath="res://main.tscn"). Parent paths are relative with the ./ prefix (./, ./World/Props); never /World or bare World.NodePath/signal connection (summer_connect_signal) rather than hardcoding ./World/Enemies/Grunt_01/Weapon.scenePath to every add/set/remove/instantiate call. Dedicated mutation tools append one final save; use summer_save_scene only for save-as or an explicit flush.summer_get_script_errors, then summer_get_scene_tree again to confirm the intended shape; summer_screenshot (editor viewport) for visual confirmation; summer_play → summer_get_debugger_errors → summer_stop only when runtime behaviour matters.Node2 nodes break lookup-by-name. Rename immediately after adding../NonExistent fails; ensure the parent exists before adding children (read the tree first)..tscn edits while running. They get overwritten when the editor saves; always go through MCP scene tools.summer_get_scene_tree shows the intended wrapper structure with unique descriptive names and no auto-renamed nodes..tscn and appears elsewhere only as instances.summer_remove_node) removes exactly its subtree — the recursive-despawn feature works.summer_get_script_errors and (if played) summer_get_debugger_errors are clean; summer_screenshot matches the intended layout.No Summer MCP tools in this session? Run each one as a command; when summer --version is missing or below 4.0, use npx -y summer-engine@latest in place of summer. Fields are flags in kebab-case (--scene-path res://main.tscn) or one --input '<json>', and summer ops describe <op> prints the exact input. The summer-cli skill has the rest.
| In this skill | Command |
|---|---|
docs.plan | summer docs plan |
summer_add_node | summer engine add-node |
summer_connect_signal | summer engine connect-signal |
summer_create_scene | summer engine create-scene |
summer_get_debugger_errors | summer engine get-debugger-errors |
summer_get_project_context | summer engine get-project-context |
summer_get_scene_tree | summer engine get-scene-tree |
summer_get_script_errors | summer engine get-script-errors |
summer_instantiate_scene | summer engine instantiate-scene |
summer_play | summer engine play |
summer_remove_node | summer engine remove-node |
summer_save_scene | summer engine save-scene |
summer_screenshot | summer engine screenshot |
summer_stop | summer engine stop |
summer_get_agent_playbook | summer tool get-agent-playbook |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
scene-hierarchy, ecs, game-development, node-organization, godot
npx claudepluginhub summerengine/summer --plugin summer123 skills in this plugin
/3d-lightingLight a 3D scene: sun, omni and spot lights, WorldEnvironment, sky, shadows and ambient./adaptive-musicWire music stems to game state: combat, explore, boss and tension crossfades on a shared bus./agent-playtestingPlaytest by driving the live game: deterministic launch, frame-stamped probes, scripted or recorded input./ambient-bedGenerate a long looping location ambience (forest, dungeon, city, cave) on the Ambient bus./animated-loopGenerate a short seamless video loop: splash background, animated logo backdrop, idle title screen./animation-treeWire AnimationTree state machines and blend trees: locomotion blends, attack interrupts, hit reactions.Other plugins' skills for the same job