Skip to content

MuharremTozan/Agentic-Duel / .agent/skills/unity-event-bus

unity-event-bus

Verified

Advanced code-driven event bus with reflection-based bootstrapping. Provides zero-setup global messaging.

assets/docs/Checklist.md.txt

View on GitHub
# Event Bus Implementation Checklist

Use this checklist during a `/smart-review` to ensure the Event Bus is implemented correctly.

## 1. Event Definition
- [ ] Is the event a `struct`? (Mandatory for zero-allocation).
- [ ] Does it implement `IEvent`?
- [ ] Is the name descriptive (e.g., `PlayerDiedEvent` instead of `Death`)?

## 2. Subscription Lifecycle
- [ ] Is the `EventBinding<T>` cached as a field?
- [ ] Is it registered in `OnEnable` using `EventBus<T>.Register(binding)`?
- [ ] **CRITICAL**: Is it unregistered in `OnDisable` using `EventBus<T>.Unregister(binding)`?

## 3. Propagation
- [ ] Is `EventBus<T>.Raise(newEvent)` used for dispatching?
- [ ] Are listeners performing heavy logic? (Favor queuing or async if the logic is complex).

## 4. Architecture
- [ ] Is the Event Bus replacing a direct reference between two Managers? (If so, good job).
- [ ] Are we avoiding "Event Chains" (Event A triggers Event B triggers Event C)?
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 implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
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 fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
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 alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall