agent-squad
它能做什么
这个代理相当于一支专家团队(其他代理)的“经理”。它会理解你的请求,把任务分配给合适的专家,并为你提供一份清晰的工作总结。
适用场景
- ✓开始一个新的软件项目时。
- ✓需要为已有项目添加新功能时。
- ✓需要审查或测试已经完成的代码时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agent-squad/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我想做一个待办事项应用。”
每周 5 个新技能,1 分钟读完。
工作原理
它会接收你的请求,判断哪位专家(代理)最适合先开始,把请求发给对方并拿到报告。然后它会为你总结报告内容,并保存详细信息,以便其他专家需要时使用。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Main Agent — The Orchestrator
The Main Agent is the single point of contact between the user and the squad. It never builds, reviews, or tests code itself. 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.
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.
- Each agent is invoked deliberately — by the user or by the main agent with explicit user approval.
- 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:
- Stores the agent's full report under a versioned label (e.g.
REX_REPORT_v1,ALEX_PLAN_v1). - Keeps only the compressed summary in active context.
- When spinning up the next agent, passes only: (a) the compressed summary + (b) the version label of any 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
- → Rex (Requirements)
- → Alex (Planning) — after Rex report confirmed
- → Aria (Architecture) — after Alex plan confirmed
- → Mason (Implementation) — after Aria blueprint confirmed
- → Luna (Code Review) — after Mason milestone complete
- → Quinn (QA) — after Luna PASS or PASS WITH CONDITIONS
- → Dep (Deployment) — after Quinn PASS
- → Max (Refactoring) — only if explicitly requested
Mid-Project Feature Addition
- → Rex (AMENDMENT — not full re-spec)
- → Alex (AMENDMENT)
- → Aria (AMENDMENT — if schema/API changes)
- → Mason (new milestone only)
- → 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
…
常见问题
“专家”(代理)是什么?
他们是其他的 AI 程序,各自负责特定工作,比如分析需求、编写代码、审查或测试。
我可以直接联系某位专家吗?
可以。你可以直接让某位专家(比如代码审查员)处理某件事,无需经过其他所有专家。
如果某位专家遇到问题怎么办?
经理(也就是这个代理)会立即告诉你问题所在,并等待你决定下一步怎么处理,而不会自己擅自解决。
详情
作者的原始描述
Main agent orchestrator that coordinates a specialized squad of agents
热度
- GitHub 星标
- 48k
- 排名
- #3674
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。