event-driven-architecture
Skill0 starsChanged 23 days agoMITView on GitHub
Event-driven architecture patterns for asynchronous workflows and decoupled services.
13 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- reddygopalkrishna/developer-agent-skillstheir own version, first seen Nov 8, 2026
- delorenj/skillstheir own version, first seen Nov 7, 2026
- jars-demo/jars-skillstheir own version, first seen Oct 25, 2026
- nimadorostkar/Claude-Skills-collectiontheir own version, first seen Oct 13, 2026
- kimtth/agent-skill-100-lines-or-lesstheir own version, first seen Jun 26, 2026
- agent-packs/registrytheir own version, first seen Jun 15, 2026
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- ffsshhttiikk/opencode-agents-skills★ 211% same
Wrote their own version · 12
- travisjneuman/.claude★ 106same name
- nimadorostkar/Claude-Skills-collection★ 33same 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
- kimtth/agent-skill-100-lines-or-less★ 2same name
- codecharmhq/claude-code-skills★ 1same name
- mmondora/claude-skills★ 1same name
- agent-packs/registry★ 0same name
2 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 repository32 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- api-designSkill
- arch-constraint-guardSkill
- backend-patternsSkill
- clean-architectureSkill
- codebase-mappingSkill
- context-budgetSkill
- cqrsSkill
- ddd-architectureSkill
- debug-flowSkill
- dependency-auditSkill
- django-patternsSkill
- django-tddSkill
- fd-codenavSkill
- fd-mapSkill
- frontend-patternSkill
- git-releaseSkill
- git-workflowSkill
- golang-patternsSkill
- hexagonal-architectureSkill
- java-patternsSkill
- layered-architectureSkill
- performance-profilingSkill
- postgres-patternsSkill
- python-patternsSkill
- refactor-guideSkill
- research-firstSkill
- rust-patternsSkill
- saga-architectureSkill
- security-scanSkill
- tdd-workflowSkill
- test-gap-detectorSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
2
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 53
Use correlation IDs to track event chains
- Distinctive: line 59
Use persistent message storage (not in-memory)
“Common” is measured: kept by at least 6 in 10 of the 13 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
When to Activate
Activate when:
- Designing or implementing message-based communication between services
- Building systems that require asynchronous processing
- Decoupling producers from consumers in distributed systems
- Implementing event sourcing or audit trails
- Setting up webhooks, message queues, or pub/sub patterns
Steps
1. Identify Event Boundaries
Define what constitutes an "event" in your system:
- Events are facts about something that happened (past tense:
OrderPlaced,PaymentProcessed) - Commands are requests for an action (present tense:
PlaceOrder,ProcessPayment) - Events should be immutable once emitted
2. Choose the Right Messaging Pattern
| Pattern | Use Case | Examples |
| Pub/Sub | One-to-many notification | Notifications, audit logs |
| Message Queue | Point-to-point processing | Order processing, email sending |
| Event Streaming | Durable, replayable event log | Event sourcing, analytics |
| Webhooks | External system integration | HTTP callbacks |
3. Design Event Schema
interface Event<T> {
id: string; // Unique event identifier (UUID)
type: string; // Event type (e.g., "ORDER_PLACED")
version: string; // Schema version for evolution
timestamp: string; // ISO 8601 timestamp
source: string; // Origin service name
data: T; // Event payload
metadata?: Record<string, unknown>; // Optional tracing/correlation
}4. Handle Eventual Consistency
- Design consumers to be idempotent (safe to process twice)
- Use correlation IDs to track event chains
- Implement dead letter queues for failed processing
- Set retry policies with exponential backoff
5. Ensure Durability
- Use persistent message storage (not in-memory)
- Acknowledge messages only after successful processing
- Implement at-least-once delivery semantics
Examples
TypeScript Event Emitter
interface OrderEvent {
orderId: string;
customerId: string;
total: number;
items: OrderItem[];
}
class OrderEventPublisher {
private emitter: EventEmitter;
async publishOrderPlaced(event: OrderEvent): Promise<void> {
const message: Event<OrderEvent> = {
id: crypto.randomUUID(),
type: 'ORDER_PLACED',
version: '1.0',
timestamp: new Date().toISOString(),
source: 'order-service',
data: event,
metadata: {
correlationId: event.orderId,
partitionKey: event.customerId
}
};
await this.messageBroker.publish('orders.placed', message);
}
}Message Consumer with Retry
class OrderEventConsumer {
async handleOrderPlaced(event: Event<OrderEvent>): Promise<void> {
try {
// Idempotent processing
const existingOrder = await this.orderRepo.findById(event.data.orderId);
if (existingOrder) {
logger.info('Order already processed, skipping', { orderId: event.data.orderId });
return;
}
await this.orderService.processOrder(event.data);
await this.messageBroker.ack(event.id);
} catch (error) {
if (error instanceof TransientError) {
// Requeue with delay for retry
await this.messageBroker.requeue(event.id, { delay: 5000 });
} else {
// Send to dead letter queue
await this.messageBroker.sendToDlq(event, error);
}
}
}
}Event Schema Registry
// contracts/order-events.ts
export const OrderPlacedEventSchema = {
type: 'object',
required: ['orderId', 'customerId', 'total', 'items'],
properties: {
orderId: { type: 'string', format: 'uuid' },
customerId: { type: 'string', format: 'uuid' },
total: { type: 'number', minimum: 0 },
items: {
type: 'array',
items: {
type: 'object',
required: ['productId', 'quantity', 'price'],
properties: {
productId: { type: 'string' },
quantity: { type: 'number', minimum: 1 },
price: { type: 'number', minimum: 0 }
}
}
}
}
};Related Skills
- api-design
- backend-patterns
- cqrs
- event-sourcing
- message-queues
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.

