SuperAPI AI 工具集

parallel-agents

智能体与模型

查看项目

更新于 10-15 08:33

技能介绍

用途

parallel-agents 是一个多智能体编排技能,用于协调多个具备不同领域专长的智能体,通过 Claude Code 内置的 Agent Tool 完成复杂任务。与外部脚本不同,这种方式把全部编排交由 Claude 控制。它适合需要多领域专业知识、或需要从多个角度进行综合分析的任务。

何时使用编排

适合:

  • 需要多个专业领域的复杂任务
  • 从安全、性能和质量角度进行代码分析
  • 综合评审(架构 + 安全 + 测试)
  • 需要后端 + 前端 + 数据库协作的功能实现

不适合:

  • 简单的单领域任务
  • 快速修复或小改动
  • 一个智能体即可完成的任务

原生智能体调用方式

  • 单智能体:使用 security-auditor 智能体审查认证。
  • 顺序链:先用 explorer-agent 发现项目结构,再用 backend-specialist 审查 API 端点,最后用 test-engineer 找出测试盲区。
  • 带上下文传递:用 frontend-specialist 分析 React 组件,基于这些发现让 test-engineer 生成组件测试。
  • 恢复先前工作:恢复 agent [agentId] 并继续处理更多需求。

编排模式

模式 1:综合分析 智能体:explorer-agent → [领域智能体] → 综合。步骤为:explorer-agent 映射代码库结构;security-auditor 评估安全态势;backend-specialist 审查 API 质量;frontend-specialist 审查 UI/UX 模式;test-engineer 审查测试覆盖;最后综合所有发现。

模式 2:功能评审 智能体:受影响领域智能体 → test-engineer。步骤为:确定受影响的领域(后端?前端?还是两者都有);调用相关领域智能体;由 test-engineer 验证改动;综合建议。

模式 3:安全审计 智能体:security-auditor → penetration-tester → 综合。步骤为:security-auditor 进行配置和代码审查;penetration-tester 进行主动漏洞测试;最后综合并给出按优先级排序的修复建议。

可用智能体

智能体 专长 触发短语
orchestrator 协调 "comprehensive"、"multi-perspective"
security-auditor 安全 "security"、"auth"、"vulnerabilities"
penetration-tester 安全测试 "pentest"、"red team"、"exploit"
backend-specialist 后端 "API"、"server"、"Node.js"、"Express"
frontend-specialist 前端 "React"、"UI"、"components"、"Next.js"
test-engineer 测试 "tests"、"coverage"、"TDD"
devops-engineer DevOps "deploy"、"CI/CD"、"infrastructure"
database-architect 数据库 "schema"、"Prisma"、"migrations"
mobile-developer 移动 "React Native"、"Flutter"、"mobile"
api-designer API 设计 "REST"、"GraphQL"、"OpenAPI"
debugger 调试 "bug"、"error"、"not working"
explorer-agent 发现 "explore"、"map"、"structure"
documentation-writer 文档 "write docs"、"create README"、"generate API docs"
performance-optimizer 性能 "slow"、"optimize"、"profiling"
project-planner 规划 "plan"、"roadmap"、"milestones"
seo-specialist SEO "SEO"、"meta tags"、"search ranking"
game-developer 游戏开发 "game"、"Unity"、"Godot"、"Phaser"

Claude Code 内置智能体

这些内置智能体可与自定义智能体协同工作:

智能体 模型 用途
Explore Haiku 快速只读代码库搜索
Plan Sonnet 计划模式期间的研究
General-purpose Sonnet 复杂的多步骤修改

快速搜索用 Explore,领域专长用自定义智能体。

综合协议

所有智能体完成后,按如下结构综合:

## 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

最佳实践

  • 可用智能体:共 17 个专用智能体可供编排
  • 逻辑顺序:发现 → 分析 → 实现 → 测试
  • 共享上下文:将相关发现传递给后续智能体
  • 单一综合:输出一份统一报告,而非各自独立的输出
  • 验证改动:涉及代码修改时始终包含 test-engineer

主要优势

  • 单一会话:所有智能体共享上下文
  • AI 控制:由 Claude 自主编排
  • 原生集成:可与内置 Explore、Plan 智能体配合
  • 支持恢复:可继续先前的智能体工作
  • 上下文传递:发现可在智能体之间流动

限制

本技能不适用于简单、单领域、快速修复或单个智能体即可完成的任务。关于收费、价格、具体平台支持范围等信息,资料暂未提供。