architecture-patterns – skill Lập trình cho agent AI
Nắm vững các mẫu kiến trúc backend đã được kiểm chứng như Clean Architecture, Hexagonal Architecture và Domain-Driven Design để xây dựng hệ thống dễ bảo trì, dễ kiểm thử và có khả năng mở rộng.
Cài skill architecture-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/architecture-patterns-4a69c.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /architecture-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/architecture-patterns-4a69c.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $architecture-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/architecture-patterns-4a69c.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /architecture-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/architecture-patterns-4a69c.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /architecture-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.
Architecture Patterns
Master proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design to build maintainable, testable, and scalable systems.
Use this skill when
- Designing new backend systems from scratch
- Refactoring monolithic applications for better maintainability
- Establishing architecture standards for your team
- Migrating from tightly coupled to loosely coupled architectures
- Implementing domain-driven design principles
- Creating testable and mockable codebases
- Planning microservices decomposition
Do not use this skill when
- You only need small, localized refactors
- The system is primarily frontend with no backend architecture changes
- You need implementation details without architectural design
Instructions
1. Clarify domain boundaries, constraints, and scalability targets.
2. Select an architecture pattern that fits the domain complexity.
3. Define module boundaries, interfaces, and dependency rules.
4. Provide migration steps and validation checks.
5. For failure-sensitive workflows, compare transactions/outbox, explicit sagas and a suitable durable-execution framework. Persisted workflow state can aid recovery, but external side effects still need idempotency, reconciliation and compensation; assess operational complexity and existing infrastructure before selecting a product.
Refer to resources/implementation-playbook.md for detailed patterns, checklists, and templates.
Related Skills
Works well with: event-sourcing-architect, saga-orchestration, workflow-automation, dbos-*
Resources
resources/implementation-playbook.mdfor detailed patterns, checklists, 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
- architecture-review – Đánh giá kiến trúc repository bằng Ontoly Software Graph và các khả năng MCP. Dùng khi…
- fastapi-templates – Tạo dự án FastAPI sẵn sàng production với async pattern, dependency injection và xử lý…
- chief-ai-officer-advisor – Tư vấn Chief AI Officer cho startup: quyết định tự xây hay mua mô hình (API vs fine-tune…
- chief-ai-officer-advisor – Tư vấn Chief AI Officer cho startup: quyết định tự xây hay mua mô hình (API vs fine-tune…
- ask-copilot – Dùng GitHub Copilot CLI ở chế độ không tương tác để hỏi đáp, rà soát code hoặc tạo đoạn…
- ask-human-expert – Đặt câu hỏi cho giám đốc điều hành và chuyên gia trong lĩnh vực thật qua Instant Expert…
- git-advanced-workflows – Thành thạo các quy trình Git nâng cao gồm rebase, cherry-pick, bisect, worktree và…
- github-actions-templates – Tạo workflow GitHub Actions sẵn sàng production để tự động kiểm thử, build và triển khai…