messaging-queues

messaging-queues is a skill for Claude Code, Codex from kouroshez/coding-os. It costs 179 tokens per session (2,330 once invoked), scanned A, original, Apache-2.0.

A guide to asynchronous messaging, where work or events move through queues, brokers, or streams instead of waiting inside the current request. It explains queues, event logs, publish-subscribe systems, retries, ordering, and delivery guarantees.

In plain words
What is it for?
Use it when introducing RabbitMQ, Kafka, SQS, NATS, or Redis Streams; choosing queues versus event logs; designing retry-safe consumers; or handling retries, dead-letter queues, duplicates, and ordering.
Why use it?
Distributed systems can lose, duplicate, or reorder messages, especially when services fail or retry work. This guide helps you choose the right messaging shape and handle those failures safely.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/kouroshez/coding-os/messaging-queues
Any agent
npx skills add kouroshez/coding-os --skill messaging-queues
Clone the repo
git clone --depth 1 https://github.com/kouroshez/coding-os

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for messaging-queues

README.md
[![agentmods](https://agentmods.dev/badge/skills/kouroshez/coding-os/messaging-queues.svg)](https://agentmods.dev/skills/kouroshez/coding-os/messaging-queues)
Your own site
<a href="https://agentmods.dev/skills/kouroshez/coding-os/messaging-queues"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/messaging-queues.svg" alt="Measured on agentmods" height="20"></a>
Per session 179 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,330 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00179 $0.02330
Opus 5 $0.00089 $0.01165
Sonnet 5 $0.00036 $0.00466
Haiku 4.5 $0.00018 $0.00233

Measured 4d ago against content hash df658ea5d73c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

messaging-queues scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/core/skills/messaging-queues/SKILL.md · 143 lines

How it starts

The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Messaging & Queues — Async Delivery That Survives Failure

A practical guide to moving work off the request path and across service boundaries without losing, duplicating, or reordering it into corruption. Stack-agnostic; concrete recipes target RabbitMQ, Kafka, AWS SQS/SNS, NATS, and Redis Streams as the reference brokers.

When to Use This Skill

  • Introducing the first broker into a system that has only synchronous HTTP calls.
  • Choosing between a work queue, an event log, and pub/sub fan-out for a new flow.
  • Designing a consumer that must be safe to retry — idempotency, dedup, exactly-once illusions.
  • Sizing retry/backoff, dead-letter queues, and poison-message handling before launch.
  • Debugging duplicate processing, lost messages, or out-of-order delivery in production.
  • Deciding partition keys / ordering guarantees for an event stream.

Skip when: the caller needs the result synchronously in the same request — that is an HTTP/RPC contract (see api-design / grpc-microservices), not a queue.

The First Decision — Queue vs Log vs Pub/Sub

These three are not interchangeable. Pick by who consumes and whether history matters.

Shape Semantics Each message goes to Use when Reference broker
Work queue competing consumers, message removed on ack exactly one worker in the pool distribute jobs, scale horizontally RabbitMQ, SQS
Event log append-only, retained, replayable by offset every consumer group, independently event sourcing, audit, replay, multiple readers Kafka, Redis Streams
Pub/Sub fan-out, fire-and-forget, no retention every live subscriber once broadcast notifications, cache invalidation SNS, NATS, Redis pub/sub

The classic mistake is reaching for Kafka when a work queue is wanted (now there is partition/offset/consumer-group machinery for a job dispatcher) or using a pub/sub broadcast when at-least-once durable delivery is required (subscribers offline at publish time silently miss the message).

Read the full file on GitHub · 143 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 143 lines · 179 tokens per session scan A df658ea5d73c

Subscribe to this mod's changes

messaging-queues is a skill published in the GitHub repository kouroshez/coding-os (6 stars, last pushed 4d ago), licensed Apache-2.0. It adds 179 tokens to every session and 2,330 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

graph-mutation-plan

Cookbook for composing an applygraphmutations plan — stable entitykey patterns, the canonical label/edge vocabulary, evidence/invalidation/confidence discipline, and a worked example. Load this when building a non-trivial mutation plan.

potpie-ai/potpie · 51 tokens

potpie-infra-architecture

Use for project infra and architecture context: environments, adapters, runtime configuration, deployments, service dependencies, datastores, API contracts, ownership, incidents, and dependency blast radius.

potpie-ai/potpie · 43 tokens

alfworld-receptacle-finder

Searches for a suitable empty or appropriately occupied receptacle (like a shelf or table) to place an object. Use when you are holding an object that needs to be stored or placed and must find a receptacle that meets the placement criteria. Examines candidate receptacles by navigating to and inspecting each one until…

zjunlp/SkillNet · 76 tokens

alfworld-search-pattern-executor

Systematically searches a sequence of likely locations for a target object based on common sense. Use when you need to find a specific object and know which receptacles to check but not which one contains it. Takes a list of candidate receptacles, orchestrates navigation and inspection, and outputs when the target is…

zjunlp/SkillNet · 74 tokens

ux-ui-analyze-single-page

Analyze exactly one captured UI page (from uxuimap screenshots + request JSON) and immediately write/update uxuimap/pages/{page}.md in neutral descriptive language. Use when asked to analyze screenshots, rewrite corresponding analysis immediately, or avoid memory/context saturation.

raphaelmansuy/edgequake · 58 tokens

scienceworld-growth-focuser

Use when you have planted a seed or need to track a plant's growth stage (sprouting, flowering, reproduction). Applies the 'focus on' action to a specific plant or biological entity to signal intent and monitor its development. Trigger after planting or when you need to observe life cycle progression in the…

zjunlp/SkillNet · 71 tokens