architecture – skill Lập trình cho agent AI
Khung ra quyết định kiến trúc. Phân tích yêu cầu, đánh giá trade-off, tài liệu hóa ADR. Dùng khi đưa ra quyết định kiến trúc hoặc phân tích thiết kế hệ thống.
Cài skill architecture 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-85e75.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /architecture – 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-85e75.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $architecture – 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-85e75.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /architecture – 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-85e75.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /architecture – 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 Decision Framework
> "Requirements drive architecture. Trade-offs inform decisions. ADRs capture rationale."
🎯 Selective Reading Rule
Read ONLY files relevant to the request! Check the content map, find what you need.
| File | Description | When to Read |
|------|-------------|--------------|
| context-discovery.md | Questions to ask, project classification | Starting architecture design |
| trade-off-analysis.md | ADR templates, trade-off framework | Documenting decisions |
| pattern-selection.md | Decision trees, anti-patterns | Choosing patterns |
| examples.md | MVP, SaaS, Enterprise examples | Reference implementations |
| patterns-reference.md | Quick lookup for patterns | Pattern comparison |
---
🔗 Related Skills
| Skill | Use For |
|-------|---------|
| @[skills/database-design] | Database schema design |
| @[skills/api-patterns] | API design patterns |
| @[skills/deployment-procedures] | Deployment architecture |
---
Core Principle
"Simplicity is the ultimate sophistication."
- Start simple
- Add complexity ONLY when proven necessary
- You can always add patterns later
- Removing complexity is MUCH harder than adding it
---
Validation Checklist
Before finalizing architecture:
- [ ] Requirements clearly understood
- [ ] Constraints identified
- [ ] Each decision has trade-off analysis
- [ ] Simpler alternatives considered
- [ ] ADRs written for significant decisions
- [ ] Team expertise matches chosen patterns
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
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-decision-records – Các mẫu toàn diện để tạo, duy trì và quản lý Architecture Decision Records (ADR), ghi…
- architecture-patterns – Nắm vững các mẫu kiến trúc backend đã được kiểm chứng như Clean Architecture, Hexagonal…
- 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…