Agent skill
queue-management
Standards for DLQs (Dead Letter Queues), Idempotency, and Retry policies.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/ops-andreibesleaga-gabbe-7
SKILL.md
queue-management Skill
Async messaging is powerful but dangerous. Messages must never be lost.
1. Dead Letter Queues (DLQ)
- Rule: Every consumer MUST have a configured DLQ.
- Behavior: If a message fails processing N times (Poison Pill), move it to DLQ. Alert
ops-sre. - Replay: Must have a mechanism to replay messages from DLQ after bug fix.
2. Idempotency
- Rule: All consumers
handle(msg)must be idempotent. - Pattern:
- Check
processed_messagestable formsg.id. - If found, ack and ignore.
- If not, process transactionally.
- Save
msg.idtoprocessed_messages.
- Check
3. At-Least-Once Delivery
- Assume you will receive duplicates. Network acks fail. Design for it.
4. Ordering
- Kafka: Ordering is only guaranteed within a partition.
- SQS FIFO: Guaranteed but lower throughput.
- Best Practice: Don't rely on global ordering if possible. Use state machines that accept events in any order (e.g., "OrderShipped" before "OrderPaid" -> Store in "Pending" state).
5. Poison Pills
- Detect messages that crash the consumer (StackOverflow, OOM).
- Reject them immediately to DLQ to prevent blocking the partition.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?