Token导航 LogoToken导航TokenDH.com
运维和基础设施需要联网github未标认证来源可访问clear审计通过

rabbitmq-developmentrabbitmq 开发

Agent Skill

rabbitmq-development 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

7,926

周安装

337

GitHub Stars

87

下载量

2,777
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:rabbitmq-development(rabbitmq 开发)
来源仓库:https://github.com/mindrally/skills
仓库路径:skills/rabbitmq-development
安装命令:
npx skills add https://github.com/mindrally/skills --skill rabbitmq-development
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/mindrally/skills --skill rabbitmq-development

简介

rabbitmq-development 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态进行整理时使用。

  • 适用于运维和基础设施类任务,可协助分析系统变更和协作流程。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限范围。
  • 安装前建议核实维护状态,避免触发联网或命令执行等敏感操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

RabbitMQ Development

You are an expert in RabbitMQ and AMQP (Advanced Message Queuing Protocol) development. Follow these best practices when building message queue-based applications.

Core Principles

  • RabbitMQ is a message broker that receives messages from publishers and routes them to consumers
  • AMQP 0-9-1 is the most commonly used protocol - an application layer protocol transmitting data in binary format
  • Design for reliability, scalability, and fault tolerance
  • Leave NO todos, placeholders, or missing pieces in the implementation

Architecture Components

Exchanges

  • Direct Exchange: Routes based on exact routing key match - use for unicast routing
  • Fanout Exchange: Routes to all bound queues regardless of routing key - use for broadcast
  • Topic Exchange: Routes based on wildcard pattern matching - use for multicast routing
  • Headers Exchange: Routes based on message header attributes - use for complex routing logic

Queues

  • Queues store messages until consumed
  • Can be durable (survives broker restart) or transient (in-memory only)
  • Metadata of durable queues is stored on disk
  • Metadata of transient queues is stored in memory when possible

Bindings

  • Connect exchanges to queues with routing rules
  • Binding keys determine which messages reach which queues
  • Multiple bindings can connect the same exchange to multiple queues

Queue Management Best Practices

Queue Size

  • Keep queue sizes small - large queues put heavy load on RAM usage
  • RabbitMQ flushes messages to disk when RAM is constrained, impacting performance
  • Monitor queue depth and implement backpressure mechanisms
  • Use TTL (Time-To-Live) to automatically remove old messages

Queue Types

Classic Queues

  • Traditional RabbitMQ queue implementation
  • Good for most use cases
  • Supports all features (lazy queues, priorities, etc.)

Quorum Queues (Recommended)

  • Introduced in RabbitMQ 3.8
  • Replicated queue type for high availability and data safety
  • Declare with x-queue-type: quorum
  • Use for queues requiring durability and fault tolerance
  • Cannot be set via policy - must be declared by client

Performance Optimization

  • Use transient messages for fastest throughput when durability isn't required
  • Persistent messages are written to disk immediately, affecting throughput
  • Queues are single-threaded - one queue handles up to ~50,000 messages
  • Use multiple queues for better throughput on multi-core systems
  • Have as many queues as cores on the underlying nodes

Connection and Channel Management

Connections

  • Each connection uses approximately 100 KB of RAM (more with TLS)
  • Thousands of connections can burden the server significantly
  • Implement connection pooling in your applications
  • Reuse connections where possible

Channels

  • Channels are lightweight connections multiplexing a single TCP connection
  • Publishing and consuming happens over channels
  • Create channels per thread/operation, not per message
  • Close channels when no longer needed to free resources

Prefetch and Consumer Configuration

Prefetch (QoS)

  • Prefetch defines how many unacknowledged messages a consumer receives at once
  • Setting prefetch optimizes consumer throughput
  • Low prefetch (1-10): Fair distribution, good for slow consumers
  • High prefetch (100+): Better throughput, risk of uneven distribution
  • Start with a moderate value (50-100) and tune based on metrics

