cfn-event-bus

Route publish/subscribe events across multi-agent CFN Loop workflows.

14|2|Updated Sep 23, 2025
One-click install
npx skills add https://github.com/masharratt/claude-flow-novice --skill cfn-event-bus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cfn-event-bus
Source: https://github.com/masharratt/claude-flow-novice/tree/main/.claude/cfn-extras/skills/advanced-features/cfn-event-bus
Command: npx skills add https://github.com/masharratt/claude-flow-novice --skill cfn-event-bus

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Provides a centralized, pub/sub event bus for coordinating agent lifecycles, gate events, consensus signals, and task-wide notifications.

Core Features & Use Cases

  • Publish/subscribe: Event routing for agent lifecycles and loop milestones.
  • Lifecycle tracking: Logs agent spawn, completion, failure, and timeouts.
  • Integration patterns: Redis coordination, Gate/Consensus broadcast, agent-spawn synchronization.

Quick Start

Use the provided event bus wrappers to publish or subscribe to lifecycle events and gate outcomes.

Frequently Asked Questions about cfn-event-bus

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

FAQPage Schema
How do I implement publish-subscribe event routing for multi-agent workflows?

Pub/subscribe event routing enables decoupled communication across agents and system components. This event bus provides topic-based routing with structured JSON payloads, letting you publish lifecycle events and subscribe to agent state changes without direct agent-to-agent coupling.

Can I track agent lifecycles and gate events in a CFN Loop workflow?

Yes. The event bus logs agent spawn, completion, failure, and timeout events, plus gate and consensus signals. It maintains centralized lifecycle tracking so you can monitor agent state transitions and coordinate multi-agent tasks through event subscriptions.

Does this event bus support Redis persistence for event coordination?

The event bus supports optional Redis persistence for durability and cross-process coordination. You can enable Redis storage to persist events and enable agent synchronization across distributed CFN Loop workflows while maintaining in-memory performance when Redis is disabled.

How do I validate event payloads and filter events by topic?

The event bus applies JSON schema validation to structured event payloads and routes messages by topic. You configure filtering rules and validation schemas to ensure only valid events propagate and subscribers receive only relevant topics for their workflow stage.

What's the best way to emit events from Node.js applications?

Use the provided Node.js bridge to emit events directly from your application code. The bridge handles payload serialization and topic routing, letting you publish lifecycle and gate events into the centralized bus without managing transport or formatting manually.

Can I trace events across a multi-agent workflow for debugging?

Yes. The event bus supports trace propagation to track event flow across agents and system components. Combined with debug configuration, you can log event paths, monitor statistics, and correlate events across your entire CFN Loop workflow for troubleshooting.