go-add-consumer

Generate RabbitMQ consumer infrastructure and event handlers for GOB Go microservices.

21|4|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/JotJunior/claude-ai-tips --skill go-add-consumer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-add-consumer
Source: https://github.com/JotJunior/claude-ai-tips/tree/main/language-related/go/skills/go-add-consumer
Command: npx skills add https://github.com/JotJunior/claude-ai-tips --skill go-add-consumer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Adds a RabbitMQ event consumer to an existing GOB Go microservice, generating the consumer infrastructure, event handlers, and wiring into main.go.

Core Features & Use Cases

  • Auto-wire a durable RabbitMQ consumer with binding to source exchanges and routing keys
  • Create event handlers wired to the service interfaces
  • Supports safe startup with non-blocking initialization and clean shutdown

Quick Start

Run the generator to add a RabbitMQ consumer to your existing GOB Go microservice and wire it into main.go.

Frequently Asked Questions about go-add-consumer

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

FAQPage Schema
How do I add a RabbitMQ consumer to a Go microservice?

To add a RabbitMQ consumer to a Go microservice, this generator creates the consumer infrastructure, event handlers, and wiring into main.go while configuring durable bindings to source exchanges and routing keys.

What safe patterns are used for RabbitMQ event consumption in Go?

RabbitMQ event consumption in Go uses safe patterns including ExchangeDeclarePassive usage, QoS prefetch configuration, interface-based dependencies, raw body preservation, and UUID-safe parsing to ensure robust production-ready processing.

Does the RabbitMQ consumer generator support clean shutdown in Go?

The RabbitMQ consumer generator supports safe startup with non-blocking initialization and clean shutdown in Go. This ensures the microservice handles event processing gracefully during termination.

Can I use this to bind a Go service to existing RabbitMQ exchanges?

Yes, you can bind a Go service to existing RabbitMQ exchanges. The generator handles binding configuration to source exchanges and routing keys, registering event handlers for processing messages from those sources.

What is needed to wire RabbitMQ event handlers into Go service interfaces?

Wiring RabbitMQ event handlers into Go service interfaces requires an existing GOB Go microservice structure. The generator creates handlers wired directly to your service interfaces and automatically updates main.go.