[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79MCMN4DVB9PHJPCTXPF8X6":3,"skill-same:01M79MCMN4DVB9PHJPCTXPF8X6":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M79MCMN4DVB9PHJPCTXPF8X6","godot-nodes-scenes",null,"Structure a Godot 4.x 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\"\u002Ffreed-node errors in a Godot project.","mistervaibhav\u002Fskills","mistervaibhav","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F41189028?v=4","01M79KACH05EG9FMM6DQVHAVK9","Vaibhav Singh","01M79KACJB3431Y8CFJQ02MTTM",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fgodot-nodes-scenes\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: godot-nodes-scenes\ndescription: >\n  Structure a Godot 4.x project with the scene tree and node composition: build\n  reusable scenes, instance PackedScenes at runtime, navigate the tree safely,\n  and register autoload singletons. Use when designing .tscn scenes, deciding how\n  to split nodes, spawning instances with instantiate(), wiring autoloads, or\n  fixing \"node not found\"\u002Ffreed-node errors in a Godot project.\nlicense: Apache-2.0\ncompatibility: Godot 4.3+\nmetadata:\n  engine: godot\n  category: godot\n  difficulty: beginner\n---\n\n# Godot Nodes & Scenes (4.x)\n\nCompose games from nodes and scenes, instance them at runtime, and access the tree\nwithout crashing on freed or missing nodes. Targets **Godot 4.3+**.\n\n## When to use\n\n- Use when structuring `.tscn` scenes, choosing how to break a feature into nodes,\n  instancing a `PackedScene` (bullets, enemies, UI), or setting up autoload singletons.\n- Use when debugging `get_node()` \u002F `$Path` returning `null`, or \"Attempt to call on a\n  previously freed instance\".\n\n**When _not_ to use:** GDScript language\u002Fsyntax → `godot-gdscript`; signal-based\ndecoupling → `godot-signals-groups`; physics bodies\u002Fcollisions → `godot-physics`.\n\n## Core workflow\n\n1. **Model with composition.** A scene is a tree of nodes saved as `.tscn`. Build small,\n   single-purpose scenes (Player, Bullet, Enemy) and compose larger scenes from them.\n   Favor adding child nodes over deep inheritance.\n2. **Make a scene reusable** by giving its root a script and exposing `@export` config.\n   Save it; it becomes a `PackedScene` you can instance many times.\n3. **Instance at runtime** with `preload`\u002F`load` → `scene.instantiate()` →\n   `add_child(instance)`. Set position\u002Fstate _after_ adding (or before, both work).\n4. **Access nodes safely.** Use `@onready var x = $Path` for fixed children; use unique\n   names (`%Name`) for nodes deep in the tree; never assume a node still exists.\n5. **Use autoloads for global state\u002Fservices** (game state, audio, scene switching) —\n   registered in Project Settings > Globals (Autoload), accessible by name everywhere.\n6. **Free nodes with `queue_free()`** and guard later access with `is_instance_valid()`.\n\n## Patterns\n\n### 1. Instance a scene at runtime\n\n```gdscript\nextends Node2D\n\nconst BULLET := preload(\"res:\u002F\u002Fbullet.tscn\")   # preload: loaded at compile time\n\nfunc shoot(at: Vector2, dir: Vector2) -> void:\n    var bullet := BULLET.instantiate()         # create an instance of the scene\n    bullet.global_position = at\n    bullet.direction = dir                      # set exported\u002Fpublic state\n    add_child(bullet)                           # now it's in the tree and runs\n```\n\n### 2. Safe node access: $, get_node_or_null, and unique names\n\n```gdscript\n@onready var label: Label = $UI\u002FLabel            # $ is sugar for get_node(\"UI\u002FLabel\")\n@onready var health_bar: ProgressBar = %HealthBar # % = scene-unique name (rename-proof)\n\nfunc update() -> void:\n    var optional := get_node_or_null(\"Maybe\u002FMissing\")  # returns null instead of erroring\n    if optional:\n        optional.queue_free()\n```\n\n### 3. An autoload singleton (global game state)\n\n```gdscript\n# game_state.gd — add in Project Settings > Globals > Autoload as \"GameState\".\nextends Node\n\nvar score := 0\nsignal score_changed(value: int)\n\nfunc add_score(points: int) -> void:\n    score += points\n    score_changed.emit(score)         # any scene can: GameState.score_changed.connect(...)\n```\n\n### 4. Change the running scene\n\n```gdscript\nfunc go_to_level_2() -> void:\n    # Swaps the current scene for another. Frees the old scene tree.\n    get_tree().change_scene_to_file(\"res:\u002F\u002Flevels\u002Flevel_2.tscn\")\n    # Or, with a preloaded PackedScene:\n    # get_tree().change_scene_to_packed(LEVEL_2)\n```\n\n## Pitfalls\n\n- **`$Path` \u002F `get_node()` return `null` or error** when the path is wrong or the node\n  isn't in the tree yet. Use `@onready`, verify the path matches the scene, or use\n  `get_node_or_null()` for optional nodes.\n- **Renaming a node breaks `$Path`.** Use **unique names** (`%Name`, set via right-click\n  > Access as Unique Name) so deep references survive renames and reparenting.\n- **`free()` mid-frame can crash** other code still using the node. Prefer\n  `queue_free()` (deletes at end of frame) and check `is_instance_valid(node)`.\n- **Setting child state before `add_child()`** is fine, but `_ready()` on the child only\n  runs _after_ it enters the tree — don't expect its `@onready` vars before that.\n- **Autoload order matters**: autoloads are added before the main scene, in list order.\n  An autoload can't depend on the main scene existing yet.\n- **`instance()` was renamed** to `instantiate()` in Godot 4. `preload` runs at parse\n  time (path must be constant); `load` runs at runtime (path can be a variable).\n- **`change_scene_to_file()` is deferred**, not immediate — Godot swaps and frees the old\n  scene at the end of the current frame. Any code after the call still runs against the _old_\n  tree, and `get_tree().current_scene` isn't the new scene until next frame. Don't read the new\n  scene's nodes on the same line; do it from the new scene's `_ready()`.\n\n## References\n\n- For scene inheritance, `owner`\u002Fownership when saving scenes from code, groups vs\n  unique names, and node-path edge cases, read `references\u002Ftree-and-instancing.md`.\n\n## Related skills\n\n- `godot-gdscript` — language, lifecycle, and `@onready`.\n- `godot-signals-groups` — decouple instanced scenes from their spawner.\n- `godot-resources` — share data between instances without duplicating it.\n- `save-systems` — persist scene\u002Fgame state across runs.\n","# Godot Nodes & Scenes (4.x)\n\nCompose games from nodes and scenes, instance them at runtime, and access the tree\nwithout crashing on freed or missing nodes. Targets **Godot 4.3+**.\n\n## When to use\n\n- Use when structuring `.tscn` scenes, choosing how to break a feature into nodes,\n  instancing a `PackedScene` (bullets, enemies, UI), or setting up autoload singletons.\n- Use when debugging `get_node()` \u002F `$Path` returning `null`, or \"Attempt to call on a\n  previously freed instance\".\n\n**When _not_ to use:** GDScript language\u002Fsyntax → `godot-gdscript`; signal-based\ndecoupling → `godot-signals-groups`; physics bodies\u002Fcollisions → `godot-physics`.\n\n## Core workflow\n\n1. **Model with composition.** A scene is a tree of nodes saved as `.tscn`. Build small,\n   single-purpose scenes (Player, Bullet, Enemy) and compose larger scenes from them.\n   Favor adding child nodes over deep inheritance.\n2. **Make a scene reusable** by giving its root a script and exposing `@export` config.\n   Save it; it becomes a `PackedScene` you can instance many times.\n3. **Instance at runtime** with `preload`\u002F`load` → `scene.instantiate()` →\n   `add_child(instance)`. Set position\u002Fstate _after_ adding (or before, both work).\n4. **Access nodes safely.** Use `@onready var x = $Path` for fixed children; use unique\n   names (`%Name`) for nodes deep in the tree; never assume a node still exists.\n5. **Use autoloads for global state\u002Fservices** (game state, audio, scene switching) —\n   registered in Project Settings > Globals (Autoload), accessible by name everywhere.\n6. **Free nodes with `queue_free()`** and guard later access with `is_instance_valid()`.\n\n## Patterns\n\n### 1. Instance a scene at runtime\n\n```gdscript\nextends Node2D\n\nconst BULLET := preload(\"res:\u002F\u002Fbullet.tscn\")   # preload: loaded at compile time\n\nfunc shoot(at: Vector2, dir: Vector2) -> void:\n    var bullet := BULLET.instantiate()         # create an instance of the scene\n    bullet.global_position = at\n    bullet.direction = dir                      # set exported\u002Fpublic state\n    add_child(bullet)                           # now it's in the tree and runs\n```\n\n### 2. Safe node access: $, get_node_or_null, and unique names\n\n```gdscript\n@onready var label: Label = $UI\u002FLabel            # $ is sugar for get_node(\"UI\u002FLabel\")\n@onready var health_bar: ProgressBar = %HealthBar # % = scene-unique name (rename-proof)\n\nfunc update() -> void:\n    var optional := get_node_or_null(\"Maybe\u002FMissing\")  # returns null instead of erroring\n    if optional:\n        optional.queue_free()\n```\n\n### 3. An autoload singleton (global game state)\n\n```gdscript\n# game_state.gd — add in Project Settings > Globals > Autoload as \"GameState\".\nextends Node\n\nvar score := 0\nsignal score_changed(value: int)\n\nfunc add_score(points: int) -> void:\n    score += points\n    score_changed.emit(score)         # any scene can: GameState.score_changed.connect(...)\n```\n\n### 4. Change the running scene\n\n```gdscript\nfunc go_to_level_2() -> void:\n    # Swaps the current scene for another. Frees the old scene tree.\n    get_tree().change_scene_to_file(\"res:\u002F\u002Flevels\u002Flevel_2.tscn\")\n    # Or, with a preloaded PackedScene:\n    # get_tree().change_scene_to_packed(LEVEL_2)\n```\n\n## Pitfalls\n\n- **`$Path` \u002F `get_node()` return `null` or error** when the path is wrong or the node\n  isn't in the tree yet. Use `@onready`, verify the path matches the scene, or use\n  `get_node_or_null()` for optional nodes.\n- **Renaming a node breaks `$Path`.** Use **unique names** (`%Name`, set via right-click\n  > Access as Unique Name) so deep references survive renames and reparenting.\n- **`free()` mid-frame can crash** other code still using the node. Prefer\n  `queue_free()` (deletes at end of frame) and check `is_instance_valid(node)`.\n- **Setting child state before `add_child()`** is fine, but `_ready()` on the child only\n  runs _after_ it enters the tree — don't expect its `@onready` vars before that.\n- **Autoload order matters**: autoloads are added before the main scene, in list order.\n  An autoload can't depend on the main scene existing yet.\n- **`instance()` was renamed** to `instantiate()` in Godot 4. `preload` runs at parse\n  time (path must be constant); `load` runs at runtime (path can be a variable).\n- **`change_scene_to_file()` is deferred**, not immediate — Godot swaps and frees the old\n  scene at the end of the current frame. Any code after the call still runs against the _old_\n  tree, and `get_tree().current_scene` isn't the new scene until next frame. Don't read the new\n  scene's nodes on the same line; do it from the new scene's `_ready()`.\n\n## References\n\n- For scene inheritance, `owner`\u002Fownership when saving scenes from code, groups vs\n  unique names, and node-path edge cases, read `references\u002Ftree-and-instancing.md`.\n\n## Related skills\n\n- `godot-gdscript` — language, lifecycle, and `@onready`.\n- `godot-signals-groups` — decouple instanced scenes from their spawner.\n- `godot-resources` — share data between instances without duplicating it.\n- `save-systems` — persist scene\u002Fgame state across runs.\n",{"name":5,"license":15,"metadata":24,"description":27,"compatibility":28},{"engine":25,"category":25,"difficulty":26},"godot","beginner","Structure a Godot 4.x 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\"\u002Ffreed-node errors in a Godot project.\n","Godot 4.3+","main","6d4e3296d58b2720c5b1026197cd069b1dde4789","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills","https:\u002F\u002Fgithub.com\u002Fmistervaibhav","Software Engineer","2026-07-24 17:16:42",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add mistervaibhav\u002Fskills --skill godot-nodes-scenes",{"tool":41,"command":42},"bunx","bunx skills add mistervaibhav\u002Fskills --skill godot-nodes-scenes",{"tool":44,"command":45},"pnpm","pnpm dlx skills add mistervaibhav\u002Fskills --skill godot-nodes-scenes","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fgodot-nodes-scenes\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Ftree-and-instancing.md","REFERENCE","参考文档",3011,"https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fgodot-nodes-scenes\u002Freferences\u002Ftree-and-instancing.md",[56,64,72,80,87,94],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":60,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M79NZDV5781GA6SJMN1QPXB4","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M79NZ8SEVWT4WYD49BV980YW","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", or \"type hierarchy\". Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","MIT","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":76,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M79NYVQS5NYHH36NXF2AHP8B","web-haptics","Add haptic feedback to web apps using the web-haptics library. Use when building mobile-facing UIs that need tactile feedback on buttons, toggles, forms, pickers, and other interactive elements.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-haptics\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-haptics\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M79NY8AMC62DDRSH21WKXJVE","visual-novel","Build a visual novel: a branching script, character and background display, a text box with choices, save\u002Fload, backlog, and skip\u002Fauto. Use for a VN, dating sim, or branching story game.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fvisual-novel\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79NWFM5R9QC9Y2AT40EHF44","ux-heuristics","Evaluate and improve interface usability using heuristic analysis. Use when the user mentions \"usability audit\", \"UX review\", \"users are confused\", \"heuristic evaluation\", \"form usability\", or \"navigation problems\". Covers Nielsen's 10 heuristics, severity ratings, and information architecture. For visual design fixes, see refactoring-ui. For conversion-focused audits, see cro-methodology.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fux-heuristics\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M79NVSG7AB3MSFT8Y6EEHG1B","unreal-packaging","Package and ship an Unreal Engine 5 project: the Platforms menu Package Project flow, build configurations (Development vs Shipping), cooking content, packaging settings and the Game Default Map, and command-line builds with RunUAT BuildCookRun. Use when packaging a build, making a shipping build, cooking content, configuring packaging settings, or when the user mentions package Unreal, cook content, shipping build, or BuildCookRun.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Funreal-packaging\u002FSKILL.md",[],[]]