public-rabbitmq-expert-base
Skill25 starsChanged 4 months agoApache-2.0View on GitHub
RabbitMQ 知识基座。覆盖 Exchange Types、Queue & Routing、Durability、Dead Letter、Confirmations。供 devlab-rabbitmq-usage 通过 extends 继承。
In this repository57 other files it gives its agents.
- base-cn-registry-mirror-strategySkill
- base-manual-captureSkill
- devlab-ai-agent-engineeringSkill
- devlab-ai-kit-minerSkill
- devlab-cicd-onboardSkill
- devlab-contract-web-serverSkill
- devlab-dao-sql-compatSkill
- devlab-db-data-migrationSkill
- devlab-eval-driven-agentSkill
- devlab-integration-fullstackSkill
- devlab-srv-test-apiSkill
- devlab-tech-debt-opsSkill
- devlab-test-expertSkill
- devlab-test-onboardSkill
- devlab-web-contextSkill
- devlab-web-deep-acceptanceSkill
- devlab-web-echarts-usageSkill
- devlab-web-engineeringSkill
- devlab-web-extension-bootstrapSkill
- devlab-web-skywalking-rum-usageSkill
- devlab-web-test-e2eSkill
- devlab-web-visual-opsSkill
- devlab-web-xyflow-usageSkill
- diag-container-oomSkill
- diag-k8s-node-pressureSkill
- diag-k8s-pod-crashloopSkill
- diag-mysql-deadlockSkill
- diag-mysql-replicationSkill
- diag-mysql-slow-querySkill
- diag-network-port-unreachSkill
- infra-dify-opsSkill
- infra-harbor-opsSkill
- infra-jenkins-pipeline-opsSkill
- infra-nexus-opsSkill
- infra-ragflow-opsSkill
- infra-sonarqube-opsSkill
- infra-system-env-opsSkill
- infra-woodpecker-pipeline-opsSkill
- markitdownSkill
- patent-disclosure-workflowSkill
- patent-reviewSkill
- patent-specification-writerSkill
- public-git-workflow-expert-baseSkill
- public-kafka-expert-baseSkill
- public-mongodb-expert-baseSkill
- public-mysql-expert-baseSkill
- public-nl2sql-expert-baseSkill
- public-oracle-expert-baseSkill
- public-postgres-expert-baseSkill
- public-redis-expert-baseSkill
- work-convertSkill
- work-exportSkill
- work-markitdownSkill
- work-sc-document-sop-builderSkill
- work-sc-docx-comment-replySkill
- work-sc-patent-specification-writerSkill
- work-sc-software-copyright-writerSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Default exchange (empty name): direct routing by queue name.
- Distinctive: line 19
Always declare exchanges explicitly.
- Very specific: line 24
Use x-message-ttl for message expiration.
- Very specific: line 25
Use x-max-length to cap queue size (drop or dead-letter oldest).
- Very specific: line 32
Never use auto_ack=true in production (message loss on consumer crash).
- Distinctive: line 37
Use DLX for retry queues, error handling, and audit trails.
- Distinctive: line 43
Use connection pooling for multi-threaded applications.
- Distinctive: line 53
Always use publisher confirms and consumer acknowledgments.
- Very specific: line 54
Never use auto_ack=true in production.
- Distinctive: line 55
Always declare queues and exchanges explicitly.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
RabbitMQ Knowledge Base
Source: Adapted from mindrally/skills (rabbitmq-development) and RabbitMQ official documentation.
Exchange Types
| Type | Routing | Use for |
| Direct | Exact routing key match | Point-to-point, RPC |
| Topic | Wildcard pattern (*.info, #) | Flexible pub/sub |
| Fanout | Ignore routing key, broadcast to all bound queues | Broadcast notifications |
| Headers | Match on message headers (not routing key) | Complex routing rules |
- Default exchange (empty name): direct routing by queue name. Convenient but not recommended for production.
- Always declare exchanges explicitly; don't rely on auto-created exchanges.
Queue & Routing
- Declare queues with
durable=truefor persistence across broker restarts. - Bind queues to exchanges with routing keys.
- Use
x-message-ttlfor message expiration. - Use
x-max-lengthto cap queue size (drop or dead-letter oldest). - Prefetch count (
basic_qos): limit unacknowledged messages per consumer.
Durability & Reliability
durable=trueon queue +persistentdelivery mode on message = survive broker restart.- Publisher confirms:
confirm_select()→ broker acknowledges message receipt. - Consumer acknowledgments:
basic_ack(success) /basic_nack(failure, requeue or dead-letter). - Never use
auto_ack=truein production (message loss on consumer crash).
Dead Letter Exchange (DLX)
- Messages are dead-lettered when: rejected (
basic_nackwith requeue=false), TTL expired, or queue length exceeded. - Configure with
x-dead-letter-exchangeandx-dead-letter-routing-keyon the source queue. - Use DLX for retry queues, error handling, and audit trails.
- Pattern: main queue → DLX → retry queue (with TTL) → main queue.
Connection & Channel
- One connection per application; multiple channels per connection.
- Channels are lightweight; connections are expensive (TCP + AMQP handshake).
- Use connection pooling for multi-threaded applications.
- Set
heartbeatinterval (default 60s) to detect dead connections.
Common Patterns
- Work queue: multiple consumers, round-robin dispatch, prefetch=1 for fair dispatch.
- Pub/Sub: fanout exchange, each subscriber has own queue.
- RPC: direct exchange, correlation_id + reply_to for request/response.
- Delay/Retry: DLX + TTL queue for delayed message processing.
Guardrails
- Always use publisher confirms and consumer acknowledgments.
- Never use
auto_ack=truein production. - Always declare queues and exchanges explicitly.
- Set prefetch count to prevent consumer overload.
- Monitor queue depth and consumer lag.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

