hassanzohdy/mongez-events/bus
Claude Code and agent skill by hassanzohdy/mongez-events
- community
Checking that the SKILL.md file is still in the repository.
Full API reference for the @mongez/events singleton — subscribe, trigger, triggerAll, async variants, inspect, and direct dispatch.
Install
npx vskill@latest install hassanzohdy/mongez-events/busSKILL.md
Events bus
The full API surface of the singleton events instance.
Subscribe
Returns:
Hold the returned subscription and call unsubscribe() when you no longer want the callback.
Trigger
Behavior:
- Calls every callback registered for
eventin subscription order. - If a callback returns `false`, the chain stops and `trigger` returns `false`. Use this for "veto" patterns.
- Otherwise the last non-
undefinedreturn value is returned.
Trigger all (no short-circuit)
Use when you want every handler to run regardless of return values — analytics, multi-listener notifications, aggregations.
Async variants
Callbacks are awaited in subscription order, not in parallel. If you need parallel dispatch, do it yourself:
triggerAsync also honors the return false short-circuit (after awaiting the offending callback).
Inspect / unsubscribe
Calling unsubscribe() with no argument wipes the whole bus. Useful in test teardown.
Direct dispatch (skip the bus)
The returned EventSubscription.dispatch(...args) invokes the callback directly without going through the trigger pipeline. Useful when you want to fire one specific listener without notifying the rest.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/bus/SKILL.md
Popularity
- 7-day trend score
- 5
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
[](https://verified-skill.com/skills/hassanzohdy/mongez-events/bus)