reliable-messaging

reliable-messaging is a skill for Claude Code, Codex from garrettw/php-arch-skills. It costs 54 tokens per session (1,468 once invoked), scanned A, original, MPL-2.0.

A guide to building asynchronous messaging in PHP applications. Asynchronous messaging lets separate parts of a system communicate through messages instead of waiting for each other directly.

In plain words
What is it for?
Use it when designing events, message consumers, delivery guarantees, retries, idempotency, outbox or inbox patterns, and sagas.
Why use it?
It helps avoid lost, duplicated, out-of-order, or repeatedly retried messages when work crosses transactions or system boundaries.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when designing events, message consumers, delivery guarantees, retries, idempotency, outbox or inbox patterns, and sagas.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/garrettw/php-arch-skills/reliable-messaging
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.

Any agent
npx skills add garrettw/php-arch-skills --skill reliable-messaging
Clone the repo
git clone --depth 1 https://github.com/garrettw/php-arch-skills

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 reliable-messaging

README.md
[![agentmods](https://agentmods.dev/badge/skills/garrettw/php-arch-skills/reliable-messaging/github.svg)](https://agentmods.dev/skills/garrettw/php-arch-skills/reliable-messaging)
Your own site
<a href="https://agentmods.dev/skills/garrettw/php-arch-skills/reliable-messaging"><img src="https://agentmods.dev/badge/skills/garrettw/php-arch-skills/reliable-messaging/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for reliable-messaging

Your own site · 80×15
<a href="https://agentmods.dev/skills/garrettw/php-arch-skills/reliable-messaging"><img src="https://agentmods.dev/badge/skills/garrettw/php-arch-skills/reliable-messaging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,468 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00054 $0.01468
Opus 5.5 $0.00022 $0.00587
Sonnet 5.5 $0.00011 $0.00294
Haiku 4.5 $0.00005 $0.00147

Measured 18d ago against content hash 171529f81c3e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

reliable-messaging 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 18d 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.

skills/reliable-messaging/SKILL.md · 86 lines

How it starts

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

Reliable Messaging in PHP Applications

When to Use Asynchronous Messaging (and When NOT to)

Messaging introduces eventual consistency, operational failure modes, and more difficult debugging. Use it when work can complete independently, a consumer must scale or fail independently, or a bounded-context boundary should be asynchronous. Keep work synchronous when the caller needs an immediate result and one transaction can safely own the operation.

Use Asynchronous Messaging For Prefer Synchronous Work For
Independent side effects such as notifications or search indexing A decision that must be returned to the caller immediately
Cross-context reactions that can converge eventually A small same-context workflow with one transaction
Work that benefits from independent scaling or failure isolation A workflow whose intermediate state must remain invisible

Do not introduce a broker simply to make code appear decoupled. First define what may be delayed, what happens on failure, and how the user or operator can observe the outcome.

Delivery Guarantees

Assume a message can be delivered more than once. Most practical brokers provide at-least-once delivery; a consumer may finish its work and crash before acknowledging the message. "Exactly once" across a database and broker is not a general guarantee. Design for duplicate delivery with idempotent consumers and durable deduplication.

Numbered Workflows

1. Publishing a Message from a Database Transaction

If a state change and a message must agree:

  1. Write atomically. Persist the aggregate changes and an outbox record in the same database transaction.
  2. Publish separately. A worker claims unpublished outbox records, publishes them, and marks them delivered only after broker confirmation.
  3. Expect duplicates. A crash after publish but before marking delivered causes a repeat; consumers must be idempotent.
  4. Retain and observe. Keep enough delivery state for retries and diagnosis, and define how old outbox rows are archived or removed.

Read the full file on GitHub · 86 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. 18d ago First seen · 86 lines · 54 tokens per session scan A 171529f81c3e

Subscribe to this mod's changes

reliable-messaging is a skill published in the GitHub repository garrettw/php-arch-skills (17 stars, last pushed 13d ago), licensed MPL-2.0. It adds 54 tokens to every session and 1,468 once invoked, about $0.0002 per session on Opus 5.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-11-13.

Related

reliable-messaging compared with skills from other repositories

reliable-messaging next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
reliable-messaginggarrettw/php-arch-skillsSkill1713d agoMPL-2.0A54Claude Code, Codex
bitrix-console-commandsbxmaximum/bitrix-framework-skillsSkill7513d agoMITA55Claude Code, Codex
bitrix-componentsbxmaximum/bitrix-framework-skillsSkill7513d agoMITA58Claude Code, Codex
bitrix-http-clientbxmaximum/bitrix-framework-skillsSkill7513d agoMITA59Claude Code, Codex
bitrix-request-responsebxmaximum/bitrix-framework-skillsSkill7513d agoMITA57Claude Code, Codex
bun-apidmythro/agent-skillsSkill719d agoMITA265Claude Code, Codex
laravelarbazkhan971/godmodeSkill353mo agoMITA52Claude Code