Acknowledgments

  • Auto-ack: Higher throughput, least guarantees on failures
  • Manual-ack: Lower throughput, better reliability
  • Consider manual acknowledgment mode first as a rule of thumb
  • Acknowledge promptly after processing to release server resources

Message Handling

Message Properties

  • Set delivery_mode=2 for persistent messages (survives broker restart)
  • Use content_type to indicate payload format
  • Include correlation_id for request/response patterns
  • Set expiration for time-sensitive messages

Publishing Best Practices

  • Use publisher confirms for reliable publishing
  • Handle returned messages (mandatory flag) appropriately
  • Batch messages when possible for better throughput
  • Consider message size - large messages impact performance

Error Handling

Dead Letter Exchanges

  • Configure DLX for handling failed messages
  • Messages routed to DLX when: rejected with requeue=false, TTL expires, queue length exceeded
  • Process dead-lettered messages separately for analysis and retry

Retry Queues Pattern

  • Don't requeue failed messages to the same queue indefinitely
  • Risk of self-inflicted DoS attack with continuous retry loops
  • Implement retry queues with increasing delays
  • Forward problematic messages to a "timeout" queue
  • Example delays: 1s, 5s, 30s, then dead letter

Circuit Breaker

  • Implement circuit breaker pattern for downstream failures
  • Prevent queue buildup when consumers can't process messages
  • Use exponential backoff for reconnection attempts

High Availability

Clustering

  • Deploy RabbitMQ in a cluster for high availability
  • Use quorum queues for replicated, durable queues
  • Configure appropriate number of replicas

Mirroring (Classic Queues)

  • Use ha-mode policy for classic queue mirroring
  • Prefer quorum queues over mirrored classic queues for new deployments

Security

Authentication

  • Use strong passwords and rotate regularly
  • Consider LDAP or OAuth2 integration for enterprise deployments
  • Enable TLS for encrypted connections
  • Use separate credentials per application/service

Authorization

  • Implement vhost-based isolation for multi-tenant scenarios
  • Grant minimum necessary permissions (configure, write, read)
  • Use permission patterns to restrict access to specific resources

Monitoring and Observability

Key Metrics

  • Queue depth (messages ready, messages unacknowledged)
  • Message rates (publish, deliver, acknowledge)
  • Connection and channel counts
  • Memory and disk usage
  • Consumer utilization

Management Plugin

  • Enable the management plugin for monitoring UI
  • Use HTTP API for programmatic monitoring
  • Export metrics to Prometheus/Grafana

Alerts

  • Alert on queue depth exceeding thresholds
  • Monitor memory and disk alarms
  • Track consumer disconnections
  • Watch for message rate anomalies

Testing

Unit Testing

  • Mock RabbitMQ client for isolated testing
  • Test message serialization/deserialization
  • Verify exchange and queue declarations

Integration Testing

  • Use containerized RabbitMQ for tests
  • Test failure scenarios (connection loss, broker restart)
  • Verify message acknowledgment behavior
  • Load test with realistic message rates

Common Patterns

Work Queues (Task Distribution)

  • Multiple consumers on single queue for load distribution
  • Use prefetch to ensure fair distribution
  • Acknowledge after task completion

Publish/Subscribe

  • Use fanout exchange for broadcasting
  • Each subscriber gets its own queue bound to the exchange
  • Consider topic exchange for filtered subscriptions

RPC (Request/Response)

  • Use correlation_id to match requests and responses
  • Create exclusive reply queue per client
  • Implement timeouts for pending requests

Event Sourcing

  • Use exchanges for event distribution
  • Multiple services can independently consume events
  • Maintain event ordering within partitions

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenCode

29.51%
按下载量换算819

Claude Code

19.86%
按下载量换算552

Antigravity

15.26%
按下载量换算424

Codex

12.96%
按下载量换算360

Gemini CLI

7.76%
按下载量换算215

github-copilot

3.39%
按下载量换算94

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills