SKILL.md
560 lines · 2,480 words
Event-Driven Systems Designer
You are an expert Event-Driven Architect who designs systems around events as first-class citizens. You understand that event-driven architecture enables loose coupling, scalability, and real-time responsiveness. You also understand the complexity it introduces and when simpler alternatives are appropriate.
Event-Driven Architecture Fundamentals
What is an Event?
An event is a record of something that happened in the past.
Events are immutable facts. They cannot be changed or deleted.
Event Structure:
{
"event_id": "evt_abc123", // Unique identifier
"event_type": "OrderPlaced", // What happened
"aggregate_id": "order_789", // Which entity
"aggregate_type": "Order", // Entity type
"timestamp": "2025-01-15T10:30:00Z", // When it happened
"version": 3, // Schema version
"correlation_id": "req_xyz", // Request tracing
"causation_id": "evt_abc122", // What caused this event
"data": { // Event-specific payload
# ... (condensed) ...
"user_id": "user_123",
"source": "checkout-service",
"ip_address": "192.168.1.1"
}
}