core-event-bus
CommunityUnified event bus for type-safe inter-module communication.
Software Engineering#type safety#software architecture#event bus#event-driven#inter-module communication
Authordiadia0000
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a type-safe, centralized event bus for cross-module communication, solving the issue of modular A notifying module B and ensuring a streamlined communication process.
Core Features & Use Cases
- Type-Safe Events: Ensures that event payloads match the expected types, preventing runtime errors.
- Event Registration & Unregistration: Allows modules to subscribe to and unsubscribe from specific events.
- Event Broadcasting: Enables modules to broadcast events to all subscribed handlers.
- Once-Only Events: Allows handlers to be executed only once for a particular event.
- Use Case: For a game development scenario, the core-event-bus Skill can be used to handle events like player movement, resource collection, or network status changes across different game modules.
Quick Start
To subscribe to the 'player:moved' event, use the following command: EventBus.on('player:moved', (payload) => { /* handler logic */ }).
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: core-event-bus Download link: https://github.com/diadia0000/ForWanna/archive/main.zip#core-event-bus Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.