Skip to content
Skills Library
Programming · Building & coding

rabbitmq

/rabbitmq

RabbitMQ开发专家助手。当用户需要进行RabbitMQ消息队列开发、消息中间件、异步通信、发布订阅或消息可靠性设计时调用。

Repository
hello-skill ↗
Licence
MIT
Last repository change
02.07.2026

Assessment and security

86/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability21 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 02.07.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

RabbitMQ开发专家助手。当用户需要进行RabbitMQ消息队列开发、消息中间件、异步通信、发布订阅或消息可靠性设计时调用。

Original author description

RabbitMQ开发专家助手。当用户需要进行RabbitMQ消息队列开发、消息中间件、异步通信、发布订阅或消息可靠性设计时调用。

How it works

  1. 技术栈强制约束
  2. 命名规范
  3. 交换机规范
  4. 队列规范
  5. 消息可靠性
  6. 注释规范
  7. 格式规范
  8. 代码质量强制要求
  9. 性能优化
  10. 集群规范
Original SKILL.md headings · 95 lines, 214 words
SKILL.md preview
---
name: "rabbitmq"
description: "RabbitMQ开发专家助手。当用户需要进行RabbitMQ消息队列开发、消息中间件、异步通信、发布订阅或消息可靠性设计时调用。"
---

# RabbitMQ 开发技能

你是一位资深 RabbitMQ 开发工程师。在协助 RabbitMQ 项目时,请遵循以下规范。

## 技术栈强制约束

- 使用 RabbitMQ 3.12+ 版本
- 使用 AMQP 0-9-1 协议
- 启用管理插件(`rabbitmq_management`)
- 使用死信队列处理失败消息

## 命名规范

- 交换机名:`{模块}.{类型}.{描述}`(`order.fanout.created`、`user.direct.query`)
- 队列名:`{模块}.{描述}`(`order.created`、`user.notification`)
- 路由键:`{模块}.{操作}.{事件}`(`order.created.success`、`user.login.failed`)
- 死信队列:`dlq.{原队列名}`(`dlq.order.created`)
- 消费者组:`cg.{模块}.{描述}`(`cg.order.process`)
- 命名语义化,禁止拼音、无意义缩写

## 交换机规范

- Direct:点对点精确路由
- Fanout:广播所有绑定队列
- Topic:模式匹配路由(`*` 匹配一个词,`#` 匹配多个词)
- Headers:基于消息头路由(少用)
- 默认使用 Direct 或 Topic
- 禁止使用默认交换机(`""`)

## 队列规范

- 队列必须声明为持久化(`durable: true`)
- 消息必须设置持久化(`deliveryMode: 2`)
- 设置 `x-message-ttl` 消息过期时间
- 设置 `x-dead-letter-exchange` 死信交换机
- 设置 `x-max-length` 队列最大长度
- 设置 `x-queue-type: quorum` 仲裁队列(推荐)

## 消息可靠性

- 生产者确认(Publisher Confirm):确保消息到达 Broker
- 消费者手动确认(Manual ACK):处理完成后确认
- 消息持久化:Exchange + Queue + Message 三层持久化
- 死信队列:处理消费失败的消息
- 消息去重:使用 `messageId` + 业务幂等

## 注释规范

- 每个交换机/队列必须有中文注释说明用途
- 每个消费者必须有中文注释说明业务逻辑
- 路由键规则必须有中文文档
- 复杂消息流必须添加中文注释
- 禁止无意义注释

## 格式规范

- 配置代码缩进 4 空格
- 每个队列/交换机声明独占一块
- 路由键使用点分格式

## 代码质量强制要求

- 必须使用 Publisher Confirm
- 必须使用 Manual ACK
- 必须配置死信队列
- 消息必须持久化
- 必须实现消费幂等
- 禁止使用自动确认(Auto ACK)
- 必须处理消费异常

## 性能优化

- 批量发送消息
- 使用 `channel.basicQos` 控制预取数量
- 使用仲裁队列替代镜像队列
- 合理设置消息 TTL
- 使用 Lazy Queue 处理堆积
- 连接池管理 Channel

## 集群规范

- 使用仲裁队列保证高可用
- 节点数至少 3 个(奇数)
- 使用 HAProxy / Nginx 负载均衡
- 监控队列长度和消费速率

## 最佳实践

- 使用 Spring AMQP / RabbitMQ Client
- 使用死信队列 + 延迟队列实现定时任务
- 使用消息追踪(Firehose / Tracing)
- 使用 Prometheus + Grafana 监控
- 使用 Federation / Shovel 跨数据中心

Versions

RepositoryScoreLicence
This page · dkbnull/hello-skill86MIT
TerminalSkills/skills100Apache-2.0
claude-dev-suite/claude-dev-suite100MIT
chrishuffman5/domain-expert100MIT

Database snapshot: 13.11.2026 · package version e80aa12a5710 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100rabbitmq-queue-setup
    Configure rabbitmq queue setup operations. Auto-activating skill for Backend Development. Triggers on: rabbitmq queue setup, rabbitmq queue setup Part of the Backend Development skill category. Use when working with rabbitmq queue setup functionality. Trigger with phrases like…
  • 95messaging-testing-rabbitmq
    RabbitMQ integration testing with @SpringRabbitTest, RabbitListenerTestHarness, TestRabbitTemplate, and Testcontainers. Covers Java/Spring, Node.js, and Python. USE WHEN: user mentions "rabbitmq test", "@SpringRabbitTest", "RabbitListenerTestHarness", "TestRabbitTemplate",…
  • 100spring-amqp
    Spring AMQP for RabbitMQ integration with RabbitTemplate and @RabbitListener. Covers exchanges, queues, bindings, DLQ, and message conversion. USE WHEN: user mentions "spring amqp", "RabbitTemplate", "@RabbitListener", "RabbitMQ Spring", "AMQP", "message queue Spring Boot" DO…
  • 100rabbitmq-configuration
    Designs RabbitMQ exchange/queue/binding topology, virtual host separation, and clustering for high availability. Use when the user asks to "design a RabbitMQ exchange," "set up queue bindings," "create a virtual host," "cluster RabbitMQ nodes," "choose exchange type," or set up…
  • 100rabbitmq-production
    Knowledge base for running RabbitMQ under production load, split into on-demand references. TRIGGER WHEN: designing, operating, upgrading, monitoring or securing RabbitMQ in production, or implementing delivery patterns (retry, outbox, idempotency, RPC). DO NOT TRIGGER WHEN:…
  • 90backend-event-driven
    Use this skill when the user says 'event-driven', 'message queue', 'Kafka', 'RabbitMQ', 'pub/sub', 'domain event', 'event sourcing', 'CQRS', 'async messaging', 'event bus', or when designing asynchronous communication between services. This skill enforces: domain vs integration…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.