event-driven
Skill15 starsChanged 42 days agoMITView on GitHub
Expert Event-Driven Architecture assistance covering message brokers, pub/sub topologies, event stream processing, asynchronous workflows, and eventual consistency. Use when designing decoupled microservices, integrating Apache Kafka or RabbitMQ, or managing outbox patterns.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- TheBeardedBearSAS/claude-crafttheir own version, first seen Oct 29, 2026
- kid-sid/claude-spellbooktheir own version, first seen Oct 9, 2026
- Bappoz/My-Claude-Skillstheir own version, first seen Jul 15, 2026
- vndee/engineering-skillstheir own version, first seen Mar 22, 2026
- brainbytes-dev/everything-claude-tradingtheir own version, first seen Mar 14, 2026
- ffsshhttiikk/opencode-agents-skillstheir own version, first seen Feb 28, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- kid-sid/claude-spellbook★ 190same name
- TheBeardedBearSAS/claude-craft★ 108same name
- brainbytes-dev/everything-claude-trading★ 16same name
- vndee/engineering-skills★ 3same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- Bappoz/My-Claude-Skills★ 1same name
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 repository350 other files it gives its agents.
- airflowSkill
- catboostSkill
- claudeSkill
- comfyuiSkill
- cursor-aiSkill
- dalleSkill
- daskSkill
- dbtSkill
- deepseekSkill
- fastaiSkill
- geminiSkill
- github-copilotSkill
- huggingfaceSkill
- jaxSkill
- jupyterSkill
- kerasSkill
- langchainSkill
- lightgbmSkill
- llamaindexSkill
- llamaSkill
- matplotlibSkill
- midjourneySkill
- mistralSkill
- mlflowSkill
- nltkSkill
- numpySkill
- ollamaSkill
- openai-gptSkill
- opencvSkill
- pandasSkill
- perplexitySkill
- plotlySkill
- polarsSkill
- pytorchSkill
- raySkill
- scikit-learnSkill
- seabornSkill
- spacySkill
- sparkSkill
- stable-diffusionSkill
- tensorflowSkill
- vaexSkill
- weights-biasesSkill
- whisperSkill
- xgboostSkill
- api-gatewaySkill
- clean-architectureSkill
- cqrsSkill
- domain-driven-designSkill
- event-sourcingSkill
- graphqlSkill
- grpcSkill
- hexagonalSkill
- microservicesSkill
- modular-monolithSkill
- monolithSkill
- rest-apiSkill
- sagaSkill
- serverlessSkill
- service-meshSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 109
Solution: Write outgoing domain events to an outbox table within the same database transaction.
- Distinctive: line 141
Use the Transactional Outbox Pattern: Prevent dual-write anomalies by saving domain entities and outbox events in one database transaction.
- Distinctive: line 148
Use events for RPC / Request-Response queries: Do not simulate synchronous HTTP calls using two-way event streams.
“Common” is measured: kept by at least 6 in 10 of the 5 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 (EDA)
Event-Driven Architecture (EDA) is a distributed systems paradigm decoupling producers and consumers through asynchronous event streams, enabling horizontal scalability and fault-tolerant processing.
When to Use
- Decoupled Microservice Architectures: Connecting distributed services through asynchronous events rather than fragile synchronous HTTP chains.
- High-Volume Asynchronous Processing: Ingesting IoT telemetry, analytics events, and user activity logs with buffer-backed queues.
- Complex Cross-Service Workflows: Coordinating order processing, inventory reservations, and notifications asynchronously.
- Zero-Downtime Resilience: Ensuring systems continue functioning and queuing events even when consumer services are temporarily offline.
Quick Start
// Producer (Order Service)
await messageBroker.publish("order.created", {
orderId: "123",
userId: "456",
timestamp: Date.now(),
});
// Consumer (Shipping Service)
// Doesn't need to be online when order is created
messageBroker.subscribe("order.created", async (event) => {
await shippingService.schedulePickup(event.orderId);
console.log("Shipping scheduled");
});
// Consumer (Analytics Service)
// New feature added later? No changes to Order Service!
messageBroker.subscribe("order.created", async (event) => {
await analytics.trackRevenue(event);
});Core Concepts
Pub/Sub Topology & Fan-Out
Producers publish events without knowing consumers; brokers fan out events to multiple subscriber queues:
[ Order Service ] ──Publish(OrderPlaced)──→ [ Topic: orders.events ]
├──→ [ Queue: Inventory ] ──→ [ Inventory Service ]
├──→ [ Queue: Billing ] ──→ [ Payment Service ]
└──→ [ Queue: Email ] ──→ [ Notification Service ]CloudEvents Specification Standard
Standardizes event metadata across distributed platforms:
{
"specversion": "1.0",
"type": "com.ecommerce.order.placed.v1",
"source": "/orders/service",
"id": "A234-1234-1234",
"time": "2026-09-27T10:00:00Z",
"datacontenttype": "application/json",
"data": {
"orderId": "ord_91823",
"customerId": "cust_481",
"totalCents": 4999
}
}Idempotent Event Consumer Pattern
Guarantees safety against message broker duplicate deliveries:
// consumers/order-placed.consumer.ts
export async function handleOrderPlaced(event: CloudEvent) {
const isProcessed = await redis.set(
`processed_event:${event.id}`,
"true",
"NX",
"EX",
86400,
);
if (!isProcessed) {
console.log(`Event ${event.id} already processed. Skipping.`);
return; // Idempotent exit
}
// Execute actual business logic
await processPayment(event.data);
}Event Broker Tooling Matrix
- Kafka / Redpanda: High throughput, log-based event streaming and replayable message logs.
- RabbitMQ / ActiveMQ: AMQP message broker with complex topic and header routing.
- AWS SNS/SQS / Google Cloud Pub/Sub: Cloud-native managed pub/sub and distributed queuing.
Common Patterns
Transactional Outbox Pattern
Problem: Dual-write hazard: saving database entity succeeds, but message broker publish fails.
Solution: Write outgoing domain events to an outbox table within the same database transaction.
-- Outbox Table definition
CREATE TABLE outbox_events (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
aggregate_type VARCHAR(64) NOT NULL,
aggregate_id VARCHAR(64) NOT NULL,
event_type VARCHAR(64) NOT NULL,
payload JSONB NOT NULL,
created_at TIMESTAMPTZ DEFAULT NOW(),
processed_at TIMESTAMPTZ NULL
);// Atomic database write + event staging
await db.transaction(async (tx) => {
await tx.insert(orders).values(orderData);
await tx.insert(outboxEvents).values({
aggregateType: "Order",
aggregateId: orderData.id,
eventType: "OrderCreated",
payload: JSON.stringify(orderData),
});
});Best Practices
Do:
- Use the Transactional Outbox Pattern: Prevent dual-write anomalies by saving domain entities and outbox events in one database transaction.
- Design Every Consumer to be Idempotent: Always record processed message IDs to handle at-least-once message broker retries safely.
- Version Your Event Schemas: Evolve schemas using backwards-compatible additions; use Protobuf or JSON Schema registries.
- Implement Dead Letter Queues (DLQ): Route malformed or persistently failing messages to a DLQ for operational inspection.
Don't:
- Use events for RPC / Request-Response queries: Do not simulate synchronous HTTP calls using two-way event streams.
- Broadcast massive binary payloads in events: Send lightweight event notifications with a resource URL/ID (Claim Check pattern).
- Ignore message ordering limitations: Remember that partition keys determine ordering in Kafka/Kinesis; global ordering is not guaranteed.
Troubleshooting
| Error | Cause | Solution |
Out-of-order event delivery | Partition key missing or concurrent consumer processing. | Assign consistent partition keys (e.g. order_id) and enforce monotonic sequencing. |
Duplicate event consumption | Consumer retries after network timeout before ack. | Implement idempotency checks using unique event IDs in a deduplication store. |
Poison pill message block | Unhandled payload serialization or validation failure. | Route malformed messages to a Dead Letter Queue (DLQ) after retry limit. |
References
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.

