cqrs-implementation – skill Viết lách & Nội dung cho agent AI
Triển khai Command Query Responsibility Segregation cho kiến trúc có khả năng mở rộng. Dùng khi tách mô hình đọc và ghi, tối ưu hiệu năng truy vấn hoặc xây dựng hệ thống event-sourced.
Cài skill cqrs-implementation 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/cqrs-implementation-be333.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /cqrs-implementation – 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/cqrs-implementation-be333.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $cqrs-implementation – 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/cqrs-implementation-be333.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /cqrs-implementation – 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/cqrs-implementation-be333.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /cqrs-implementation – 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.
CQRS Implementation
Comprehensive guide to implementing CQRS (Command Query Responsibility Segregation) patterns.
Use this skill when
- Separating read and write concerns
- Scaling reads independently from writes
- Building event-sourced systems
- Optimizing complex query scenarios
- Different read/write data models are needed
- High-performance reporting is required
Do not use this skill when
- The domain is simple and CRUD is sufficient
- You cannot operate separate read/write models
- Strong immediate consistency is required everywhere
Instructions
- Identify read/write workloads and consistency needs.
- Define command and query models with clear boundaries.
- Implement read model projections and synchronization.
- Validate performance, recovery, and failure modes.
- If detailed patterns are required, open
resources/implementation-playbook.md.
Resources
resources/implementation-playbook.mdfor detailed CQRS patterns and templates.
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.
Skill liên quan
- create-pr – Bí danh của pr-writer. Dùng khi người dùng yêu cầu rõ “create-pr” hoặc nhắc đến tên…
- crossframe-critical – Chỉ dùng khi người dùng gọi rõ crossframe-critical cho hồ sơ phê bình cấu trúc tiếng…
- crossframe-essay – Dùng khi công việc CrossFrame rõ ràng cần bài luận phê bình tiếng Trung, bình luận, tiểu…
- crossframe-notebook – Dùng khi CrossFrame Suite định tuyến ghi chú tiếng Trung cho sách, lý thuyết, bài báo…
- crossframe-org – Dùng khi CrossFrame Suite định tuyến phân tích nhóm, dự án, tổ chức, chuỗi trách nhiệm…
- mdr-745-specialist – Chuyên gia tuân thủ EU MDR 2017/745 về phân loại thiết bị y tế, hồ sơ kỹ thuật, bằng…
- triage-validation – Kiểm tra lỗ hổng trước khi viết báo cáo: Cổng 7 câu hỏi (cả 7 câu), 4 cổng trước khi…
- minimalist – Dùng khi người dùng yêu cầu viết code hiệu quả, tránh over-engineering, giảm phụ thuộc…