hydro-plugin-hooks

Installation
SKILL.md

Hydro Plugin Development: Event System & Hooks

This skill covers Hydro's event system: how to listen for system events, broadcast across processes, manage plugin lifecycle resources, and provide replaceable modules.


1. Event API Overview

All event methods are available on the Context object (ctx):

Method Signature Description
ctx.on(event, handler) Returns dispose function Register listener
ctx.once(event, handler) Returns dispose function Register one-time listener
ctx.emit(event, ...args) void Synchronous fire (in-process only)
ctx.parallel(event, ...args) Promise<void> Fire all listeners concurrently (in-process only)
ctx.serial(event, ...args) Promise<void> Fire listeners one by one, await each (in-process only)
ctx.broadcast(event, ...args) void Cross-process broadcast (see cluster safety below)
Installs
11
GitHub Stars
3
First Seen
Apr 2, 2026
hydro-plugin-hooks — gtn1024/hydro-dev-skills