
godot-signal-architecture
Expert blueprint for signal-driven architecture using "Signal Up, Call Down" pattern for loose coupling. Covers typed signals, signal chains, one-shot connections, and AutoLoad event buses. Use when implementing event systems OR decoupling nodes. Keywords signal, emit, connect, CONNECTONESHOT, CONNECTREFERENCECOUNTED, event bus, AutoLoad, decoupling.
- Installs
- 521
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/thedivergentai/game-dev-agentic-skills --skill godot-signal-architecture- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads godot-signal-architecture automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
NEVER Do in Signal Architecture
- NEVER use the legacy string-based
Object.connect()— Typos result in silent failures. Always usesignal.connect(_callback)for compile-time validation. - NEVER use signals to dictate behavior top-down — Signals are past-tense events (e.g., "died"). Use direct method calls for commands (e.g., "kill").
- NEVER connect a signal twice to the same Callable — This throws an
ERR_INVALID_PARAMETERat runtime unless using theObject.CONNECT_REFERENCE_COUNTEDflag to stack connections. - NEVER use a Global Signal Bus for local data — Pollutes global state and makes debugging harder. Use local connections for scene-specific logic.
- NEVER assume callbacks must accept all signal arguments — Use
unbind()to drop unwanted parameters and keep your API clean. - NEVER create circular signal dependencies — A signals B, B signals back to A? Use a mediator (parent or AutoLoad) to break the loop.
- NEVER skip signal typing —
signal movedwithout types lacks editor support. Always usesignal moved(dir: Vector2). - NEVER forget to disconnect dynamic signals — Ghost connections cause "call on null instance" errors. Disconnect in
_exit_tree()or when retargeting (disconnect_ghost_signals.gd). - NEVER emit signals with immediate side effects on the emitter — If
died.emit()callsqueue_free(), listeners might fail to respond. Emit first. - NEVER use signals for high-frequency data streams — Sending 1000+ signals/second (like per-particle updates) is inefficient. Use shared arrays or direct buffers.
Signal Up / Call Down
- Children → parents: past-tense signals (
health_changed,died). - Parents → children: direct calls / properties (
apply_damage,play_anim). - Siblings: parent mediator or carefully scoped Autoload bus — never sibling hard refs.
Use signals for: UI presses, death → game over, loot → inventory, cross-scene bus events. Use direct calls for: parent commanding child, local property access.
Decision Tree: Where to Connect
| Scope | Pattern | MANDATORY script |
|---|---|---|
| Child notifies parent / UI | Local signal.connect in parent _ready | signal_up_call_down_pattern.gd |
| Parent orchestrates children | Method calls down (not signals) | same |
| Cross-scene / systems (achievements, save) | Autoload bus | global_signal_bus_router.gd / global_event_bus.gd |
| Linear async steps (load → fade → spawn) | await signal sequence | await_signal_sequencing.gd / complex_signal_sequencer.gd |
| Retarget tracking (new enemy) | Disconnect old first | disconnect_ghost_signals.gd |
| One-shot / physics-safe | CONNECT_ONE_SHOT / CONNECT_DEFERRED | one_shot_deferred_connections.gd |
| Extra context / drop args | Callable.bind / unbind | callable_bind_context.gd / unbind_unwanted_args.gd |
Available Scripts
- signal_up_call_down_pattern.gd — MANDATORY before hierarchy wiring.
- global_signal_bus_router.gd / global_event_bus.gd — MANDATORY before Autoload buses.
- disconnect_ghost_signals.gd — MANDATORY when switching tracked emitters.
- await_signal_sequencing.gd / complex_signal_sequencer.gd — MANDATORY for multi-step awaits.
- safe_dynamic_connections.gd —
is_connectedguards. - one_shot_deferred_connections.gd — one-shot / deferred flags.
- callable_bind_context.gd / unbind_unwanted_args.gd — bind/unbind.
- track_signal_emitter_source.gd —
CONNECT_APPEND_SOURCE_OBJECT. - signal_debugger.gd / signal_spy.gd — debug / test spies.
Lambda Capture Cleanup (complete)
Godot auto-disconnects most connections when a node frees. Exception: lambdas that capture locals — you must disconnect manually.
var my_lambda: Callable
func _ready() -> void:
var x := 10
my_lambda = func(): print(x)
player.died.connect(my_lambda)
func _exit_tree() -> void:
if player and player.died.is_connected(my_lambda):
player.died.disconnect(my_lambda)
Prefer named methods or disconnect_ghost_signals.gd when retargeting.
CONNECT_REFERENCE_COUNTED — Correct Semantics
CONNECT_REFERENCE_COUNTED means multiple identical connects share one connection with a refcount (connect N times / disconnect N times). It is not "auto-cleanup when the emitter frees" and does not fix capturing-lambda leaks.
- Auto-cleanup on free: normal connections to Object methods (non-capturing) are cleared when either side is freed.
- Capturing lambdas: always manual
disconnect(see above). - One-shot auto-remove after fire:
CONNECT_ONE_SHOT.
Deep recipes (on demand)
LLM-ignorance rule: if a general agent would not know it before reading, it lives here or in
scripts/— never delete, only move.
| Topic | Reference |
|---|---|
| Patterns 1–7 + gotchas | implementation-patterns.md |
Reference
Progressive disclosure: open Official Documentation links only when researching a specific API; load Related Skills when routing to a peer domain — do not preload the whole lattice.
Official Documentation
- Using signals — Core emit/connect model and why signals decouple nodes without hard references.
- Scene organization — Canonical “signal up, call down” ownership rules that keep parent→child command flows explicit.
- Instancing with signals — Emit from spawned scenes so parents/managers receive bullets, loot, and other products without fixed node paths.
- Autoloads versus regular nodes — When a global EventBus is justified vs when scene-local signal wiring is safer.
- Singletons (Autoload) — How to register a typed signal bus that survives scene changes.
- Signal — Typed
SignalAPI:emit,connect,is_connected, and disconnect helpers used throughout this skill. - Callable —
bind()/unbind()for injecting or discarding callback context without wrapper lambdas. - Object —
CONNECT_ONE_SHOT,CONNECT_DEFERRED,CONNECT_REFERENCE_COUNTED, andCONNECT_APPEND_SOURCE_OBJECTflags. - GDScript basics — Typed
signaldeclarations andawaiton signals for linear async sequences. - Using SceneTree — Connection lifetime across enter/exit tree and why dynamic listeners must disconnect when retargeting.
- Godot notifications — Safe connection timing relative to
_ready, parent caches, and user signals. - Idle and Physics Processing — Why deferred signal handlers matter when callbacks mutate physics bodies mid-step.
Related Skills
Prerequisites
- godot-project-foundations — Project layout, Autoload registration, and scene ownership conventions signals plug into.
- godot-gdscript-mastery — Typed Callables,
await, and signal syntax required before advanced connect flags and sequencers. - godot-autoload-architecture — Singleton boot order and ownership rules for global EventBus routers (not for local scene events).
Complements
- godot-composition — Component nodes emit past-tense events; parents compose by connecting those signals and calling down.
- godot-scene-management — Scene swaps and loaders must reconnect or re-emit through buses without ghost listeners.
- godot-state-machine-advanced — State enter/exit often drives signal fan-out; keeps FSM transitions from becoming circular signal graphs.
- godot-resource-data-patterns — Prefer Resources for shared config; signals carry change events, not duplicated mutable state blobs.
- godot-testing-patterns —
watch_signals/ spies pair with this skill’s emit contracts for unit and integration tests. - godot-ui-containers — Buttons and menus should signal intent upward; controllers call down to update Control trees.
Downstream / consumers
- godot-dialogue-system — Line/choice completion events should follow signal-up orchestration into UI and quest listeners.
- godot-ability-system — Cooldown, cast, and hit payloads need typed signals so HUD/VFX stay decoupled from ability nodes.
- godot-combat-system — Damage/death/score chains are the classic signal-up fan-out into UI, audio, and progression.
- godot-performance-optimization — Escalate when high-frequency emit storms show up; replace per-tick signals with buffers or direct reads.
Master
- godot-master — Library router and mirrored module entry; open when discovering which Domain Skill owns a cross-cutting architecture concern.
FAQ
What does the godot-signal-architecture skill do?
Expert blueprint for signal-driven architecture using "Signal Up, Call Down" pattern for loose coupling. Covers typed signals, signal chains, one-shot connections, and AutoLoad event buses. Use when implementing event systems OR decoupling nodes. Keywords signal, emit, connect, CONNECTONESHOT, CONNECTREFERENCECOUNTED, event bus, AutoLoad, decoupling.
How do I install godot-signal-architecture?
Run npx skills add https://github.com/thedivergentai/game-dev-agentic-skills --skill godot-signal-architecture in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/godot-signal-architecture/ (personal) or .claude/skills/godot-signal-architecture/ (project).
Which AI agents can use godot-signal-architecture?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is godot-signal-architecture safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains godot-signal-architecture?
It is published by thedivergentai in thedivergentai/game-dev-agentic-skills. It has 521 recorded installs.
More from thedivergentai/game-dev-agentic-skills
godot-master
thedivergentai/game-dev-agentic-skills
Consolidated expert library for professional Godot 4.7+ game and application development. Orchestrates 92 Domain Skills through architectural workflows, anti-pattern catalogs, performance budgets, and Server API patterns. Use when: (1) starting a new Godot project, (2) designing game or app architecture, (3) building entity/component systems, (4) debugging performance or physics issues, (5) choosing between 2D/3D approaches, (6) implementing multiplayer, (7) optimizing draw calls or script time, (8) porting between platforms, (9) migrating from 4.6 to 4.7. Primary entry point for ALL Godot development tasks. Keywords: Godot 4.7, AreaLight3D, HDR, Asset Store, godot-master.
godot-shaders-basics
thedivergentai/game-dev-agentic-skills
Expert Godot shader patterns for batch-safe hitflash, alpha-scissor foliage/dissolve, screenspace postFX, depth reconstruction, triplanar, and instance uniforms — not first-shader tutorials. Trigger on draw-call batching breaks, discard vs depth-prepass, foliage shadows, post-process quads, or world-position FX. Keywords: instance uniform, ALPHASCISSOR, hintscreentexture, hintdepthtexture, global uniform, sampler2DArray, canvasitem, spatial, post-processing.
godot-2d-animation
thedivergentai/game-dev-agentic-skills
Expert patterns for 2D animation in Godot using AnimatedSprite2D and skeletal cutout rigs. Use when implementing sprite frame animations, procedural animation (squash/stretch), cutout bone hierarchies, or frame-perfect timing systems. Trigger keywords: AnimatedSprite2D, SpriteFrames, animationfinished, animationlooped, framechanged, frameprogress, setframeandprogress, cutout animation, skeletal 2D, Bone2D, procedural animation, animation state machine, advance(0).
godot-ui-theming
thedivergentai/game-dev-agentic-skills
Expert blueprint for UI themes using Theme resources, StyleBoxes, custom fonts, and theme overrides for consistent visual styling. Covers StyleBoxFlat/Texture, theme inheritance, dynamic theme switching, and font variations. Use when implementing consistent UI styling OR supporting multiple themes. Keywords Theme, StyleBox, StyleBoxFlat, addthemeoverride, font, theme inheritance, dark mode.
godot-gdscript-mastery
thedivergentai/game-dev-agentic-skills
Expert GDScript landmine guidance: static typing opcodes, signal-up/call-down, %UniqueName/@onready lifecycle, Callable bind/unbind, await sequences, typed collections, and safe Dictionary iteration. Use for code review, refactoring hot paths, or project standards. Trigger keywords: statictyping, signalarchitecture, uniquenodes, @onready, classname, signalupcalldown, Callable.bind, typedcollections, awaitsequence.
godot-particles
thedivergentai/game-dev-agentic-skills
Expert blueprint for GPU particle systems (explosions, magic effects, weather, trails) using GPUParticles2D/3D, ParticleProcessMaterial, gradients, sub-emitters, and custom shaders. Use when creating VFX, environmental effects, or visual feedback. Keywords GPUParticles2D, ParticleProcessMaterial, emissionshape, colorramp, subemitter, oneshot.
Popular code quality & workflow skills
grill-me
mattpocock/skills
A relentless interview to sharpen a plan or design.
improve-codebase-architecture
mattpocock/skills
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
handoff
mattpocock/skills
Compact the current conversation into a handoff document for another agent to pick up.
domain-modeling
mattpocock/skills
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
codebase-design
mattpocock/skills
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
diagnosing-bugs
mattpocock/skills
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.