[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79NYBHVTBWE02QZJ3B5AVSW":3,"skill-same:01M79NYBHVTBWE02QZJ3B5AVSW":51},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M79NYBHVTBWE02QZJ3B5AVSW","godot-gdscript",null,"Write idiomatic GDScript for Godot 4.7: static typing, the node lifecycle (_ready\u002F_process\u002F_physics_process), @export\u002F@onready\u002F@tool annotations, signals, and await for asynchronous flow. Use when editing .gd scripts in a Godot project (project.godot), writing or debugging GDScript, or porting 3.x GDScript to 4.x (function signatures, yield to await, export to @export).","JunMystery\u002FAgent-Guidance","JunMystery","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F161468934?v=4","01M79MTMV8F0BY8NK1A92RA8A0","Jun","01M79MTMWCFBKPHN5B25E6V20B",0,"MIT","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fgodot-gdscript\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: godot-gdscript\ndescription: >\n  Write idiomatic GDScript for Godot 4.7: static typing, the node lifecycle\n  (_ready\u002F_process\u002F_physics_process), @export\u002F@onready\u002F@tool annotations,\n  signals, and await for asynchronous flow. Use when editing .gd scripts in a\n  Godot project (project.godot), writing or debugging GDScript, or porting 3.x\n  GDScript to 4.x (function signatures, yield to await, export to @export).\n---\n\n# Godot GDScript (4.x)\n\nWrite correct, statically typed GDScript and use the node lifecycle and signal\nsystem the way the engine intends. Targets **Godot 4.7** (GDScript 2.0).\n\n## When to use\n\n- Use when writing or fixing `.gd` files: declaring variables, functions, classes,\n  using `@export`\u002F`@onready`, connecting signals, or awaiting coroutines\u002Fsignals.\n- Use when porting Godot 3.x scripts to 4.x and the script no longer parses.\n\n**When *not* to use:** scene\u002Fnode structure and instancing questions →\n`godot-nodes-scenes`; signal *architecture*\u002Fdecoupling patterns →\n`godot-signals-groups`; using C# instead of GDScript → `godot-csharp`.\n\n## Core workflow\n\n1. **Type everything you can.** GDScript 2.0 supports static types\n   (`var hp: int = 10`, `func add(a: int, b: int) -> int:`). Types catch errors at\n   parse time and speed up the VM. Use `:=` for inferred types.\n2. **Use the lifecycle callbacks for their purpose:** `_ready()` once when the node\n   and its children enter the tree; `_process(delta)` every rendered frame;\n   `_physics_process(delta)` on the fixed physics tick (use it for movement\u002Fphysics).\n3. **Grab node references with `@onready`**, not in `_init()` — children do not exist\n   until the node enters the tree.\n4. **Expose tunables with `@export`** so designers edit them in the Inspector.\n5. **React to events with signals + `await`**, not polling, where it reads cleanly.\n6. **Run and read errors.** The Debugger panel prints typed errors with line numbers;\n   fix the first error first (later ones are often cascades).\n\n## Patterns\n\n### 1. A typed script with lifecycle, @export, and @onready\n\n```gdscript\nextends Node2D\nclass_name Spinner            # registers a global type usable in other scripts\n\n@export var speed: float = 90.0          # editable in the Inspector (degrees\u002Fsec)\n@export_range(0, 10, 0.5) var wobble := 2.0\n@onready var sprite: Sprite2D = $Sprite2D # resolved when the node enters the tree\n\nfunc _ready() -> void:\n    # Runs once, after children are ready. Safe to touch $Sprite2D here.\n    sprite.modulate = Color.AQUA\n\nfunc _process(delta: float) -> void:\n    # delta is seconds since last frame; multiply rates by it for FPS independence.\n    rotation_degrees += speed * delta\n```\n\n### 2. Signals: declare, emit, connect (4.x Callable syntax)\n\n```gdscript\nextends Node\n\nsignal health_changed(current: int, maximum: int)   # typed signal params\n\nvar health := 100\n\nfunc take_damage(amount: int) -> void:\n    health = maxi(health - amount, 0)    # maxi\u002Fmaxf are typed; max() returns Variant\n    health_changed.emit(health, 100)     # 4.x: emit as a method on the signal\n\nfunc _ready() -> void:\n    # 4.x: connect with a Callable, not a string method name.\n    health_changed.connect(_on_health_changed)\n\nfunc _on_health_changed(current: int, maximum: int) -> void:\n    print(\"HP: %d\u002F%d\" % [current, maximum])\n```\n\n### 3. await — pause until a timer or signal fires (replaces 3.x yield)\n\n```gdscript\nfunc flash_then_continue() -> void:\n    modulate = Color.RED\n    await get_tree().create_timer(0.2).timeout   # resume after 0.2s\n    modulate = Color.WHITE\n    # await any signal: var result = await some_node.some_signal\n```\n\n### 4. Lambdas, typed arrays, and safe access\n\n```gdscript\nvar enemies: Array[Node] = []                    # typed array\n\nfunc cull_dead() -> void:\n    enemies = enemies.filter(func(e): return e.is_inside_tree())\n\nfunc get_first_name(d: Dictionary) -> String:\n    return d.get(\"name\", \"unknown\")              # default avoids missing-key errors\n```\n\n## Pitfalls\n\n- **3.x → 4.x signal API changed.** `emit_signal(\"x\")` still works but prefer\n  `x.emit(...)`; `connect(\"x\", self, \"_on_x\")` is gone — use `x.connect(_on_x)` with a\n  Callable. `yield(obj, \"sig\")` is now `await obj.sig`.\n- **`export var` is now `@export var`** (annotation). Likewise `onready`→`@onready`,\n  `tool`→`@tool`, `remote`\u002F`master` RPC keywords → the `@rpc(...)` annotation.\n- **`@onready` and `$NodePath` in `_init()` fail** — the node isn't in the tree yet.\n  Initialize node references in `_ready()` or with `@onready`.\n- **Integer division truncates.** `5 \u002F 2 == 2`. Use `5.0 \u002F 2` or cast to `float`.\n- **`_process` vs `_physics_process`.** Put `move_and_slide()` and physics in\n  `_physics_process(delta)`; using `_process` makes motion frame-rate dependent.\n- **`class_name` must be unique** project-wide and is required to use the type name in\n  other scripts or as an Inspector type.\n- **An override stops parsing after upgrading to 4.7** → since 4.7 an overriding method\n  inherits the parent's typed return, so every path must `return` a value (add\n  `return null` at the end if needed). Also new in 4.7: setting one element of a packed\n  array property (`points[0] = v`) no longer calls that property's setter; reassign the\n  whole array if the setter must run.\n\n## References\n\n- For the full annotation list, advanced typing, and style conventions, read\n  `references\u002Fannotations-and-typing.md`.\n\n## Related skills\n\n- `godot-nodes-scenes` — the scene tree, instancing, and autoloads.\n- `godot-signals-groups` — event-driven architecture with signals and groups.\n- `godot-resources` — data-driven design with custom `Resource` types.\n- `godot-csharp` — the same engine concepts using C#\u002F.NET.\n","# Godot GDScript (4.x)\n\nWrite correct, statically typed GDScript and use the node lifecycle and signal\nsystem the way the engine intends. Targets **Godot 4.7** (GDScript 2.0).\n\n## When to use\n\n- Use when writing or fixing `.gd` files: declaring variables, functions, classes,\n  using `@export`\u002F`@onready`, connecting signals, or awaiting coroutines\u002Fsignals.\n- Use when porting Godot 3.x scripts to 4.x and the script no longer parses.\n\n**When *not* to use:** scene\u002Fnode structure and instancing questions →\n`godot-nodes-scenes`; signal *architecture*\u002Fdecoupling patterns →\n`godot-signals-groups`; using C# instead of GDScript → `godot-csharp`.\n\n## Core workflow\n\n1. **Type everything you can.** GDScript 2.0 supports static types\n   (`var hp: int = 10`, `func add(a: int, b: int) -> int:`). Types catch errors at\n   parse time and speed up the VM. Use `:=` for inferred types.\n2. **Use the lifecycle callbacks for their purpose:** `_ready()` once when the node\n   and its children enter the tree; `_process(delta)` every rendered frame;\n   `_physics_process(delta)` on the fixed physics tick (use it for movement\u002Fphysics).\n3. **Grab node references with `@onready`**, not in `_init()` — children do not exist\n   until the node enters the tree.\n4. **Expose tunables with `@export`** so designers edit them in the Inspector.\n5. **React to events with signals + `await`**, not polling, where it reads cleanly.\n6. **Run and read errors.** The Debugger panel prints typed errors with line numbers;\n   fix the first error first (later ones are often cascades).\n\n## Patterns\n\n### 1. A typed script with lifecycle, @export, and @onready\n\n```gdscript\nextends Node2D\nclass_name Spinner            # registers a global type usable in other scripts\n\n@export var speed: float = 90.0          # editable in the Inspector (degrees\u002Fsec)\n@export_range(0, 10, 0.5) var wobble := 2.0\n@onready var sprite: Sprite2D = $Sprite2D # resolved when the node enters the tree\n\nfunc _ready() -> void:\n    # Runs once, after children are ready. Safe to touch $Sprite2D here.\n    sprite.modulate = Color.AQUA\n\nfunc _process(delta: float) -> void:\n    # delta is seconds since last frame; multiply rates by it for FPS independence.\n    rotation_degrees += speed * delta\n```\n\n### 2. Signals: declare, emit, connect (4.x Callable syntax)\n\n```gdscript\nextends Node\n\nsignal health_changed(current: int, maximum: int)   # typed signal params\n\nvar health := 100\n\nfunc take_damage(amount: int) -> void:\n    health = maxi(health - amount, 0)    # maxi\u002Fmaxf are typed; max() returns Variant\n    health_changed.emit(health, 100)     # 4.x: emit as a method on the signal\n\nfunc _ready() -> void:\n    # 4.x: connect with a Callable, not a string method name.\n    health_changed.connect(_on_health_changed)\n\nfunc _on_health_changed(current: int, maximum: int) -> void:\n    print(\"HP: %d\u002F%d\" % [current, maximum])\n```\n\n### 3. await — pause until a timer or signal fires (replaces 3.x yield)\n\n```gdscript\nfunc flash_then_continue() -> void:\n    modulate = Color.RED\n    await get_tree().create_timer(0.2).timeout   # resume after 0.2s\n    modulate = Color.WHITE\n    # await any signal: var result = await some_node.some_signal\n```\n\n### 4. Lambdas, typed arrays, and safe access\n\n```gdscript\nvar enemies: Array[Node] = []                    # typed array\n\nfunc cull_dead() -> void:\n    enemies = enemies.filter(func(e): return e.is_inside_tree())\n\nfunc get_first_name(d: Dictionary) -> String:\n    return d.get(\"name\", \"unknown\")              # default avoids missing-key errors\n```\n\n## Pitfalls\n\n- **3.x → 4.x signal API changed.** `emit_signal(\"x\")` still works but prefer\n  `x.emit(...)`; `connect(\"x\", self, \"_on_x\")` is gone — use `x.connect(_on_x)` with a\n  Callable. `yield(obj, \"sig\")` is now `await obj.sig`.\n- **`export var` is now `@export var`** (annotation). Likewise `onready`→`@onready`,\n  `tool`→`@tool`, `remote`\u002F`master` RPC keywords → the `@rpc(...)` annotation.\n- **`@onready` and `$NodePath` in `_init()` fail** — the node isn't in the tree yet.\n  Initialize node references in `_ready()` or with `@onready`.\n- **Integer division truncates.** `5 \u002F 2 == 2`. Use `5.0 \u002F 2` or cast to `float`.\n- **`_process` vs `_physics_process`.** Put `move_and_slide()` and physics in\n  `_physics_process(delta)`; using `_process` makes motion frame-rate dependent.\n- **`class_name` must be unique** project-wide and is required to use the type name in\n  other scripts or as an Inspector type.\n- **An override stops parsing after upgrading to 4.7** → since 4.7 an overriding method\n  inherits the parent's typed return, so every path must `return` a value (add\n  `return null` at the end if needed). Also new in 4.7: setting one element of a packed\n  array property (`points[0] = v`) no longer calls that property's setter; reassign the\n  whole array if the setter must run.\n\n## References\n\n- For the full annotation list, advanced typing, and style conventions, read\n  `references\u002Fannotations-and-typing.md`.\n\n## Related skills\n\n- `godot-nodes-scenes` — the scene tree, instancing, and autoloads.\n- `godot-signals-groups` — event-driven architecture with signals and groups.\n- `godot-resources` — data-driven design with custom `Resource` types.\n- `godot-csharp` — the same engine concepts using C#\u002F.NET.\n",{"name":5,"description":7},"main","5d0a87185c0e172c3901e2a6e5916b6d544b8b94","skills\u002Fgodot-gdscript","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance","https:\u002F\u002Fgithub.com\u002FJunMystery","AI is the typist, I am the architect. Building efficient, secure, and user-centric products through disciplined AI prompt engineering.","2026-11-13 17:41:25",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add JunMystery\u002FAgent-Guidance --skill godot-gdscript",{"tool":37,"command":38},"bunx","bunx skills add JunMystery\u002FAgent-Guidance --skill godot-gdscript",{"tool":40,"command":41},"pnpm","pnpm dlx skills add JunMystery\u002FAgent-Guidance --skill godot-gdscript","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fgodot-gdscript\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Fannotations-and-typing.md","REFERENCE","参考文档",3886,"https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fgodot-gdscript\u002Freferences\u002Fannotations-and-typing.md",[52,58,64,70,76,82],{"skillNo":53,"name":54,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M79QR1E309VJ6CTQKB32AWWA","zero-trust-architecture-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-architecture-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M79QQV7GHYR02DYGN41S23WN","xss-filter-evasion-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxss-filter-evasion-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M79QQNSN7YB8XB61FFSCS3WH","xs-leaks-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxs-leaks-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M79QQHZZJKFDY9132G5A65C2","xpath-injection-prevention-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxpath-injection-prevention-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M79QQB9ZSD3DJG8658EHQXR1","xml-security-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxml-security-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M79QQ60WKV7PFMXWT9CW8PM6","xml-external-entity-prevention-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxml-external-entity-prevention-cheat-sheet\u002FSKILL.md",[],[]]