backend-transactional-outbox

backend-transactional-outbox is a skill for Claude Code, Codex from j4flmao/agent-skills. It costs 136 tokens per session (4,539 once invoked), scanned A, original, MIT.

A guide to the transactional outbox pattern, which records a business change and its event in the same database transaction before a separate process publishes the event.

In plain words
What is it for?
Use it to design reliable event publishing with an outbox table, message relay, change-data capture, retries, and consumer deduplication.
Why use it?
It prevents a database update from succeeding while its message fails to reach another service, a problem known as a dual write.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument; mentions Codex.

Good fit Use it to design reliable event publishing with an outbox table, message relay, change-data capture, retries, and consumer deduplication.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/j4flmao/agent-skills/transactional-outbox
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 j4flmao/agent-skills --skill transactional-outbox
Clone the repo
git clone --depth 1 https://github.com/j4flmao/agent-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 backend-transactional-outbox

README.md
[![agentmods](https://agentmods.dev/badge/skills/j4flmao/agent-skills/transactional-outbox/github.svg)](https://agentmods.dev/skills/j4flmao/agent-skills/transactional-outbox)
Your own site
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/transactional-outbox"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/transactional-outbox/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 backend-transactional-outbox

Your own site · 80×15
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/transactional-outbox"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/transactional-outbox.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 136 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,539 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00136 $0.04539
Opus 5 $0.00068 $0.02269
Sonnet 5 $0.00027 $0.00908
Haiku 4.5 $0.00014 $0.00454

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

Security

Grade A, and why

backend-transactional-outbox 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 8d 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/backend/universal/transactional-outbox/SKILL.md · 563 lines

How it starts

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

Backend Transactional Outbox

Purpose

Guarantee reliable event publication by writing events to an outbox table within the same database transaction as the business operation, then publishing them via a separate message relay process.

Agent Protocol

Trigger

Exact user phrases: "outbox", "transactional outbox", "outbox pattern", "reliable event publishing", "dual write", "CDC outbox", "message relay", "publish events", "exactly-once publish", "debezium outbox".

Input Context

  • Database technology (PostgreSQL, MySQL, SQL Server, etc.).
  • Message broker (Kafka, RabbitMQ, SQS, etc.).
  • Whether dual-write (DB + broker) is a current problem.
  • Current event publishing mechanism.

Output Artifact

Outbox implementation design as text. No file unless requested.

Response Format

Outbox table: {table schema}
Write strategy: {same transaction|CDC}
Relay: {polling|CDC|transaction log}
Delivery: {at-least-once|exactly-once}
Consumer dedup: {key and storage}

Completion Criteria

  • Outbox table created in the same database as business data.
  • Business operation and outbox insert are in the same DB transaction.
  • Message relay process is separate from the application.
  • Outbox records are deleted or marked processed after successful publish.
  • Relay handles failures with retry and backoff.
  • Consumers are idempotent (handle duplicate deliveries).
  • Monitoring in place for outbox backlog.

Max Response Length

15 lines for design. 8 lines for table schema.

Decision Tree

Relay Strategy

What throughput do you need?
  ├── Low to moderate (<1000 events/sec), want simplicity
  │   └── Polling relay — periodic SQL query for unprocessed rows
  ├── High throughput (>1000 events/sec), need near real-time
  │   └── CDC relay (Debezium) — tail the WAL, no polling overhead
  └── Moderate throughput, want logical replication, no extra infra
      └── PostgreSQL LISTEN/NOTIFY + polling as fallback

When to Use Outbox Pattern

Read the full file on GitHub · 563 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. 8d ago First seen · 563 lines · 136 tokens per session scan A d4b6d77c9948

Subscribe to this mod's changes

backend-transactional-outbox is a skill published in the GitHub repository j4flmao/agent-skills (23 stars, last pushed 5d ago), licensed MIT. It adds 136 tokens to every session and 4,539 once invoked, about $0.0007 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-09-03.