domain-driven-design – skill Thiết kế & UI cho agent AI
Lập kế hoạch và định tuyến công việc Domain-Driven Design, từ mô hình hóa chiến lược đến triển khai chiến thuật và các mẫu kiến trúc hướng sự kiện.
Cài skill domain-driven-design 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/domain-driven-design-875ad.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /domain-driven-design – 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/domain-driven-design-875ad.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $domain-driven-design – 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/domain-driven-design-875ad.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /domain-driven-design – 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/domain-driven-design-875ad.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /domain-driven-design – 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.
Domain-Driven Design
Use this skill when
- You need to model a complex business domain with explicit boundaries.
- You want to decide whether full DDD is worth the added complexity.
- You need to connect strategic design decisions to implementation patterns.
- You are planning CQRS, event sourcing, sagas, or projections from domain needs.
Do not use this skill when
- The problem is simple CRUD with low business complexity.
- You only need localized bug fixes.
- There is no access to domain knowledge and no proxy product expert.
Instructions
1. Run a viability check before committing to full DDD.
2. Produce strategic artifacts first: subdomains, bounded contexts, language glossary.
3. Route to specialized skills based on current task.
4. Define success criteria and evidence for each stage.
Viability check
Use full DDD only when at least two of these are true:
- Business rules are complex or fast-changing.
- Multiple teams are causing model collisions.
- Integration contracts are unstable.
- Auditability and explicit invariants are critical.
Routing map
- Strategic model and boundaries:
@ddd-strategic-design - Cross-context integrations and translation:
@ddd-context-mapping - Tactical code modeling:
@ddd-tactical-patterns - Read/write separation:
@cqrs-implementation - Event history as source of truth:
@event-sourcing-architectand@event-store-design - Long-running workflows:
@saga-orchestration - Read models:
@projection-patterns - Decision log:
@architecture-decision-records
If templates are needed, open references/ddd-deliverables.md.
Output requirements
Always return:
- Scope and assumptions
- Current stage (strategic, tactical, or evented)
- Explicit artifacts produced
- Open risks and next step recommendation
Examples
Use @domain-driven-design to assess if this billing platform should adopt full DDD.
Then route to the right next skill and list artifacts we must produce this week.Limitations
- This skill does not replace direct workshops with domain experts.
- It does not provide framework-specific code generation.
- It should not be used as a justification to over-engineer simple systems.
Skill liên quan
- product-skills – Dùng khi điều phối công việc sản phẩm qua 12 kỹ năng con đi kèm (RICE, OKR, nghiên cứu…
- draw – Đồ họa vector và tạo sơ đồ, chuyển đổi định dạng (ODG/SVG/PDF) với LibreOffice Draw.
- duotone-design – Hướng dẫn triển khai Web và App cho Duotone Design. Kích hoạt khi người dùng muốn bảng…
- ecommerce-listing-image-set – Cài đặt và sử dụng gói Ecommerce Product Images chính thức, được ghim theo digest, cho…
- editorial-design – Hướng dẫn triển khai Web và App cho Editorial Design. Kích hoạt khi người dùng muốn bố…
- electron-drive-skill – Khởi chạy ứng dụng Electron của dự án trên profile tạm và thao tác: click, nhập liệu…
- emil-design-eng – Dùng khi thiết kế hoặc đánh giá giao diện sản phẩm tinh tế, lấy cảm hứng từ hoạt ảnh…
- engine-selection – Chọn game engine và framework theo nền tảng, thể loại và kiến trúc (canvas toàn màn hình…