event-driven-messaging

event-driven-messaging is a skill for Claude Code, Codex from tmj-90/gaffer. It costs 109 tokens per session (1,282 once invoked), scanned A, original, Apache-2.0.

A method for connecting software components with events or messages. An event records something that happened, while a message system delivers it to other components through a broker, topic, or stream.

In plain words
What is it for?
Use it to design published events, message consumers, event schemas and versions, delivery guarantees, ordering rules, replay handling, and change-data-capture flows.
Why use it?
It addresses duplicate, delayed, reordered, or replayed messages and keeps the event format stable for its consumers. It also ensures that a state change and its event are not accidentally separated.

Skill for Claude CodeCodex

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

Good fit Use it to design published events, message consumers, event schemas and versions, delivery guarantees, ordering rules, replay handling, and change-data-capture flows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tmj-90/gaffer/event-driven-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 tmj-90/gaffer --skill event-driven-messaging
Clone the repo
git clone --depth 1 https://github.com/tmj-90/gaffer

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 event-driven-messaging

README.md
[![agentmods](https://agentmods.dev/badge/skills/tmj-90/gaffer/event-driven-messaging/github.svg)](https://agentmods.dev/skills/tmj-90/gaffer/event-driven-messaging)
Your own site
<a href="https://agentmods.dev/skills/tmj-90/gaffer/event-driven-messaging"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/event-driven-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 event-driven-messaging

Your own site · 80×15
<a href="https://agentmods.dev/skills/tmj-90/gaffer/event-driven-messaging"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/event-driven-messaging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,282 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.00109 $0.01282
Opus 5.5 $0.00044 $0.00513
Sonnet 5.5 $0.00022 $0.00256
Haiku 4.5 $0.00011 $0.00128

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

Security

Grade A, and why

event-driven-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 16d 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.

runner/skills/event-driven-messaging/SKILL.md · 87 lines

How it starts

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

Design event-driven messaging

Brokers deliver at least once, redeliver after crashes and rebalances, reorder across partitions, and replay on demand. Events decouple services only when each event is an owned, versioned contract, is published atomically with the state change (transactional outbox), and every consumer is idempotent (inbox) and tolerant of order and replay.

Steps

  1. Use the repo's infrastructure. The broker, client library, topic naming, envelope and schema registry. Call search_lore for them and for declared ownership boundaries. One bus per repo; no new broker for one event.
  2. Design the event as a contract. A past-tense fact (order.placed), owned by one producer. Envelope with a unique event id, type, source, time, schema version, subject/entity key and correlation id (CloudEvents names these; use them if the repo has no envelope). Payload: identifiers plus the facts consumers need, never internal table rows or secrets. Register the schema where the repo keeps them and pin it with a contract test (the contract-test skill). Additive changes only; a breaking change is a new event type or version (the api-versioning skill).
  3. Publish with a transactional outbox. Insert the event into an outbox table in the same transaction as the domain write; a relay (polling with FOR UPDATE SKIP LOCKED, or log tailing/CDC such as Debezium) publishes and marks it sent. Publishing to the broker inside or after the transaction is a dual write: it emits ghosts on rollback or loses events on a crash. The relay itself delivers at least once, so step 5 is mandatory.
  4. Decide ordering explicitly. If consumers need per-entity order, use the entity id as the partition/message-group key and keep one in-flight message per key in the consumer. Never promise global order. Where order cannot be guaranteed (retries, DLQ replays, multiple producers), carry an entity version and let consumers ignore anything older than what they have applied.
  5. Make consumers idempotent with an inbox. In one transaction: insert the event id into a processed-events table (unique constraint), apply the effect, commit; then ack or commit the offset. A duplicate hits the constraint and is acked without effect. Ack after commit, never before; auto-commit of offsets before processing loses messages. Side effects outside the database take an idempotency key (the idempotency-and-retries skill).
  6. Handle failure per message. Classify transient vs permanent; bounded retries with backoff; then a dead-letter topic or table with the error and original payload. A poison message must not block its partition indefinitely. Consumer lag, DLQ count and age of oldest unpublished outbox row are metrics with alerts (the structured-logging-and-tracing skill).
  7. Plan for replay and evolution. Consumers ignore unknown fields, default missing ones, accept every live schema version, and are safe to replay from the start of retention. Document retention and the replay procedure.
  8. Test, one test per AC exercising the AC's own behaviour, plus:
    • the event is in the outbox after commit and absent after rollback;
    • the payload validates against the registered schema;
    • the same event delivered twice produces one effect;
    • an older version arriving after a newer one does not overwrite it;
    • a consumer killed between applying the effect and acking reprocesses safely;
    • a poison message dead-letters and the next message is processed;
    • an old-schema event is handled.

Read the full file on GitHub · 87 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. 16d ago Changed · +22 lines 767381a0af5f
  2. 19d ago First seen · 65 lines · 109 tokens per session scan A 2b92b4fe7e00

Subscribe to this mod's changes

event-driven-messaging is a skill published in the GitHub repository tmj-90/gaffer (2 stars, last pushed 17d ago), licensed Apache-2.0. It adds 109 tokens to every session and 1,282 once invoked, about $0.0004 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-09-28.

Related

Other skills, from other repositories

bulwark-brainstorm

Role-based brainstorming with dual modes: --scoped (sequential Task tool, 5 roles) and --exploratory (Agent Teams peer debate, 4 roles). Use for feasibility assessment and idea validation.

QBall-Inc/the-bulwark · 50 tokens

plan-creation

Create structured implementation plans via a 4-role scrum team (Product Owner, Architect, Eng/Delivery Lead, QA/Critic) with optional Agent Teams peer debate mode.

QBall-Inc/the-bulwark · 38 tokens

anthropic-validator

Validates Claude Code assets (skills, hooks, agents, commands, MCP servers, plugins) against official Anthropic standards. Fetches latest docs dynamically and produces structured validation reports.

QBall-Inc/the-bulwark · 40 tokens

create-subagent

Generates single-purpose Claude Code sub-agents for use via the Task tool. Use when creating dedicated sub-agents, scaffolding agent definitions, or generating agents with diagnostics and permissions setup.

QBall-Inc/the-bulwark · 42 tokens

test-audit

Audit test suites for T1-T4 violations using AST analysis, mock detection, and multi-stage synthesis. Invoke when user asks to audit tests, check test quality, find mock violations, review test effectiveness, or inspect test suites for over-mocking. Triggers automatic rewrites when quality gates fail.

QBall-Inc/the-bulwark · 0 tokens

code-review

Comprehensive code review with distinct aspect based sections. Use when reviewing code, checking for security issues, finding type safety problems, auditing code quality, or when user asks to review code, PRs or changes. Three-phase workflow runs static tools, LLM judgment, and writes diagnostic log.

QBall-Inc/the-bulwark · 61 tokens