agentsclimarketplace

Queue design

Skill sairam0424/MindForge/.mindforge/skills/queue-design

MindForge: The Enterprise Agentic Framework for Claude Code & Antigravity. High-performance autonomous execution, wave-parallelism, and multi-tier governance for production-grade AI engineering.From the repository description

Install
npx -y skills add sairam0424/MindForge --skill queue-design

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.5 KB, 678 tokens by cl100k_base, as published. Nobody here has run it

Skill — Queue Design

When this skill activates

Any task involving message broker selection, queue topology, consumer patterns, TTL policies, priority queues, dead letter queues, or partition strategies.

Mandatory actions when this skill is active

Before writing any code

  1. Identify throughput requirements (messages/sec peak and sustained).
  2. Determine ordering and delivery guarantee requirements.
  3. Select broker based on the decision matrix.

During implementation

  • Configure DLQ for every consumer with retry limits.
  • Set TTL on messages to prevent unbounded queue growth.
  • Implement consumer health checks and graceful shutdown.
  • Use partition keys for ordering-sensitive flows.

After implementation

  • Set up queue depth monitoring with alerting thresholds.
  • Document topology, routing rules, and consumer ownership.
  • Verify DLQ workflow (inspect, fix, replay, discard).

Broker Selection

BrokerStrengthOrderingUse For
KafkaExtreme throughput, replay, retentionPer-partitionEvent sourcing, stream processing, audit logs
RabbitMQFlexible routing, per-message ackPer-queue FIFOTask queues, RPC, complex routing
SQSZero ops, infinite scale, built-in DLQFIFO queues (limited)Decoupling services, background jobs

Queue Topologies

  • Point-to-Point: one queue, competing consumers. Each message consumed once.
  • Fan-Out: one message to multiple queues/groups. Use for event broadcasting.
  • Topic-Based: route by pattern matching. Use for selective subscription.

Consumer Patterns

  • Competing Consumers: multiple instances share workload, scale by adding consumers.
  • Exclusive Consumer: one active at a time, failover pattern for ordered processing.

TTL and Expiration

  • Queue-level TTL: all messages expire after N seconds if unconsumed.
  • Per-message TTL: individual expiration. Typical: notifications 5min, business 24h, audit 7d.
  • Expired messages route to DLQ or silently drop (configure explicitly).

Priority Queues

  • Limited levels (1-10 max, typically 3: high/normal/low).
  • Risk: starvation of low-priority. Mitigate with aging or separate queues.

Dead Letter Queue Design

message → consumer → FAIL → retry (3x exponential) → FAIL → DLQ → alert
  • Retain original body, headers, error details, retry count.
  • Alert on first DLQ arrival. Never auto-replay without root-cause fix.
  • Replay tool moves DLQ → original queue in small monitored batches.

Partition Strategies

  • Partition key = entity ID ensures per-entity ordering.
  • Start with 2x expected consumer count as partition count.
  • Monitor for hot partitions (skewed key distribution).

Self-check before task completion

  • Is the right broker selected for throughput and routing needs?
  • Are DLQs configured with alerting for every consumer?
  • Is TTL set to prevent unbounded growth?
  • Are ordering guarantees maintained where business logic requires?
  • Is the consumer pattern correct (competing vs exclusive)?
  • Are queue depth and consumer lag monitored?
  • Is the DLQ replay workflow documented?

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,401. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.