/architecture-skills:event-driven-systemsfrom architecture-skills
Guides design of event-driven and message-driven systems: commands, events, queues, pub/sub, Kafka, choreography, orchestration, sagas, outbox, idempotency, retries, ordering, backpressure, and consumer lag.
Ships in architecture-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use messaging to solve explicit workflow, temporal-decoupling, buffering, or integration needs. It changes coupling rather than removing it and introduces delivery, consistency, failure, and operational responsibilities.
Choreography lets boundaries react to facts without a central director, but the end-to-end process becomes implicit. Use it for small, comprehensible handoffs.
An orchestrator persists progress, receives outcomes, and sends commands for the next step. It adds explicit participant coupling but improves visibility, deadlines, and compensation. A policy can record prerequisite events and act once all are present, removing unnecessary arrival-order dependencies.
| Need | Pattern | Critical detail |
|---|---|---|
| Atomic state and publication | Transactional outbox | Relay can publish duplicates |
| Duplicate internal work | Inbox/deduplication | Record ID and state change in one transaction |
| External side effect | Idempotency key and reconciliation | Local inbox cannot prevent duplicate remote effects |
| Unknown event order | Stateful policy | Record prerequisites and trigger once |
| Required per-key order | Partition/message group | Ordering limits concurrency |
| Complex workflow | Orchestrator/saga | Persist progress and model compensation |
| Future action | Delayed message | Recheck current state on delivery |
| Large payload | Claim check | Secure shared payload storage |
| New projection | Replay, snapshot, or lazy seed | Question broad data copying |
| Failure | Response |
|---|---|
| State commits but publication fails | Outbox |
| Acknowledgement is lost | Idempotent consumer or inbox |
| Remote request times out | Query by reference or reconcile |
| Poison message repeats | Bounded retries, inspectable DLQ, controlled replay |
| Slow dependency occupies workers | Timeouts, isolation, circuit/fail-fast where appropriate |
| Production exceeds consumption | Optimize, scale consumers, reduce inflow, or bound capacity |
| Hot partition | Revisit partition key; extra consumers cannot help that partition |
| Contract breaks consumers | Compatible evolution or a new version/type |
| Read model lags after a write | Primary read, wait/poll by version, or push completion |
Assume at-least-once delivery. Make outcomes idempotent, expect outbox relay duplicates, prefer order-independent policies, bound retries by failure type, and treat timeouts as uncertainty rather than proof of failure.
External events are public APIs. Prefer additive changes, but verify serializer, schema-registry, and consumer behavior because unknown fields are not universally safe. Use replacement events for semantic changes and translate from internal state. Thin events work when consumers own what they need. State-carrying events are valid when data distribution is the purpose, with explicit staleness, seeding, and schema-coupling costs.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
event-driven-architecture, message-queues, kafka, pub-sub, sagas, outbox-pattern
8 skills in this plugin
/codebase-designUse for code-level module design, deep modules, interfaces, seams, adapters, testability, refactoring shallow modules, and finding architecture improvements in an existing codebase./design-reviewDesign review of a codebase area, branch, or PR. Maps its bounded contexts, vertical slices, and modules, then judges where rules live and whether flexibility sits where change actually happens. Use when the user asks for a design or architecture review, or when a review should judge structure rather than bugs or style./domain-driven-designUse for domain-driven design, domain modeling, ubiquitous language, bounded contexts, aggregates, invariants, entities, value objects, domain services, domain events, and deciding whether a rich domain model is warranted.Other plugins' skills for the same job
npx claudepluginhub eralmansouri/skills --plugin architecture-skills