关于 parallel-agents
parallel-agents 通过 Claude Code 的原生 Agent 系统协调多个专业 Agent,适用于复杂的跨领域任务,并说明上下文传递、任务排序与结果汇总。
主要功能
- 01协调专业 Agent
- 02按顺序串联 Agent
- 03在 Agent 间传递上下文
- 04继续先前的 Agent 工作
- 05汇总分析结果
适用场景
- 01从多个角度审查代码
- 02协调后端与前端工作
- 03汇总安全与测试发现
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ sickn33/ agentic-awesome-skills --skill parallel-agents安装后在 Claude Code 中输入/parallel-agents确认已加载。
详细介绍
原生并行 Agent
通过 Claude Code 内置的 Agent 工具进行编排
概述
此技能可通过 Claude Code 的原生 Agent 系统协调多个专业 Agent。与外部脚本不同,这种方式让所有编排都由 Claude 控制。
何时使用编排
✅ 适用于:
- 需要多个专业领域知识的复杂任务
- 从安全性、性能和质量角度分析代码
- 全面审查(架构 + 安全 + 测试)
- 需要后端 + 前端 + 数据库协作的功能实现
❌ 不适用于:
- 简单的单领域任务
- 快速修复或小改动
- 一个 Agent 就能胜任的任务
原生 Agent 调用
单个 Agent
Use the security-auditor agent to review authentication
顺序链
First, use the explorer-agent to discover project structure.
Then, use the backend-specialist to review API endpoints.
Finally, use the test-engineer to identify test gaps.
传递上下文
Use the frontend-specialist to analyze React components.
Based on those findings, have the test-engineer generate component tests.
恢复之前的工作
Resume agent [agentId] and continue with additional requirements.
编排模式
模式 1:全面分析
Agents: explorer-agent → [domain-agents] → synthesis
1. explorer-agent: Map codebase structure
2. security-auditor: Security posture
3. backend-specialist: API quality
4. frontend-specialist: UI/UX patterns
5. test-engineer: Test coverage
6. Synthesize all findings
模式 2:功能审查
Agents: affected-domain-agents → test-engineer
1. Identify affected domains (backend? frontend? both?)
2. Invoke relevant domain agents
3. test-engineer verifies changes
4. Synthesize recommendations
模式 3:安全审计
Agents: security-auditor → penetration-tester → synthesis
1. security-auditor: Configuration and code review
2. penetration-tester: Active vulnerability testing
3. Synthesize with prioritized remediation
以下 Agent 名称和模型分配仅用于说明上游角色,并非随附定义或保证内置的功能。请先发现实际的宿主工具/已安装 Agent,并遵守其委派权限。明确传递相关上下文,分配互不重叠的文件/工作树并规定清晰的输出要求,同时将共享编辑/集成工作交由单一负责人。委派本身不会自动授予执行测试/部署的权限。
可用的 Agent
| Agent | 专长 | 触发短语 |
|---|---|---|
orchestrator | 协调 | “全面”、“多角度” |
security-auditor | 安全 | “安全”、“身份验证”、“漏洞” |
penetration-tester | 安全测试 | “渗透测试”、“红队”、“利用” |
backend-specialist | 后端 | “API”、“服务”、“Node.js”、“Express” |
frontend-specialist | 前端 | “React”、“UI”、“组件”、“Next.js” |
test-engineer | 测试 | “测试”、“覆盖率”、“TDD” |
devops-engineer | DevOps | “部署”、“CI/CD”、“基础设施” |
database-architect | 数据库 | “架构”、“Prisma”、“迁移” |
mobile-developer | 移动端 | “React Native”、“Flutter”、“移动端” |
api-designer | API 设计 | “REST”、“GraphQL”、“OpenAPI” |
debugger | 调试 | “错误”、“故障”、“无法正常工作” |
explorer-agent | 探索 | “探索”、“映射”、“结构” |
documentation-writer | 文档 | “编写文档”、“创建 README”、“生成 API 文档” |
performance-optimizer | 性能 | “缓慢”、“优化”、“性能分析” |
project-planner | 规划 | “计划”、“路线图”、“里程碑” |
seo-specialist | SEO | “SEO”、“元标签”、“搜索排名” |
game-developer | 游戏开发 | “游戏”、“Unity”、“Godot”、“Phaser” |
Claude Code 内置 Agent
这些 Agent 可与自定义 Agent 协同工作:
| Agent | 模型 | 用途 |
|---|---|---|
| Explore | Haiku | 快速只读代码库搜索 |
| Plan | Sonnet | 在计划模式下进行研究 |
| General-purpose | Sonnet | 复杂的多步骤修改 |
快速搜索使用 Explore,领域专业知识使用自定义 Agent。
综合流程
所有 Agent 完成后,请综合整理:
## Orchestration Synthesis
### Task Summary
[What was accomplished]
### Agent Contributions
| Agent | Finding |
|-------|---------|
| security-auditor | Found X |
| backend-specialist | Identified Y |
### Consolidated Recommendations
1. **Critical**: [Issue from Agent A]
2. **Important**: [Issue from Agent B]
3. **Nice-to-have**: [Enhancement from Agent C]
### Action Items
- [ ] Fix critical security issue
- [ ] Refactor API endpoint
- [ ] Add missing tests
最佳实践
- 可用的 Agent - 仅使用宿主实际安装或支持的角色
- 合理排序 - 探索 → 分析 → 实现 → 测试
- 共享上下文 - 将相关发现传递给后续 Agent
- 统一综合 - 提供一份统一报告,而非分别输出
- 验证改动 - 修改代码时务必加入 test-engineer
主要优势
- ✅ 协同会话 - 仅明确共享相关上下文;上下文继承因宿主而异
- ✅ AI 控制 - Claude 自主进行编排
- ✅ 原生集成 - 可与内置的 Explore、Plan Agent 协同工作
- ✅ 恢复支持 - 可继续之前的 Agent 工作
- ✅ 上下文传递 - Agent 之间可传递发现结果
限制
- 仅当任务明确符合上述范围时,才使用此技能。
- 不要将输出视为特定环境验证、测试或专家评审的替代品。
- 如果缺少必需的输入、权限、安全边界或成功标准,请停止并请求澄清。
评论
支持 Markdown