backend-message-queue
Use when the user asks about Kafka topics and partitions, RabbitMQ exchanges, SQS, consumer groups, consumer lag, dead letter queues, retention or message…
от j4flmao★ 47 звёзд на GitHub
Установить backend-message-queue в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Backend Message Queue
Purpose
Design consistent, production-grade message-driven systems. Every message flow must follow the same conventions for broker selection, topic/queue topology, message schema, delivery guarantees, consumer idempotency, retry, and dead-letter handling.
Agent Protocol
Trigger
Exact user phrases: "message queue", "Kafka", "RabbitMQ", "SQS", "pub-sub", "event bus", "consumer group", "topic", "queue", "at-least-once", "exactly-once", "idempotent consumer", "event sourcing", "dead letter queue", "DLQ", "message broker", "producer", "consumer", "event-driven", "async processing", "design a message flow".
Input Context
Before activating, verify:
- The business event or asynchronous task is known.
- The delivery guarantee requirement (at-most-once / at-least-once / exactly-once) is known. If not, ask: "What delivery guarantee do you need?"
- The throughput requirement is known.
- The broker preference (Kafka / RabbitMQ / SQS) is known. If not, ask: "Which broker? Kafka (high throughput, replay), RabbitMQ (routing, flexibility), or SQS (managed, simple)?"
Output Artifact
No file output unless the user requests it. Produces messaging topology specs as text.
Response Format
For each topic/queue:
Broker: {Kafka | RabbitMQ | SQS}
Name: {topic or queue name}
Type: {topic | queue | exchange + queue}
Partitions: {number} / Shards: {number}
Retention: {TTL or size limit}
Consumers: {consumer group or worker pool}
Dead-letter: {DLQ name}
For each message type:
Schema: {event_name} v{version}
Key: {partition key field}
Payload: {field list}
Guarantee: {at-most-once | at-least-once | exactly-once}
Idempotency key: {field name}
No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.
Completion Criteria
- Broker is selected with justification.
- Every topic/queue has: name, type, partitions, retention, consumers, DLQ.
- Every message has: schema with version, key, payload, delivery guarantee, idempotency key.
- Consumer failure handling (retry policy, DLQ routing) is defined.
- Ordering requirements are documented (key-based partitioning).
- Schema evolution strategy is defined.
Max Response Length
Per topic/queue: 8 lines. Per message type: 6 lines.
Decision Tree
Which Broker?
What are your requirements?
├── High throughput (>100K msg/s), replay, log compaction, analytics
│ └── Apache Kafka — partitioning, consumer groups, long retention
├── Flexible routing (topic/direct/fanout), per-message ack, task queues
│ └── RabbitMQ — exchanges, bindings, TTL, dead-lettering
├── Fully managed, no ops, Lambda triggers, simple
│ └── AWS SQS — auto-scale, limited features, 256KB max
├── High throughput, low latency, JVM-free
│ └── Pulsar — geo-replication, multi-tenancy, segment-based storage
└── Pub/sub with push delivery, mobile/web integration
└── Google Pub/Sub — managed, exactly-once, push subscriptions
Which Delivery Guarantee?
What happens if a message is lost?
├── Data loss is acceptable (metrics, non-critical logs)
│ └── At-most-once — fire and forget, lowest overhead
├── Duplicates are OK, data loss is not
│ └── At-least-once — retry on failure, idempotent consumer required
├── Neither loss nor duplicates allowed (financial, inventory)
│ └── Exactly-once — transactional producer + dedup consumer + idempotent processing
└── I don't know
└── Default to at-least-once — safest choice for most use cases
Workflow
Step 1: Select Broker
Kafka: high throughput (100k+ msg/s), replay, log compaction, multi-consumer
Best for: event sourcing, analytics pipelines, audit logs, CDC
RabbitMQ: flexible routing (exchanges, bindings), low latency, per-message ack
Best for: task queues, RPC, complex routing, lower throughput
SQS: fully managed, no ops, auto-scaled, simple
Best for: AWS-native, simple queues, Lambda triggers, small teams
Step 2: Define Topic / Queue Topology
Kafka:
topic: user.events.v1 (partitions: 6, replication: 3, retention: 7d)
consumer group: user-service-group (6 consumers = 1 per partition)
RabbitMQ:
exchange: user.events (type: topic)
queue: user.created (bind key: user.created.*)
queue: user.updated (bind key: user.updated.*)
dead-letter exchange: user.events.dlx
SQS:
queue: user-events-queue (visibility timeout: 30s, retention: 4d)
DLQ: user-events-dlq (max receives: 3)
Step 3: Define Message Schema
Every message has a consistent envelope:
{
"id": "uuid",
"type": "UserCreated",
"version": 1,
"timestamp": "2026-05-18T10:00:00Z",
"producer": "user-service",
"key": "user_abc123",
"data": {
"user_id": "abc123",
"name": "Jane Doe",
"email": "[email protected]"
}
}
Step 4: Delivery Guarantees
At-most-once: fi
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/broker-comparison.md
- references/consumer-patterns.md
- references/kafka-patterns.md
- references/message-design.md
- references/message-queue-monitoring.md
- references/message-queue-security.md
- references/producer-patterns.md
- references/rabbitmq-patterns.md
FAQ
Что делает скилл backend-message-queue?
Use when the user asks about Kafka topics and partitions, RabbitMQ exchanges, SQS, consumer groups, consumer lag, dead letter queues, retention or message size limits. Produces broker topology and producer/consumer configuration. Not for event design between services (use backend-event-driven) or stream processing (use data-streaming).
Как установить скилл backend-message-queue?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл backend-message-queue запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…