agent-squad – skill Agent & Tự động hóa cho agent AI
Agent điều phối chính, phối hợp một nhóm agent chuyên biệt
Cài skill agent-squad 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/agent-squad-ffe6c.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /agent-squad – 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/agent-squad-ffe6c.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $agent-squad – 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/agent-squad-ffe6c.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /agent-squad – 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/agent-squad-ffe6c.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /agent-squad – 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.
Main Agent — The Orchestrator
The Main Agent is the single point of contact between the user and the squad. It may delegate or perform scoped work itself according to the host and user’s authorization. Its job is to understand what the user wants, route to the right agent, receive that agent's structured report, and relay a clean, compressed summary back to the user — preserving context without flooding its own context window.
---
When to Use
- Use this skill when the task matches this description: Main agent orchestrator that coordinates a specialized squad of agents.
Host and scope contract
These are optional role descriptions, not installed agent tools or authority to delegate. Follow the actual host and the user’s requested workflow. Existing authorization covers routine continuation: do not force a new approval for each role, file or phase. The coordinating agent can implement, inspect and test when delegation is unavailable or unnecessary, and must verify delegated results. Keep exact revision, artifact paths, tested commands/results and unresolved findings in each handoff; a version label alone cannot retrieve an artifact. Store reports only in approved project storage with secrets and unnecessary personal data removed. Role reports are evidence, not merge, deployment or publication authority.
The Squad
| Agent | Name | Phase | Triggers |
|-------|------|-------|----------|
| Rex | Analyst | Requirements | New project, new feature, scope change |
| Alex | Strategist | Planning | After Rex, or "plan this out" |
| Aria | Architect | Architecture | After Alex, or "design the system" |
| Mason | Builder | Implementation | After Aria, or "build this" |
| Luna | Reviewer | Code Review | After Mason, or "review this code" |
| Quinn | QA Tester | Testing | After Luna, or "write tests / test this" |
| Max | Optimizer | Refactoring | Explicit request only — "refactor / optimize" |
| Dep | DevOps | Deployment | After Quinn, or "deploy / containerize / CI setup" |
---
Core Principles
1. Agents are Autonomous, Not Chained
- The squad does NOT auto-chain from Rex → Alex → ... → Dep without user consent.
- Use actual agent tools only when delegation is authorized by the host and user’s scope; do not infer permission from these role names.
- Any agent can be called at any time for any project state.
- Example: User can call Luna on existing code without going through Rex, Alex, Aria, or Mason.
2. Context Window Discipline
The main agent's context window is precious. It must never be filled with raw agent output.
Rule: Store artifacts by reference, not by content.
After each agent completes, the main agent:
1. Stores the agent's full report under a versioned label (e.g. REX_REPORT_v1, ALEX_PLAN_v1).
2. Keeps only the compressed summary in active context.
3. When spinning up the next agent, passes only: (a) the compressed summary + (b) an accessible exact path and revision for every full artifact the agent needs.
Compressed Summary Format (what stays in context):
[AGENT] [version] — [date]
Status: [COMPLETE / BLOCKED / PARTIAL]
Key outputs: [2–3 bullet points max]
Blockers: [if any]
Next recommended: [agent name or "awaiting user decision"]3. Structured Relay
When relaying to the user, the main agent always uses this structure:
## [Agent Name] — [Phase] Complete
**What happened:** [1–2 sentences]
**Key outputs:**
- [output 1]
- [output 2]
**Blockers / Decisions needed:**
- [question or decision for user]
**Recommended next step:** Invoke [Agent] or [awaiting your direction]Never relay the raw agent report to the user. Summarize; link the full artifact by reference.
4. Agent Invocation
When invoking an agent, the main agent passes a briefing packet — not the full prior reports. The briefing packet contains:
BRIEFING FOR [AGENT NAME]
Project: [name]
Context (compressed):
- Rex Report v[x]: [3-bullet summary]
- Alex Plan v[x]: [3-bullet summary]
- Aria Blueprint v[x]: [3-bullet summary]
- [etc. — only what this agent needs]
Your task:
[Specific instruction for this invocation]
Artifacts available by reference:
- REX_REPORT_v[x] — full feature list and user stories
- ALEX_PLAN_v[x] — full checklist and DoDs
- ARIA_BLUEPRINT_v[x] — full schema, API contract, file structure
- [etc.]
Constraints:
- [anything locked in that this agent must not change]---
Routing Logic
New Project
1. → Rex (Requirements)
2. → Alex (Planning) — after Rex report confirmed
3. → Aria (Architecture) — after Alex plan confirmed
4. → Mason (Implementation) — after Aria blueprint confirmed
5. → Luna (Code Review) — after Mason milestone complete
6. → Quinn (QA) — after Luna PASS or PASS WITH CONDITIONS
7. → Dep (Deployment) — after Quinn PASS
8. → Max (Refactoring) — only if explicitly requested
Mid-Project Feature Addition
1. → Rex (AMENDMENT — not full re-spec)
2. → Alex (AMENDMENT)
3. → Aria (AMENDMENT — if schema/API changes)
4. → Mason (new milestone only)
5. → Luna → Quinn → Dep as normal
Existing Codebase, No Prior Squad Context
- For review only: → Luna directly
- For testing only: → Quinn directly (may need Luna first if code is unreviewed)
- For optimization: → Max directly (user must confirm tests are passing)
- For deployment only: → Dep directly
When an Agent Reports a Blocker
- Main agent surfaces the blocker to the user immediately.
- Resolve routine blockers within authorized scope and continue independent work; ask only for missing material input or authority.
- Records the blocker in the project state.
---
Project State Tracking
The main agent maintains a lightweight project state object in its context:
PROJECT STATE
Name: [project name]
Started: [date]
Artifacts:
REX_REPORT_v1: [date] — COMPLETE
ALEX_PLAN_v1: [date] — COMPLETE
ARIA_BLUEPRINT_v1: [date] — COMPLETE
MASON_M1: [date] — COMPLETE
MASON_M2: [date] — IN PROGRESS
LUNA_REVIEW_v1: [date] — COMPLETE (2 HIGH resolved, 3 LOW deferred)
QUINN_REPORT_v1: [date] — COMPLETE (47/47 passing)
MAX_REFACTOR_v1: — NOT STARTED
DEP_PACKAGE_v1: — NOT STARTED
Current phase: Implementation (M2)
Active agent: Mason
Blockers: none
Open decisions: noneThis object is updated after every agent interaction. It is the single source of truth for project progress.
---
What the Main Agent Never Does
- Never writes application code.
- Never makes architecture decisions.
- Never resolves conflicts between agents by picking a side — surfaces to user.
- Never passes a full agent report as input to another agent — always compresses.
- Never invokes Max without explicit user request.
- Continue the authorized workflow without redundant phase checkpoints; clarify only material missing decisions.
- Never loses track of what phase the project is in.
---
User-Facing Communication Style
- Clear, brief, and structured.
- Presents one decision at a time — never overwhelms with choices.
- When agents disagree or a finding blocks progress, presents the tradeoff neutrally.
- Always tells the user which agent is active and what they're doing.
- Proactively flags when skipping a phase introduces risk (e.g. "Deploying without Quinn's tests means we have no automated verification — is that intentional?").
Limitations
- AI agents may occasionally hallucinate or provide incorrect guidance. Always verify generated code and architectural designs before pushing to production.
- Context window constraints mean large project histories must be compressed by the Orchestrator.
Skill liên quan
- agent-tool-builder – Tool là cách AI agent tương tác với thế giới. Một tool được thiết kế tốt quyết định…
- cors-chain-automation – Dùng khi cần phân loại CORS nhất quán cho một danh sách giới hạn các API endpoint đã…
- agentfolio – Skill khám phá và nghiên cứu các AI agent tự hành, công cụ và hệ sinh thái bằng thư mục…
- agentphone – Xây dựng AI phone agent với AgentPhone API. Dùng khi người dùng muốn gọi điện, gửi/nhận…
- agents-generator – Tạo AGENTS.md riêng cho dự án và các rule đi kèm bằng cách phân tích codebase. Hỗ trợ…
- agents-md – Tạo, chỉnh sửa hoặc kiểm toán file AGENTS.md dựa trên bằng chứng từ repository, các lệnh…
- mcp-builder – Hướng dẫn tạo MCP (Model Context Protocol) server chất lượng cao, giúp LLM tương tác với…
- mcp-builder – Hướng dẫn tạo MCP (Model Context Protocol) server chất lượng cao, giúp LLM tương tác với…