nerve-center-event-bus

Manage event emission, routing, and consumption with ledger-first invariants and backpressure.

1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/rhenretta/ai-hivemind --skill nerve-center-event-bus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nerve-center-event-bus
Source: https://github.com/rhenretta/ai-hivemind/tree/main/.agent/skills/nerve-center-event-bus
Command: npx skills add https://github.com/rhenretta/ai-hivemind --skill nerve-center-event-bus

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill addresses the challenges of event management within the Nerve Center, ensuring proper event emission, routing, and consumption while handling edge cases and improving system resilience.

Core Features & Use Cases

  • Event Emission: Correctly emit events and adhere to the ledger-first invariant for durability.
  • Topic Naming: Follows a structured topic naming convention for easy subscription and filtering.
  • Backpressure Handling: Manages WebSocket backpressure to prevent client flooding.
  • Sequence Numbers: Utilizes sequence numbers for gap detection and ordered event replay.
  • Causation Chain: Ensures proper causation tracking between events.
  • Common Mistakes: Identifies and rectifies common errors in event handling.
  • Bug Fixes: Addresses critical bugs related to process isolation and listener removal.
  • Backend Services: Implements backend services using SQLite databases and FTS5 virtual tables.
  • Frontend Integration: Ensures seamless frontend event routing and UI updates.
  • Simulator Integration: Facilitates secure event injection for simulators.
  • Gemini CLI Integration: Handles event type mismatches and workspace considerations.

Quick Start

Use the nerve-center-event-bus skill to ensure the proper emission of an event, following the ledger-first invariant.

Frequently Asked Questions about nerve-center-event-bus

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle WebSocket backpressure to prevent client flooding during event routing?

WebSocket backpressure is handled during event routing by managing event emission and consumption to prevent client flooding, adhering to ledger-first invariants for system durability and resilience.

What is the ledger-first invariant for event emission in an event bus?

The ledger-first invariant for event emission ensures events are durably recorded before routing and consumption, maintaining system resilience and enabling accurate sequence number-based event ordering and replay.

How do I track causation chains and sequence numbers for ordered event replay?

Causation chains and sequence numbers are tracked during event routing to enable gap detection and ordered event replay, ensuring proper causation tracking between events within the Nerve Center.

How do I structure topic naming conventions for event subscription and filtering?

Topic naming conventions follow a structured format during event routing to enable easy event subscription and filtering, ensuring seamless frontend integration and backend service updates.

Why does event routing fail due to process isolation and listener removal bugs?

Event routing failures from process isolation and listener removal are critical bugs addressed by managing event consumption correctly, ensuring proper listener lifecycle and process boundaries.

Can I use SQLite with FTS5 virtual tables for backend event management services?

SQLite databases with FTS5 virtual tables are supported for implementing backend services, ensuring seamless frontend event routing, UI updates, and secure event injection for simulator integration.