dreamteam-hq/brigid/godot-signals-csharp

Claude Code and agent skill by dreamteam-hq/brigid

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

C# signal patterns in Godot 4.6 — custom signals, typed delegates, signal bus, cross-scene communication, Rx integration

Install

npx vskill@latest install dreamteam-hq/brigid/godot-signals-csharp

SKILL.md

The same SKILL.md was published earlier as dreamteam-hq/brigid/godot-signals-csharp.

Godot 4.6 C# Signal Patterns

1. Built-in Signals

Connect in the editor or in code. Disconnect on cleanup to avoid leaks.

csharp
button.Pressed += OnButtonPressed; // connect
button.Pressed -= OnButtonPressed; // disconnect

2. Custom Signals

csharp
[Signal]
public delegate void HealthChangedEventHandler(int newHealth);

Godot 4.6 generates EmitSignalHealthChanged() from the delegate name. Connect from another node with player.HealthChanged += OnHealthChanged;.

3. Signal vs Direct Call

  • Signals for loose coupling — UI reacting to game events, decoupled observers.
  • Direct calls for tight coupling — coordinator calling controller methods.

The game project uses direct calls within the coordinator pattern and Rx for cross-system events.

4. Signal Bus Singleton

An AutoLoad node that centralizes game-wide events. Avoids deep signal chains through the scene tree.

csharp
public partial class SignalBus : Node
{
[Signal]
public delegate void GamePausedEventHandler(bool paused);
public static SignalBus Instance { get; private set; }
public override void _Ready() => Instance = this;
}

Use sparingly. Too many signals on one bus becomes spaghetti.

5. Async Signal Awaiting

csharp
await ToSignal(animPlayer, AnimationPlayer.SignalName.AnimationFinished);

Useful for cutscenes, animation sequences, and one-shot waits.

6. Rx Integration

The game project uses System.Reactive Subject<T> instead of Godot signals for ViewModel-to-View communication.

csharp
// In RemoteCharacterVM
public Subject<CharacterAction> Updates { get; } = new();
Updates.OnNext(new CharacterAction.Move(position));
// In View — subscribe
_vm.Updates
.OfType<CharacterAction.Move>()
.Subscribe(action => MoveSprite(action.Position));

Why Rx over signals:

  • Full type safety (no string-based signal names)
  • Composability — Select, OfType, CombineLatest, Throttle
  • Familiar .NET pattern for C# developers

7. Thread Safety

Signals fire on the thread that emits them. If OnNext is called from the main thread (_Process drain loop), subscribers run on main thread. Never emit signals or call OnNext from a background thread if subscribers touch nodes — Godot scene tree access is main-thread-only.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/dreamteam-hq/brigid/godot-signals-csharp/badge)](https://verified-skill.com/skills/dreamteam-hq/brigid/godot-signals-csharp)

Something wrong with this skill or its page? Tell us.