Token导航 LogoToken导航

Agent Skill · 开发

event-driven-architecture(事件驱动架构)

event-driven-architecture 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

event-driven-architecture 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证为 MIT,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 11,473。

总安装 1,747周安装 70GitHub Stars 15下载 566核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:event-driven-architecture(事件驱动架构)
来源仓库:https://github.com/nickcrew/claude-ctx-plugin
仓库路径:skills/event-driven-architecture
安装命令:
npx skills add https://github.com/nickcrew/claude-ctx-plugin --skill event-driven-architecture
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/nickcrew/claude-ctx-plugin --skill event-driven-architecture

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

event-driven-architecture 提供事件驱动系统的专家级指导,涵盖事件溯源、CQRS 和消息代理等模式,适合在 Codex、Claude、Cursor、Gemini CLI 中设计高可用分布式系统时使用。它强调异步通信、最终一致性和弹性扩展等特性,适用于大规模应用场景。

使用时应在实现跨服务协调、管理复杂工作流或处理实时数据管道时参考此技能。安装前应确认团队具备相关基础设施经验,如 Kafka 或 RabbitMQ 等消息中间件。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/event-driven-architecture

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/nickcrew/claude-ctx-plugin --skill event-drive…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

event-driven-architecture 怎么安装?

在终端执行 npx skills add https://github.com/nickcrew/claude-ctx-plugin --skill event-driven-architec…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

event-driven-architecture 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

event-driven-architecture 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

event-driven-architecture 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

event-driven-architecture 用的人多吗?

公开数据是累计安装 1,747 次,近一周安装 70 次,下载 566 次,GitHub 15 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

event-driven-architecture 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
event-driven-architecture

事件驱动架构 · 本页

1,74715只读MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Event-Driven Architecture Patterns

Expert guidance for designing, implementing, and operating event-driven systems with proven patterns for event sourcing, CQRS, message brokers, saga coordination, and eventual consistency management.

When to Use This Skill

  • Designing systems with asynchronous, decoupled communication
  • Implementing event sourcing and CQRS patterns
  • Building systems requiring eventual consistency and high scalability
  • Managing distributed transactions across microservices
  • Processing real-time event streams and data pipelines
  • Implementing publish-subscribe or message queue architectures
  • Designing reactive systems with complex event flows

Core Principles

1. Events as First-Class Citizens

Events represent immutable facts that have occurred in the system. Use past tense naming (OrderCreated, PaymentProcessed) and include all necessary context.

2. Eventual Consistency

Systems achieve consistency over time rather than immediately. Trade strong consistency for higher availability and scalability.

3. Loose Coupling

Services communicate through events without direct dependencies, enabling independent evolution and deployment.

4. Asynchronous Communication

Operations don't block waiting for responses, improving system responsiveness and resilience.

5. Event-Driven Thinking

Design around what happened (events) rather than what to do (commands).

Quick Reference

TopicLoad reference
Event structure, types, and characteristicsskills/event-driven-architecture/references/event-fundamentals.md
Event sourcing pattern and implementationskills/event-driven-architecture/references/event-sourcing.md
CQRS pattern with read/write separationskills/event-driven-architecture/references/cqrs.md
Message brokers (RabbitMQ, Kafka, SQS/SNS)skills/event-driven-architecture/references/message-brokers.md
Saga pattern for distributed transactionsskills/event-driven-architecture/references/saga-pattern.md
Choreography vs orchestration patternsskills/event-driven-architecture/references/choreography-orchestration.md
Eventual consistency and conflict resolutionskills/event-driven-architecture/references/eventual-consistency.md
Best practices, anti-patterns, testingskills/event-driven-architecture/references/best-practices.md

Workflow

1. Design Phase

  • Identify Events: What business facts need to be captured?
  • Define Boundaries: Which events are domain vs integration events?
  • Choose Patterns: Event sourcing? CQRS? Sagas? Choreography or orchestration?
  • Select Technology: Kafka for high throughput? RabbitMQ for routing? AWS managed services?

2. Implementation Phase

  • Event Schema: Define versioned event structures with correlation IDs
  • Event Store: Implement append-only storage with optimistic concurrency
  • Projections: Create read models from events for query optimization
  • Handlers: Ensure idempotent, at-least-once delivery handling
  • Sagas: Implement compensating transactions for failures

3. Operation Phase

  • Monitoring: Track event lag, processing time, failure rates
  • Replay: Build capability to replay events for debugging/recovery
  • Versioning: Support multiple event schema versions simultaneously
  • Scaling: Partition by aggregate ID, scale consumers horizontally
  • Testing: Test handlers in isolation with contract testing

Common Mistakes

Event Design Errors

  • ❌ Using commands instead of events (CreateOrder vs OrderCreated)
  • ❌ Mutable events or missing versioning
  • ❌ Events without correlation/causation IDs
  • ✓ Immutable, past-tense, self-contained events

Consistency Issues

  • ❌ Assuming immediate consistency across services
  • ❌ Not handling duplicate event delivery
  • ❌ Missing idempotency in handlers
  • ✓ Design for eventual consistency, idempotent handlers

Architecture Mistakes

  • ❌ Synchronous event chains (waiting for responses)
  • ❌ Events coupled to specific service implementations
  • ❌ No compensation strategy for sagas
  • ✓ Async fire-and-forget, domain-focused events, compensating transactions

Operational Gaps

  • ❌ No event replay capability
  • ❌ Missing monitoring for event lag
  • ❌ No schema registry or version management
  • ✓ Replay-ready, monitored, schema-managed events

Pattern Selection Guide

Use Event Sourcing When:

  • Need complete audit trail of all changes
  • Temporal queries required ("state at time T")
  • Multiple projections from same events
  • Event replay for debugging/recovery

Use CQRS When:

  • High read:write ratio (10:1+)
  • Complex query requirements
  • Need to scale reads independently
  • Different databases for read/write optimal

Use Sagas When:

  • Distributed transactions across services
  • Need atomicity without 2PC
  • Complex multi-step workflows
  • Compensation logic required

Choose Choreography When:

  • Simple workflows (2-4 steps)
  • High service autonomy desired
  • Event-driven culture established
  • No complex dependencies

Choose Orchestration When:

  • Complex workflows (5+ steps)
  • Sequential dependencies
  • Need centralized visibility
  • Business logic in workflow

Resources

  • Books: "Designing Event-Driven Systems" (Stopford), "Versioning in an Event Sourced System" (Young)
  • Sites: eventuate.io, event-driven.io, Martin Fowler's event sourcing articles
  • Tools: Kafka, EventStoreDB, RabbitMQ, Axon Framework, MassTransit
  • Patterns: Event Sourcing, CQRS, Saga, Outbox, CDC, Event Streaming

平台分布

Claude Code

27.69%
按下载量换算157

windsurf

23.43%
按下载量换算133

Antigravity

17.1%
按下载量换算97

Gemini CLI

12.84%
按下载量换算73

kilo

7.73%
按下载量换算44

trae

3.13%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills