event-sourcing-architect – skill Thiết kế & UI cho agent AI
Chuyên gia về event sourcing, CQRS và kiến trúc hướng sự kiện. Thành thạo thiết kế event store, xây dựng projection, điều phối saga và các mẫu nhất quán cuối cùng (eventual consistency). Dùng CHỦ ĐỘNG cho hệ thống event-sourced, yêu cầu audit trail, hoặc mô hình hóa miền phức tạp với truy vấn theo thời gian.
Cài skill event-sourcing-architect bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/event-sourcing-architect-1c05b.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /event-sourcing-architect – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/event-sourcing-architect-1c05b.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $event-sourcing-architect – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/event-sourcing-architect-1c05b.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /event-sourcing-architect – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/event-sourcing-architect-1c05b.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /event-sourcing-architect – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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.
Skill liên quan
- event-store-design – Thiết kế và triển khai event store cho hệ thống event-sourced. Dùng khi xây dựng hạ tầng…
- vision-sft – Tinh chỉnh các mô hình ngôn ngữ-thị giác (VLM) bằng học có giám sát trên dữ liệu ảnh+văn…
- expo-animation – Hướng dẫn tuyển chọn từ upstream cho Expo Animation; dùng khi quy trình khớp với mục…
- visual-design-foundations – Áp dụng nguyên tắc typography, lý thuyết màu sắc, hệ thống khoảng cách và iconography để…
- visual-edit-precision – Dùng khi thực hiện thay đổi UI/frontend dựa trên ngữ cảnh trực quan, khi người dùng chọn…
- expo-tailwind-setup – Thiết lập Tailwind CSS v4 trong Expo với react-native-css và NativeWind v5 để tạo kiểu…
- expo-ui – Xây dựng giao diện native với package @expo/ui: SwiftUI thật trên iOS và Jetpack Compose…
- expo-ui-jetpack-compose – Xây dựng giao diện Android native với Expo SDK 55 bằng Jetpack Compose views/modifiers…