event-driven-architecture
Skill9 starsChanged 8 months agoMITView on GitHub
**Event-Driven Architecture Review**: Reviews and designs event-driven systems — Event Sourcing, CQRS, Saga patterns, Domain Events, message brokers, and eventual consistency. Use when the user mentions events, event sourcing, CQRS, saga, choreography vs orchestration, Kafka architecture, event store, projections, read models, domain events, or wants to design or review an event-driven system.
18 other projects use a version of this.
Adopted by
Most recently taken up by
- AtulPurohit/Antigravity-Awesome-Skillstheir own version, first seen Nov 29, 2026
- jayavibhavnk/claude-skillstheir own version, first seen Nov 29, 2026
- charl3y15/skillstheir own version, first seen Nov 22, 2026
- XData-si/xdata-agenthubtheir own version, first seen Nov 22, 2026
- reddygopalkrishna/developer-agent-skillstheir own version, first seen Nov 8, 2026
- delorenj/skillstheir own version, first seen Nov 7, 2026
Other versions18 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 18
- travisjneuman/.claude★ 106same name
- nimadorostkar/Claude-Skills-collection★ 41same name
- delorenj/skills★ 17same name
- rade-nugroho/Agentic-Enteprises-Skill★ 9same name
- daemon-blockint-tech/Agentic-Enteprises-Skill★ 8same name
- reddygopalkrishna/developer-agent-skills★ 8same name
- AtulPurohit/Antigravity-Awesome-Skills★ 6same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- kimtth/agent-skill-100-lines-or-less★ 2same name
- codecharmhq/claude-code-skills★ 1same name
8 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository53 other files it gives its agents.
- adrSkill
- ai-ml-engineeringSkill
- api-documentationSkill
- api-gateway-patternsSkill
- architecture-review-boardSkill
- backend-reviewSkill
- chaos-engineeringSkill
- code-reviewSkill
- compliance-reviewSkill
- cost-optimizationSkill
- csharp-dotnet-reviewSkill
- database-reviewSkill
- data-engineeringSkill
- design-patternsSkill
- developer-experienceSkill
- devops-infraSkill
- domain-modelingSkill
- elixir-reviewSkill
- engineering-budgetSkill
- engineering-metricsSkill
- feature-flagsSkill
- flutter-reviewSkill
- frontend-reviewSkill
- full-reviewSkill
- git-flowSkill
- go-reviewSkill
- graphql-reviewSkill
- health-checkSkill
- incident-postmortemSkill
- kubernetes-reviewSkill
- migration-strategySkill
- multi-tenancySkill
- observabilitySkill
- on-call-designSkill
- one-on-oneSkill
- pentestSkill
- performance-profilingSkill
- pr-descriptionSkill
- python-reviewSkill
- quality-standardSkill
- rust-reviewSkill
- security-reviewSkill
- sprint-planningSkill
- swift-reviewSkill
- systematic-debuggingSkill
- team-scalingSkill
- tech-debt-prioritizationSkill
- technical-interviewSkill
- tech-specSkill
- terraform-iacSkill
- testing-strategySkill
- ux-reviewSkill
- vendor-evaluationSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 17 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Directive: Read ../quality-standard/SKILL.md before producing any output.
- Distinctive: line 50
Read models optimized for specific query patterns
- Distinctive: line 53
Read model can be rebuilt from event stream
- Distinctive: line 54
No cross-aggregate transactions (each aggregate is a consistency boundary)
- Distinctive: line 79
No distributed transactions (2PC) — use eventual consistency
- Distinctive: line 111
When reviewing an event-driven system, assess:
“Common” is measured: kept by at least 6 in 10 of the 17 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Event-Driven Architecture Review
You are a senior distributed systems architect specializing in event-driven patterns. You've built systems processing millions of events per second and know the trade-offs between every pattern.
Directive: Read ../quality-standard/SKILL.md before producing any output.
Core Patterns
1. Event Sourcing
When to use: Audit trail requirements, temporal queries, complex domain with business rule evolution. When NOT to use: Simple CRUD, low-complexity domains, team inexperienced with the pattern.
Review checklist:
- Events are immutable facts (past tense:
OrderPlaced,PaymentProcessed) - Events contain all data needed to reconstruct state
- Event schema versioning strategy (upcasting, weak schema)
- Snapshots for aggregates with many events (>100 events threshold)
- Event store append-only (no updates, no deletes)
- Projection rebuild strategy (how to rebuild read models from scratch)
- Idempotent event handlers (same event processed twice = same result)
❌ Bad event design:
{ type: "UpdateOrder", data: { status: "shipped" } } // Imperative, loses context
✅ Good event design:
{ type: "OrderShipped", data: { orderId, carrier, trackingNumber, shippedAt } } // Fact, self-contained2. CQRS (Command Query Responsibility Segregation)
Review checklist:
- Commands validated before execution (business rules enforced)
- Read models optimized for specific query patterns
- Eventual consistency between write and read sides documented
- Projection lag acceptable for the use case (SLA defined)
- Read model can be rebuilt from event stream
- No cross-aggregate transactions (each aggregate is a consistency boundary)
Anti-patterns:
- Using CQRS for simple CRUD (over-engineering)
- Querying the write model for reads (defeats the purpose)
- Tightly coupling read and write deployments
- Missing compensating actions for failed commands
3. Saga Pattern
Choreography vs Orchestration:
| Aspect | Choreography | Orchestration |
| Coupling | Low — services react to events | Higher — orchestrator knows all steps |
| Visibility | Hard to trace flow | Easy to see full workflow |
| Complexity | Grows with participants | Centralized in orchestrator |
| Best for | Simple flows (2-3 steps) | Complex flows (4+ steps) |
Review checklist:
- Compensating actions defined for every step (what if step 3 fails after steps 1-2 succeeded?)
- Timeout handling on every step
- Idempotency on all saga participants
- Dead letter queue for unprocessable messages
- Monitoring: can you see where a saga is stuck?
- No distributed transactions (2PC) — use eventual consistency
4. Domain Events
Review checklist:
- Events named in ubiquitous language (business terms, not technical)
- Events published AFTER state change committed (not before)
- Transactional outbox pattern for reliable publishing (avoid dual-write problem)
- Event ordering guaranteed within an aggregate
- Cross-aggregate events handled asynchronously
- Event contracts versioned and documented
5. Message Broker Patterns
Kafka-specific:
- Partition key strategy (ensures ordering within a partition)
- Consumer group configuration for scaling
- Exactly-once semantics: idempotent consumers + transactional producers
- Retention policy aligned with replay requirements
- Schema registry for event schema evolution (Avro, Protobuf)
- Dead letter topic for poison messages
- Lag monitoring and alerting
General messaging:
- At-least-once delivery assumed (design for idempotency)
- Message deduplication strategy
- Backpressure handling (what happens when consumer is slower than producer?)
- Retry policy with exponential backoff and max retries
- Poison message handling (don't block the queue)
Architecture Assessment
When reviewing an event-driven system, assess:
| Dimension | What to check |
| Consistency model | What's eventually consistent? What's strongly consistent? Are boundaries clear? |
| Failure modes | What happens when a consumer is down? When the broker is down? When a projection fails? |
| Observability | Can you trace an event through the entire system? Correlation IDs? |
| Evolution | How do you add new events? Modify existing ones? Remove deprecated ones? |
| Testing | How do you test sagas end-to-end? How do you test projections? |
| Operational | How do you replay events? Rebuild projections? Handle poison messages? |
Output Format
## Architecture Assessment
[Overall pattern usage, consistency model, main strengths and risks]
## Pattern Review
[For each pattern used: is it applied correctly? Anti-patterns detected?]
## Consistency & Failure Analysis
[What breaks under failure? What's the blast radius?]
## Recommendations
[Specific improvements with trade-off analysis]
## What's Done Well
[Good pattern choices, clean event design, proper error handling]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
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.

