Skip to content

77 game-dev skills for AI coding agents — Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox. Portable SKILL.md Agent Skills (the format Anthropic launched as Claude Skills), with a router that loads the right skill for your engine and task. Runs in Claude Code, Cursor, Kiro, Codex, Copilot, Gemini CLI and more.

fix(godot): describe when signal connections are removed, including lambdas

Kiro Crew162afbd398a0
diff --git a/skills/godot/godot-signals-groups/SKILL.md b/skills/godot/godot-signals-groups/SKILL.md
index 13cec35..003fbec 100644
--- a/skills/godot/godot-signals-groups/SKILL.md
+++ b/skills/godot/godot-signals-groups/SKILL.md
@@ -110,8 +110,10 @@ func open_chest() -> void:
- **Duplicate connections fire handlers multiple times.** Connecting again in `_ready()`
after re-adding a node stacks callbacks. Guard with
`if not sig.is_connected(cb): sig.connect(cb)`.
-- **Connecting to a freed node errors.** Disconnect long-lived listeners, or rely on
- Godot auto-disconnecting when the *connected object* is freed (it does for nodes).
+- **Connecting to a freed node errors.** Godot removes a connection when the emitter or
+ the Callable's owner is freed, but a lambda belongs to the script that created it — one
+ that captures a node freed later keeps firing and errors. Connect listener methods, or
+ disconnect stored lambdas yourself.
- **Groups are global to the SceneTree**, not per-scene. Two levels using the same group
name share membership. Namespace group names if that matters.
- **`call_group` silently ignores nodes lacking the method.** Typos in the method name
diff --git a/skills/godot/godot-signals-groups/references/signal-patterns.md b/skills/godot/godot-signals-groups/references/signal-patterns.md
index 93164e9..656ce59 100644
--- a/skills/godot/godot-signals-groups/references/signal-patterns.md
+++ b/skills/godot/godot-signals-groups/references/signal-patterns.md
@@ -79,9 +79,13 @@ if sig.is_connected(cb):
sig.disconnect(cb)
```
-Nodes auto-disconnect connections where the *connected object* (the one owning the
-Callable) is freed. You still must disconnect manually if the *emitter* outlives the
-listener and you re-create listeners (otherwise stale connections accumulate).
+A connection is removed automatically when the emitter or the object that owns the
+Callable is freed. A **lambda** is owned by the object whose script created it, not by the
+nodes it captures: if a captured node is freed, the lambda stays connected and errors
+("Lambda capture at index 0 was freed") the next time the signal fires. Each `func():`
+expression is also a new Callable, so `is_connected()` cannot spot a repeat and every
+re-connect stacks another call. Keep the lambda in a variable so you can disconnect it, or
+connect a method on the listener instead.
## Groups: full API