projection-patterns – skill Khác cho agent AI
Xây dựng read model và projection từ event stream. Dùng khi triển khai phía read của CQRS, xây dựng materialized view hoặc tối ưu hiệu năng truy vấn trong hệ thống event-sourced.
Cài skill projection-patterns 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/projection-patterns-ddec1.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /projection-patterns – 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/projection-patterns-ddec1.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $projection-patterns – 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/projection-patterns-ddec1.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /projection-patterns – 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/projection-patterns-ddec1.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /projection-patterns – 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.
Projection Patterns
Comprehensive guide to building projections and read models for event-sourced systems.
Use this skill when
- Building CQRS read models
- Creating materialized views from events
- Optimizing query performance
- Implementing real-time dashboards
- Building search indexes from events
- Aggregating data across streams
Do not use this skill when
- The task is unrelated to projection patterns
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open
resources/implementation-playbook.md.
Resources
resources/implementation-playbook.mdfor detailed patterns and examples.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- 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.
Example
For OrderItemAdded at position 42, apply the increment and persist checkpoint 42
in one transaction. Replay position 42 and verify no second increment; crash
before commit and verify both the row update and checkpoint roll back together.
Skill liên quan
- projects-work-management – Sổ đăng ký dự án: người phụ trách, nhóm, mức ưu tiên, tỷ lệ tiến độ, mốc quan trọng, sản…
- prometheus-grafana – Thiết lập thu thập và trực quan hóa metric với Prometheus và Grafana.
- promotion-upgrade-requests – Sổ đăng ký thăng chức: vai trò và cấp bậc hiện tại cùng đề xuất, lý do, điểm OKR và hành…
- protocol-reverse – Dịch ngược (reverse engineering) được ủy quyền đối với giao thức nhị phân tùy chỉnh…
- public-relations – Khi người dùng cần hỗ trợ về quan hệ công chúng, truyền thông earned media, đưa tin báo…
- purchase-accounting – Sổ mua hàng: nhà cung cấp, hóa đơn, tổng tiền, VAT và TDS, số tiền phải trả ròng, tài…
- puzzle-activity-planner – Lên kế hoạch hoạt động dạng câu đố cho lớp học, tiệc và sự kiện với các liên kết…
- rag-engineer – Chuyên gia xây dựng hệ thống Retrieval-Augmented Generation (RAG). Thành thạo embedding…