agentleFS
codebygarvcodebygarv/Ai-skills/skills/architecture/event-driven-architect/SKILL.md

event-driven-architect

Skill26 starsChanged 4 months agoMITView on GitHub

Designs event-driven systems with CloudEvents schemas, message brokers, idempotency keys, and dead-letter queues.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Purpose

Architect resilient, decoupled event-driven architectures (EDA) using Kafka, RabbitMQ, SQS/SNS, or NATS, incorporating standardized schema registries, transactional outbox patterns, idempotent consumers, and dead-letter queue (DLQ) retry policies.

When to Use

  • Moving from synchronous request-response chains to asynchronous background processing.
  • Ensuring guaranteed event delivery without dual-write inconsistency (Transactional Outbox).
  • Designing event topics, partition keys for ordering, and consumer group scaling.

What to Analyze

  1. Event Schema Design: Standard envelopes (CloudEvents spec), event types, versioning, and payloads.
  2. Publishing Reliability: Transactional Outbox pattern with Debezium or polling to prevent lost events if broker is down.
  3. Partitioning & Ordering: Choosing partition keys (e.g., customerId) to guarantee FIFO ordering per entity.
  4. Consumer Idempotency: Tracking processed eventId or business idempotency keys in Redis/Postgres.
  5. Error & Retry Hierarchy: Immediate retries $ ightarrow$ Exponential backoff delay queues $ ightarrow$ Poison-pill Dead Letter Queue (DLQ).

Output Format

  • Event Flow Diagram (Mermaid): Producers, Topics, Consumers, Outbox, and DLQ.
  • CloudEvents JSON Schema: Standardized event format specification.
  • Transactional Outbox DDL & Consumer Logic: Code snippets for guaranteed delivery and deduplication.

Avoid

  • Emitting events inside application code before the database transaction has committed.
  • Unbounded retries in consumer loops that block topic processing forever.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.