godot-scene-architecture SKILL.md skillA
godot-scene-architecture from mindsmaster/godot-claude-code-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add mindsmaster/godot-claude-code-skills/godot-scene-architecture@git:20261106.3b04668Pins git:20261106.3b04668 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- mindsmaster/godot-claude-code-skills
- Path
skills/godot-scene-architecture/SKILL.md- Versions recorded
- 5
- Latest version
- git:20261106.3b04668, committed Nov 6, 2026
- First version recorded
- Oct 24, 2026
- Size
- 13,638 bytes
- Repository stars
- 3
- License
- MIT
拆分 Godot 4 场景与组织节点时用。PackedScene 组件复用、节点引用 @onready @export %UniqueName、信号与直接调用的选择、分组 call_group、Autoload 与普通节点、组合与继承、状态机、暂停 process_mode、queue_free 与 is_instance_valid、_ready 顺序、场景切换。scene tree architecture, signals, autoload.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Godot 场景架构
解决怎么把游戏拆成场景和节点:谁实例化谁,节点怎么互相找到,怎么通信,状态怎么管,场景怎么切。不管具体节点的用法,见 godot-2d godot-ui godot-animation。资源当数据用见 godot-resources-data,C# 通用规则见 godot-csharp。
默认做法:一个概念一个 `.tscn`,脚本挂在场景根上,场景自带它需要的子节点,对外只露 `@export` 属性、信号和少量方法。
## 先查内置
| 需求 | 用这个 | 别自己写 |
|---|---|---|
| 可复用对象 敌人 子弹 面板 | 独立 `.tscn` + `PackedScene.instantiate()` | 代码里 `new` 一整棵节点树,`.tscn` 只剩空壳 |
| 同场景内的节点引用 | `%UniqueName` 或 `@onready` 缓存 | 长路径 `get_node("A/B/C")`,每帧 `get_node` |
| 场景外的目标引用 | `@export var target: Node2D` 在 Inspector 连 | 写死 `/root/Main/Level/Player` |
| 一类对象批量通知 | `add_to_group` + `get_tree().call_group` | 手写注册表数组,全局事件总线 |
| 子对象通知父对象 | 信号 | 子节点 `get_parent().foo()` |
| 全局共享的数据 | 自定义 `Resource`,或 autoload 里只放真全局状态 | Manager 套 Manager |
| 状态切换 | `enum` + `match`,复杂时状态子节点或 `AnimationTree` 状态机 | 一串 `is_jumping` `is_attacking` bool 加计时器 |
| 暂停菜单 | `SceneTree.paused` + `Node.process_mode` | 每个脚本里判断 `is_paused` 的 bool |
| 同一逻辑给多个场景用 | 组件节点 `class_name` 脚本,做成子节点 | 复制粘贴到两个脚本,深继承链 |
| 场景切换 | `change_scene_to_file` / `change_scene_to_packed` | 手动 `free` 旧场景再 `add_child` 新场景 |
| 非节点的纯逻辑对象 | `RefCounted` 或 `Resource` | 为了存数据继承 `Node` 再挂树上 |
## 场景即组件
场景自包含:只依赖自己的子节点。需要外部信息时由父级注入,三种方式按用途选:
| 方式 | 用于 | 写法 |
…Read the whole file at its exact version.
How to install
mdr add mindsmaster/godot-claude-code-skills/godot-scene-architecture@sha256:7d32a3a59bc60ab3The line at the top of this page pins the label git:20261106.3b04668, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_ciktfigtovpuyfnz)
0 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Oct 24, 2026 and Nov 6, 2026, about one every 3 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261106.3b04668 latest | 2026-11-06 | 3b04668 | 13,638 B | A | view · diff |
| git:20261103.dc2b2ac | 2026-11-03 | dc2b2ac | 13,632 B | A | view · diff |
| git:20261103.f7a0e99 | 2026-11-03 | f7a0e99 | 13,452 B | A | view · diff |
| git:20261024.5ffa874 | 2026-10-24 | 5ffa874 | 13,796 B | A | view · diff |
| git:20261024.81e1ef8 | 2026-10-24 | 81e1ef8 | 13,179 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (13638 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
mindsmaster/godot-claude-code-skills · 3 stars · license MIT · pushed 2026-11-06 · branch master
API
GET https://markdownregistry.com/api/v1/artifacts/art_ciktfigtovpuyfnz GET https://markdownregistry.com/api/v1/resolve?ref=mindsmaster/godot-claude-code-skills/godot-scene-architecture GET https://markdownregistry.com/api/v1/blob/7d32a3a59bc60ab30f85dad271265f807559acf94a971758a046c359e60a275a
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.