本文へスキップ
Skillpedia
機械学習48k · #4555

event-sourcing-architect

できること

このエキスパートは、システムへの変更をすべて「イベント」の連なりとして記録する仕組みの構築を支援します。行われた操作の履歴を完全に追跡できるほか、柔軟性が求められる複雑なシステムを作るのにも役立ちます。

使う場面

  • ✓システム内で起きたことをすべて記録しておきたいとき。
  • ✓取り消しや修正が必要になるかもしれない複雑なワークフローを構築するとき。
  • ✓過去の特定の時点における状態を調べたいとき。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/event-sourcing-architect/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/event-sourcing-architect/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“ユーザーの操作をすべてイベントとして記録するには、どのようにシステムを設定すればよいですか?”

毎週5つの新しいスキル。1分で読めます。

仕組み

このエキスパートは、イベントの保存方法を整理する方法や、イベントの発生に合わせて更新される「ビュー」の作り方を理解しています。また、複数のステップからなるプロセスの管理方法もわかっています。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Event Sourcing Architect

Expert in event sourcing, CQRS, and event-driven architecture patterns. Masters event store design, projection building, saga orchestration, and eventual consistency patterns. Use PROACTIVELY for event-sourced systems, audit trail requirements, or complex domain modeling with temporal queries.

Capabilities

  • Event store design and implementation
  • CQRS (Command Query Responsibility Segregation) patterns
  • Projection building and read model optimization
  • Saga and process manager orchestration
  • Event versioning and schema evolution
  • Snapshotting strategies for performance
  • Eventual consistency handling

Use this skill when

  • Building systems requiring complete audit trails
  • Implementing complex business workflows with compensating actions
  • Designing systems needing temporal queries ("what was state at time X")
  • Separating read and write models for performance
  • Building event-driven microservices architectures
  • Implementing undo/redo or time-travel debugging

Do not use this skill when

  • The domain is simple and CRUD is sufficient
  • You cannot support event store operations or projections
  • Strong immediate consistency is required everywhere

Instructions

  1. Identify aggregate boundaries and event streams
  2. Design events as immutable facts
  3. Implement command handlers and event application
  4. Build projections for query requirements
  5. Design saga/process managers for cross-aggregate workflows
  6. Implement snapshotting for long-lived aggregates
  7. Set up event versioning strategy

Safety

  • Treat committed events as immutable by default; approved privacy/retention/legal deletion requirements need a deliberate redaction/key-deletion/migration design and audit trail, not a blanket claim that events can never be deleted.
  • Rebuild projections in staging before running in production.

Best Practices

  • Events record domain assertions with version/provenance; corrections are new events by default, not proof that every recorded assertion was objectively true
  • Keep events small and focused
  • Version events from day one
  • Design for eventual consistency
  • Use correlation IDs for tracing
  • Implement idempotent event handlers
  • Plan for projection rebuilding
  • Use durable execution for process managers and sagas — frameworks like DBOS persist workflow state automatically, making cross-aggregate orchestration resilient to crashes

Related Skills

Works well with: saga-orchestration, architecture-patterns, dbos-*

Example

User request:

Build systems requiring complete audit trails.

Limitations

  • Record actual aggregate concurrency/ordering guarantees, idempotency keys and projection lag; sagas compensate business effects but are not automatic rollback of every external action. Replay must suppress real notifications/payments and other effects unless separately authorized.
  • Do not introduce event sourcing/CQRS where a simpler design meets the task; retain policy and deletion boundaries, and test projection rebuild before claiming audit completeness.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
よくある質問

この文脈での「イベント」とは何ですか?

「ユーザーXがアイテムYをカートに追加した」のように、何かが起きたことを記録したものです。システムの状態を再構築するための基礎になります。

CQRSとは何ですか?

データの「書き込み」(コマンド)と「読み取り」(クエリ)の処理を分離する設計手法です。これにより、システムを高速かつ効率的にできる場合があります。

「結果整合性」(eventual consistency)とは何ですか?

データがすべての場所に反映されるまでに少し時間がかかることがある一方で、最終的にはすべての場所で正しい情報が表示されるという意味です。

詳細

作者による元の説明

Expert in event sourcing, CQRS, and event-driven architecture patterns. Masters event store design, projection building, saga orchestration, and eventual consistency patterns. Use PROACTIVELY for event-sourced systems, audit trail requirements, or complex domain modeling with temporal queries.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#4555
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル