/godot-dev:godot-scene-filesfrom godot-dev
Edit Godot .tscn and .tres scene/resource files as text: manage ext_resource/sub_resource IDs, UIDs, instanced scenes, and build scenes from scripts.
Ships in godot-dev. 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; scripts run unread.
A scene file is plain text an agent can write directly, as long as the ids, paths and uids agree. The engine is strict about some mistakes (a dangling id fails the whole file) and silent about others (a duplicate id, a misspelt property, a connection to a node that is not there): the silent ones are what this skill's two scripts exist for.
| The situation | Read |
|---|---|
Writing or editing a .tscn or .tres by hand; what each section means; what is safe to touch | reference/tscn-format.md |
| "Parse Error" on load; a node or a connection that vanished; a property that did not stick | reference/tscn-format.md → "What is silently dropped", then scripts/scene_tree.py |
uid=, .uid files, "invalid UID ... using text path instead", "UID duplicate detected"; moving files | reference/uids.md |
| Generating a scene from code or data; nodes missing from the saved file; saved connections | reference/build-from-script.md · resources/build_scene.gd |
| GDScript itself, typed resources as data | godot-gdscript |
.import files of models and their settings | godot-3d-models |
| Whether the whole project loads and runs headless | godot-verify |
project.godot and which generated files to commit | godot-new-project |
[gd_scene format=3]
[ext_resource type="Script" path="gate_switch.gd" id="1"]
[ext_resource type="PackedScene" path="parcel_token.tscn" id="2"]
[sub_resource type="RectangleShape2D" id="gate_shape"]
size = Vector2(16, 96)
[node name="GateRoom" type="Node2D"]
script = ExtResource("1")
[node name="ParcelA" parent="." instance=ExtResource("2")]
position = Vector2(96, 0)
[node name="Gate" type="StaticBody2D" parent="."]
[node name="GateShape" type="CollisionShape2D" parent="Gate"]
shape = SubResource("gate_shape")
[connection signal="body_entered" from="ParcelA" to="." method="on_parcel_touched"]
[ext_resource]s, [sub_resource]s (each before its first use), the root
[node] (no parent), the other nodes (each after its parent), [connection]s, [editable].1_k8xps-style ids and new ones on every
save; by hand, short ones are fine.res://... from the project root, or relative to the file's own folder
(path="gate_switch.gd"), which keeps a folder movable. ResourceSaver always writes
res://.uid= by hand. An unknown uid falls back to the path with a WARNING: on every load.| Edit | Engine | Caught by |
|---|---|---|
ExtResource("9") with no id 9; SubResource("x") used before its section | the whole file fails to load | scene_lint.py, scene_tree.py |
an ext_resource path to a missing file | ERROR: ... referenced non-existent resource; the scene loads without it | both |
two ext_resource (or sub_resource) with one id | loads silently, one wins | scene_lint.py |
a parent= naming no node | a warning; the node lands under a mangled name | both |
| two siblings with one name | loads; connections reach the wrong node | scene_lint.py |
[connection] to a misspelt node or method | no error at load | scene_lint.py (nodes), scene_tree.py (nodes and methods) |
a misspelt property (positon = ...) | ignored silently | scene_tree.py (on nodes) |
a type that does not exist (type="Area2d") | an error and a plain Node placeholder | scene_tree.py |
instance= of a script, not a scene | "Scene instance is missing" | both |
a .tres with no [resource] | fails: "Unexpected end of file" | scene_lint.py |
| one header uid in two files | WARNING: UID duplicate detected at import | scene_lint.py (files linted together) |
python3 scripts/scene_lint.py levels/ --project . # text only, no Godot: ids, order, paths, nodes
GODOT_BIN=/path/to/Godot python3 scripts/scene_tree.py levels/gate_room.tscn --expect gate_room.tree
scene_lint.py reads strings as strings (a multi-line text = "..." whose line starts with
[ is not a section; ExtResource("x") inside a string is not a reference) and prints FAIL
and WARN lines, then scene-lint: PASS|FAIL .... Exit 0 no failure, 2 a failure, 3 a path it
cannot read, 1 usage. --strict fails warnings too (a format other than 3, an unused
resource). Its selftest lints 24 fixtures written to a temp folder.scene_tree.py copies the scene's project into a temp folder (the real one is never opened or
imported), imports it, loads and instantiates the scene in a fresh process, and prints the tree
(Depot/Parcels/ParcelA Area2D instance=res://...), the connections, and every problem.
--expect compares path type per node with a file. Exit 0, 2 a problem, 3 nothing verified
(no Godot, no sentinel), 1 usage.resources/build_scene.gd builds parcel_token.tscn and depot.tscn (an instanced scene
with an override, a unique name, a persistent connection, a node left unowned on purpose) and
checks each saved node count. scene_tree.py --selftest runs it in a temp project, lints what
it wrote, loads depot.tscn in a second process against the expected tree, and requires three
broken scenes to fail.add_child, then owner = root: the other order is "Invalid owner" and the node is lost.CONNECT_PERSIST, to a method of a node in the scene, are saved.godot-verify).scene_tree.py output instead.parent=, [connection] and
NodePath that names it; grep the folder for the old name before calling it done.What the editor writes when it saves (uids on headers and references, id and unique_id
handling), editable children as the editor shows them and building scenes from an @tool
script inside the editor are editor behaviour: run scene_lint.py and scene_tree.py on an
editor-saved file rather than assume its shape.
| Not here | Go to |
|---|---|
Writing GDScript, typed Resource classes | godot-gdscript |
| Model import files, post-import scripts | godot-3d-models |
| Proving the project loads and runs, the verdict | godot-verify |
project.godot, .gitignore for .godot/ | godot-new-project |
| Scenes changed at run time, save files | godot-scene-flow |
| Old-format scenes from an earlier engine | godot-version-guard |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub tipoli5890/game-studio --plugin godot-dev28 skills in this plugin
/godot-2d-controllerMove a 2D character in Godot: CharacterBody2D jump, coyote time, jump buffer, slopes, one-way and moving platforms, top-down movement./godot-2d-renderingGodot 2D look: draw order, z_index and y-sort, CanvasLayer, 2D lights and shadows, canvas shaders, Parallax2D, pixel-perfect scaling./godot-2d-rigA layered 2D character into Godot: rig2d.json to Skeleton2D, Bone2D and weighted Polygon2D parts, cut-out animation, 2D IK./godot-2d-spritesSprite frames into Godot: frames.json to SpriteFrames, AnimatedSprite2D, sheet slicing, pivots, filtering and import for pixel art./godot-3d-controllerMove a 3D character in Godot: CharacterBody3D grounding, slopes and steps, third and first person, lane runner, click-to-move./godot-3d-modelsBring a glTF model into Godot: import settings, post-import script, materials, LODs, collision; audit it against a triangle and texture budget.