一键导入
multi-agent-workflow
Use when implementing features with multiple AI agents working together
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when implementing features with multiple AI agents working together
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when creating, modifying, or reviewing a cliagents provider adapter for a CLI tool such as Codex, Claude Code, Gemini CLI, Qwen CLI, or OpenCode.
Use when operating as a supervised root that delegates work to child sessions through cliagents
Use when reducing prompt size for roots and child sessions without losing the information needed to execute well
Use when passing work between agents with context preservation
Use when exploring design options or solving open-ended problems
Use when reviewing code for quality, bugs, security, and maintainability
| name | multi-agent-workflow |
| description | Use when implementing features with multiple AI agents working together |
| tags | ["orchestration","multi-agent","workflow"] |
Orchestrate complex tasks across multiple AI agents, each contributing their strengths.
| Agent | Strengths | Best For |
|---|---|---|
| Claude Code | File editing, MCP tools, code generation | Implementation, refactoring |
| Gemini CLI | Web search, large context, fast | Research, documentation |
| Codex CLI | Sandbox execution, code review | Testing, security review |
Each agent builds on the previous one's output:
Gemini (Research) → Claude (Implement) → Codex (Review) → Claude (Fix)
Use when: Tasks have clear dependencies between phases
Example workflow:
Multiple agents work on different aspects simultaneously:
┌─ Claude (Bug Review)
Task ────┼─ Gemini (Security Review)
└─ Codex (Performance Review)
Use when: Independent reviews or analyses can happen concurrently
Example workflow:
One agent coordinates others:
Claude (Supervisor)
├─ delegates to → Gemini (Research subtask)
├─ delegates to → Codex (Test subtask)
└─ integrates results
Use when: Complex tasks need coordination and integration
Define the task and identify which agents should participate:
const workflow = {
task: "Implement user authentication",
phases: [
{ role: "research", agent: "gemini-cli", input: "Research OAuth2 best practices" },
{ role: "implement", agent: "claude-code", input: "Implement based on research" },
{ role: "test", agent: "codex-cli", input: "Write and run security tests" },
{ role: "fix", agent: "claude-code", input: "Fix any issues found" }
]
};
Use cliagents' delegation tools:
delegate_task role="research" adapter="gemini-cli" message="Research OAuth2..."
delegate_task role="implement" adapter="claude-code" message="[Research results] Implement..."
delegate_task role="test" adapter="codex-cli" message="[Implementation] Test..."
Use shared memory to pass information between agents:
store_artifact: Save implementation plans, code outputsshare_finding: Report bugs, security issues, suggestionsget_shared_findings: Retrieve what other agents discoveredCombine outputs from all agents into the final deliverable.
Use run_workflow for common patterns:
code-review: Parallel bug + security + performance reviewfeature: Plan → implement → testbugfix: Analyze → fix → testresearch: Research → document