blog.dopana

Back

agency-agents là bộ sưu tập các AI agent chuyên biệt, mỗi agent đóng vai trò như một “nhân sự” trong công ty ảo. Thay vì hỏi AI kiểu chung chung, bạn gọi đúng chuyên gia: Activate Backend Architect — AI chuyển sang vai trò chuyên sâu.

Nó giống như bạn thuê một team:

CEO
 ├── Product Manager
 ├── Frontend Developer
 ├── Backend Architect
 ├── DevOps Engineer
 ├── Security Engineer
 └── QA Engineer
plaintext

tất cả đều chạy bằng AI.

Vấn Đề Repo Này Giải Quyết#

AI hiện tại thường trả lời chung chung, không có chuyên môn cố định, mỗi lần hỏi phải giải thích lại context, chất lượng không ổn định, không có quy trình.

Ví dụ hỏi “Thiết kế database cho SaaS”, AI thường trả lời bảng users, products — nhưng Backend Architect thực sự sẽ nghĩ về scaling, indexing, multi-tenancy, migration strategy, failure cases, security.

Repo này biến AI từ general assistant thành specialist team member.

Agent Trong Repo Này Là Gì?#

Agent = Persona + Knowledge + Workflow + Rules
plaintext

Ví dụ Frontend Developer agent:

Identity:    You are a senior frontend engineer.
Mission:     Build performant user interfaces.
Rules:       Prioritize accessibility, Core Web Vitals, clean components.
Workflow:    Analyze → Design → Implement → Review performance
plaintext

Khi AI đọc file này, nó “đóng vai” — không còn trả lời chatbot chung.

Cấu Trúc Một Agent#

  • Identity — AI là ai? “You are a senior backend architect with 15 years experience.”
  • Core Mission — Agent tồn tại để làm gì.
  • Critical Rules — Luật làm việc (không suggest DB không bàn scale, luôn mention trade-offs).
  • Technical Deliverables — Output cụ thể (schema, migration, index strategy, API design).
  • Workflow — Quy trình (Requirement → Architecture → Implementation → Review → Optimization).

Các Nhóm Agent#

Engineering Division:

AgentDùng khi
Frontend DeveloperReact, Vue, UI, performance, component architecture
Backend ArchitectAPI, database, microservices, scaling
DevOps AutomatorCI/CD, Docker, K8s, cloud deploy
Security EngineerAuth, permission, injection, secret management

Product Division:

AgentDùng khi
Product ManagerViết PRD, roadmap, feature priority, user persona

Testing Division:

AgentDùng khi
Reality CheckerKiểm tra proof, production readiness
Evidence CollectorScreenshot, test evidence, QA proof

Ví Dụ Workflow#

Giả sử bạn muốn làm SaaS:

  1. Product Manager — Define MVP, user persona, feature list
  2. UX Designer — Design flow (login, dashboard, task creation)
  3. Backend Architect — Database schema, API design, scaling
  4. Frontend Developer — Components, state management, API integration
  5. Security Engineer — Review auth, permission, data leakage
  6. QA — Verify tests, screenshots, edge cases

Kết quả: AI giống một team startup.

Dùng Với Tool Nào?#

Hỗ trợ Claude Code, GitHub Copilot, Cursor, OpenCode, Aider, Windsurf, Gemini CLI, OpenClaw.

Ví dụ với Claude Code:

cp engineering/*.md ~/.claude/agents/
bash

Sau đó trong Claude Code: Use Backend Architect agent, design my API.

Khác Gì Prompt Thường?#

Prompt thường: “Bạn là developer giỏi. Viết API.” — AI không biết workflow, output format, tiêu chuẩn.

Agent có cấu trúc: Identity + Workflow + Rules + Deliverables — tạo consistency.

Điểm Mạnh#

  • Thực dụng — Copy, install, use. Không lý thuyết AI.
  • Dễ customize — Tự tạo agent cho công ty riêng (Vietnam Startup CTO Agent, ưu tiên Laravel + PostgreSQL).
  • Hợp solo developer — Một người có AI CTO, AI Designer, AI Tester, AI Marketer.

Điểm Yếu#

  • Không thay thế skill — Bạn cần review output. Nếu không biết backend, Backend Architect vẫn có thể sai.
  • Quá nhiều agent gây rối — 1 Senior Developer Agent tốt hơn 10 agent tranh luận.
  • Context cost — Mỗi agent thêm instruction, rules, examples → tốn token hơn.

Kết Luận#

agency-agents biến AI từ “chatbot biết code” thành “team chuyên gia AI có vai trò rõ ràng”. Hợp với solo developer, startup, làm MVP nhanh, dùng Claude Code / Cursor / OpenCode.

Bản chất là prompt engineering + role specialization — không phải multi-agent AI tự trị. Nhưng với workflow đúng, nó cực kỳ hiệu quả.

Tài liệu tham khảo#