Godot Nodes & Scenes
/godot-nodes-scenes
Structure Godot 4.7 projects: reusable scenes, runtime instancing, safe node access and autoload singletons.
- 许可证
- Apache-2.0
- 出品
- GameSkill 出品
所属合集
Awesome Gamedev Agent Skills
77 portable SKILL.md skills across 12 engines (Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox, Defold, Ebitengine), with a router.
我们测过
在 Godot 4.7.2 上通过 25/25 项检查(2026-10-28):能触发、有可运行示例、有截图和自检清单、单一职责、中英文文档齐全。触发检查是把提示词和 skill 描述做匹配,不是真实 agent 运行。
测试报告这个 skill 做什么
什么时候触发
7 project with the scene tree and node composition: build reusable scenes, instance PackedScenes at runtime, navigate the tree safely, and register autoload singletons. …
GameSkill 测过的版本
GameSkill 调优版:skill 文件取自提交 184b72be0288,按我们的 skill 流程加上可运行示例、测试报告、自检清单和中文指南。
协议:基于 gamedev-skills/awesome-gamedev-agent-skills(作者 gamedev-skills),协议 Apache-2.0。ZIP 保留协议文件(LICENSE, NOTICE),CHANGES.md 列出了 GameSkill 加的所有文件。

自检清单
- 每个场景只做一件事,根节点有脚本和 @export 配置 / Each scene does one job; its root has a script with @export settings
- 运行时生成用 instantiate() + add_child(),没有用 Godot 3 的 instance() / Runtime spawns use instantiate() + add_child(), not Godot 3's instance()
- 深层节点用 %唯一名,可选节点用 get_node_or_null() / Deep nodes use %UniqueName; optional nodes use get_node_or_null()
- 删除节点用 queue_free(),之后的访问先用 is_instance_valid() 判断 / Nodes are removed with queue_free() and later access checks is_instance_valid()
- 改完场景后跑 scripts/check_godot_project.py,退出码为 0 / After editing scenes, scripts/check_godot_project.py exits 0
中文指南
这个 skill 做什么
教 AI 按 Godot 4.7 的方式组织工程:把功能拆成小场景(.tscn),运行时用 instantiate() 生成实例,安全地取节点,用自动加载(autoload)放全局状态,以及切换场景。还自带一个不需要装 Godot 的检查脚本 scripts/check_godot_project.py,能找出 res:// 路径写错、资源 id 缺失、父节点路径错误等问题。
什么时候用
- 设计场景结构,决定一个功能拆成哪些节点
- 生成子弹、敌人、UI 等实例
get_node()/$路径返回 null,或报 “previously freed instance”- 需要全局的分数、音频、场景管理
怎么装
下载本页的 ZIP,把 godot-nodes-scenes/ 整个文件夹放进 .claude/skills/(Claude Code)或 .agents/skills/(Codex、Cursor),重启 agent。
最小示例
gameskill/examples/ 是一个 Godot 4.7 工程:主场景生成子弹,GameState 自动加载记分,分数通过信号更新到 %ScoreLabel,再切换到第二关。
我们怎么测的
在 Godot 4.7.2 无头模式下跑 12 项检查(自动加载顺序、@onready 和唯一名、生成实例、queue_free() 的时机、切换场景后全局状态保留),再用 skill 自带的 check_godot_project.py 检查示例工程,最后渲染截图。结果在 gameskill/test-report.json。
搭配
godot-2d-movement:给场景里的角色加移动save-systems:把GameState存到磁盘
安装
告诉你的 AI
Install the skill from https://gameskill.dev/skills/godot-nodes-scenes/install.md
GameSkill 测过的版本
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/godot-nodes-scenes.zip -o /tmp/gameskill-godot-nodes-scenes.zip
unzip -oq /tmp/gameskill-godot-nodes-scenes.zip -d .claude/skills
rm /tmp/gameskill-godot-nodes-scenes.zip包含内容
- Worked steps: Instance a scene at runtime; Safe node access: $, get_node_or_null, and unique names; An autoload singleton; Change the running scene
- A pitfalls section with the mistakes to avoid
- Bundled 1 reference doc the agent reads when needed
- Written for Godot 4.7
适合
- Designing .tscn scenes, deciding how to split nodes, spawning instances with instantiate(), wiring autoloads
- Fixing "node not found"/freed-node errors in a Godot project
试试这条提示词
Restructure my project into reusable scenes with an autoload for game state.关于这个 Skill
Structure a Godot 4.7 project with the scene tree and node composition: build reusable scenes, instance PackedScenes at runtime, navigate the tree safely, and register autoload singletons. Use when designing .tscn scenes, deciding how to split nodes, spawning instances with instantiate(), wiring autoloads, or fixing "node not found"/freed-node errors in a Godot project.
From the godot-nodes-scenes SKILL.md in gamedev-skills/awesome-gamedev-agent-skills.
What's inside
- Instance a scene at runtime
- Safe node access: $, get_node_or_null, and unique names
- An autoload singleton (global game state)
- Change the running scene
环境要求
- Godot 4.7
常见问题
肉鸽构筑白标起步工程(Godot 4 + Web + 平衡表)
告别空工程从零搭架子!开箱即玩的白标肉鸽构筑商业起步模板(Godot 4 完整工程 + Web 可玩版):含开局三槽赐福、无交叉 DAG 地图、扇形出牌、Boss 半血锁血、篝火/商店删牌、32 位校验防坏档 SaveStore、中英切换、30 牌/18 遗物/15 怪平衡表与 1,000 局 HTML 压测工具。
- 完整 Godot 4.3+ 工程(打开即 F5 运行,内置防坏档原子 SaveStore + 中英实时切换 LocService)
- 零构建 Web HTML5 可玩起步版(扇形手牌、2 帧受击闪白、震屏与 Boss 半血锁血全跑通)
基于 gamedev-skills/awesome-gamedev-agent-skills (作者 gamedev-skills,协议 Apache-2.0)。ZIP 里保留原作者的 LICENSE 和 NOTICE,ATTRIBUTION.md 和 CHANGES.md 写明来源提交和 GameSkill 加的内容。
搭配使用
作者标注的相关 Skills,或更适合相邻任务的 Skills。
GDScript for Godot 4
Write idiomatic GDScript for Godot 4.7: static typing, the node lifecycle (_ready/_process/_physics_process), @export/@onready/@tool annotations, signals, and await for asynchronous flow.
Godot Signals & Groups
Decoupled Godot 4.7 gameplay with signals and groups: custom signals, Callable connections and broadcasts with call_group.
Godot Resources
Data-driven Godot 4.7 games with custom Resource classes: typed data, .tres files, duplication and threaded loading.
Game Save Systems
Design save/load for game state — choosing what to serialize, file formats, save slots, atomic crash-safe writes, schema versioning and migration, and autosave.
Awesome Gamedev Agent Skills 中的更多 Skills
查看全部 44 个2D Platformer
Build a 2D platformer: run/jump control with coyote time, jump buffering, and variable jump height, plus tiled levels and hazards.
Behavior Trees & Utility AI
Build a behavior-tree runtime and a Utility AI system with response curves, plus hybrid agents where the behavior tree drives utility scoring.
Bevy ECS
Structure a Bevy app around ECS: plugins, components and resources, systems with Query and Commands, system ordering and Time.
Card Game
Build a card game: card data, deck/hand/discard zones, draw/shuffle/reshuffle, a turn structure, costs, and effect resolution.
相似 skills
Claude Code Game Studios
Turns Claude Code into a full game studio: 49 agents and 72 workflow skills arranged like a real studio hierarchy.
Godogen
Autonomous game development with Claude Code and Codex. Publishes a ready game repo for Godot, Bevy, Babylon.js or three.js.
pixelfx
244 pixel-art effects written as code (fire, explosions, magic, weather, UI, pickups, critters) plus a draft, render, look, refine loop for making new ones; every effect exports a sprite sheet with Aseprite-style JSON for Godot, Unity, Phaser or any engine.
Godot AI
Production-grade MCP server and editor plugin for Godot 4.7+: 46 tools and 120+ operations for scenes, nodes, scripts, UI and more.