/install event-driven
Event-Driven Architecture
Event-driven design trades tight coupling for asynchronous workflows—and introduces ordering, duplicates, schema evolution, and distributed tracing challenges.
When to Offer This Workflow
Trigger conditions:
- Replacing long chains of synchronous HTTP calls
- Adopting Kafka, Pub/Sub, EventBridge, NATS, etc.
- Need for sagas, compensating transactions, or cross-service workflows
Initial offer:
Use six stages: (1) identify events, (2) contracts & versioning, (3) delivery semantics, (4) orchestration vs choreography, (5) observability, (6) failure & replay). Assume at-least-once delivery unless proven otherwise.
Stage 1: Identify Events
Goal: Distinguish domain events (facts that happened) from commands (requests). Assign owning bounded context per event type.
Exit condition: Event catalog: name, schema, producers, consumers, SLAs.
Stage 2: Contracts & Versioning
Goal: Schema registry or equivalent; backward-compatible evolution; consumers ignore unknown fields; deprecation policy for old versions.
Stage 3: Delivery Semantics
Goal: Partition keys for per-entity ordering; idempotent consumers; dedupe keys when exactly-once illusion is needed.
Stage 4: Orchestration vs Choreography
Goal: Central orchestrator (saga coordinator) vs decentralized choreography—trade visibility vs coupling.
Practices
- Transactional outbox when DB write and event publish must align
Stage 5: Observability
Goal: Correlation ids on events; traces spanning HTTP → broker → consumer; lag and DLQ depth metrics.
Stage 6: Failure & Replay
Goal: Dead-letter queues, replay tooling, poison message handling, and idempotent replays.
Final Review Checklist
- Event inventory with clear ownership
- Versioned contracts and compatibility rules
- Idempotent consumers; partition strategy documented
- Saga/outbox where transactional consistency required
- Tracing and replay operationalized
Tips for Effective Guidance
- Choreography can hide flows—document critical sequences as diagrams.
- Pair with message-queues and idempotency for implementation detail.
Handling Deviations
- Low volume: start with a simple queue before full Kafka topology.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install event-driven - 安装完成后,直接呼叫该 Skill 的名称或使用
/event-driven触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Event Driven 是什么?
Deep event-driven architecture workflow—events vs commands, ordering and idempotency, sagas, outbox pattern, observability, and failure modes. Use when desig... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 189 次。
如何安装 Event Driven?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install event-driven」即可一键安装,无需额外配置。
Event Driven 是免费的吗?
是的,Event Driven 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Event Driven 支持哪些平台?
Event Driven 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Event Driven?
由 mike47512(@mike47512)开发并维护,当前版本 v1.0.0。