MuharremTozan/Agentic-Duel / .agent/skills/unity-event-bus
unity-event-bus
VerifiedAdvanced code-driven event bus with reflection-based bootstrapping. Provides zero-setup global messaging.
Unity Advanced Event Bus
This skill provides a high-performance, type-safe messaging hub for Unity projects. It is designed for developers who want to decouple systems without the overhead of ScriptableObject-based event channels.
Core Features
- Reflection Bootstrapping: Automatically finds all events and initializes buses on game load.
- Generic Performance: Uses static generic indices for O(1) event dispatch performance.
- Zero Allocation: Optimized for structs to ensure no runtime garbage collection for messages.
- Editor Safety: Auto-clears all static bindings when exiting Play Mode to prevent Editor memory leaks.
Core Files (Max 3)
EventBusCore.cs.txt: Base interfaces and the static generic bus hub.EventBusBootstrapper.cs.txt: Unity-specific auto-initialization and assembly scanning.EventBusExample.cs.txt: Practical implementation of player and system events.
Usage
Define a struct : IEvent, create an EventBinding<T>, and register it in OnEnable. Raise events from anywhere using EventBus<T>.Raise().
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |