stacks-listeners

Map event names to Action modules for HTTP and CLI streams.

2|Updated Jul 8, 2026
One-click install
npx skills add https://github.com/bughq/bughq --skill stacks-listeners-bughq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stacks-listeners
Source: https://github.com/bughq/bughq/tree/main/.claude/skills/stacks-listeners
Command: npx skills add https://github.com/bughq/bughq --skill stacks-listeners-bughq

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies the management of application-level event-driven architecture by providing a structured way to map events to specific handler actions, reducing code coupling and improving maintainability.

Core Features & Use Cases

  • Event-to-Action Mapping: Centralizes the registration of event listeners in a single configuration file.
  • Dynamic Execution: Automatically resolves and executes Action modules based on dispatched events.
  • CLI Event Support: Provides a dedicated mechanism for handling console-specific events separately from HTTP application events.
  • Use Case: When a user registers, you can trigger multiple sequential actions like sending a welcome email, updating a CRM, and notifying the internal team without cluttering the registration logic.

Quick Start

Use the stacks-listeners skill to register a new listener action for the user:created event in the application configuration.

Frequently Asked Questions about stacks-listeners

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

FAQPage Schema
How do I map application events to handler actions in TypeScript without coupling code?

To map application events to handler actions without coupling code, you can centralize event-to-action mapping in a single configuration file. This allows automatic resolution and execution of Action modules based on dispatched events, improving maintainability.

What is the best way to trigger multiple sequential actions after a user registers?

The best way to trigger multiple sequential actions after a user registers is using an event-driven architecture. By dispatching a single event like user:created, you can automatically trigger separate actions such as sending welcome emails and updating a CRM without cluttering registration logic.

How do I handle console events separately from HTTP application events?

To handle console events separately from HTTP application events, you need a dedicated CLI event support mechanism. This approach provides a distinct pathway for handling console-specific events, ensuring CLI streams and HTTP streams remain decoupled within your application architecture.

Does event-driven architecture in the Stacks framework support both CLI and HTTP streams?

Yes, event-driven architecture in the Stacks framework supports both CLI and HTTP streams. It manages application-level listeners by mapping event names to specific Action modules, facilitating decoupled execution of business logic across both console and HTTP environments.

How do I register a new listener action for a specific event in my application configuration?

To register a new listener action for a specific event, you map the event name to an Action module within your application configuration. The Action module must adhere to the defined event-to-action mapping pattern and implement the required handle method interface.

Why does decoupled event execution require a specific handle method interface in Action modules?

Decoupled event execution requires a specific handle method interface in Action modules to ensure automatic resolution and dynamic execution. Adhering to this defined interface allows the listener system to reliably trigger business logic without tightly coupling to the dispatching code.