[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KVW486WMABHHYD9BJNHVZQ":3,"skill-same:01M6KVW486WMABHHYD9BJNHVZQ":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":22,"publishedAt":29,"linkOnly":30,"markdownContent":31,"markdownBody":32,"frontMatter":33,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":45,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":47,"install":48,"resources":61},"01M6KVW486WMABHHYD9BJNHVZQ","multi_agent_collaboration",null,"当任务需要多个 Agent 的专业能力协同完成时，编排多 Agent 并行或串行协作，整合各方结果。","mateaix\u002Fmateclaw","mateaix","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F57164338?v=4","01M6KVQ3JXJP7M6D3BKS2BAMFF","01M6KVQ3Q8YG7DT57AY22TBXGG",1196,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmateaix\u002Fmateclaw\u002Fblob\u002Fdev\u002Fmateclaw-server\u002Fsrc\u002Fmain\u002Fresources\u002Fskills\u002Fmulti_agent_collaboration\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[23,24,25,26,27,28],"multi agent","multi agent collaboration","collaboration","agent collaboration","multi","协作","2026-11-10 10:12:30",false,"---\nname: multi_agent_collaboration\nversion: \"1.4.0\"\ndescription: \"当任务需要多个 Agent 的专业能力协同完成时，编排多 Agent 并行或串行协作，整合各方结果。\"\ndependencies:\n  tools:\n    - listAvailableAgents\n    - delegateToAgent\n    - delegateParallel\n---\n\n# 多 Agent 协作\n\n## 何时使用\n\n当任务明显需要多个专业 Agent 共同完成，或用户明确要求多 Agent 协作时使用。\n\n### 应该使用\n- 任务可拆分为多个专业子域，每个子域有对应 Agent\n- 多个独立子任务可以并行执行（节省时间）\n- 需要来自不同 Agent 的结果进行综合分析\n- 用户明确要求\"让 A 和 B 一起做\"\n\n### 不应使用\n- 一个 Agent 可以完成，无需分工\n- 只是简单咨询，用 `chat_with_agent` 即可\n- 刚收到某 Agent 的消息，不要立刻回调它（防死循环）\n\n## 两种协作模式\n\n### 模式一：串行（有依赖关系）\n\nB 的任务需要 A 的结果时使用：\n\n```\n# 第一阶段：A 完成\nresult_a = delegateToAgent(\n  agentName=\"research-agent\",\n  task=\"[来自 Agent coordinator 的请求] 收集最新 AI 大模型基准测试数据，返回原始数据表格。\"\n)\n\n# 第二阶段：B 基于 A 的结果处理\nresult_b = delegateToAgent(\n  agentName=\"data-analyst\",\n  task=\"[来自 Agent coordinator 的请求] 基于以下数据生成分析报告和可视化建议：\\n\\n\" + result_a\n)\n```\n\n### 模式二：并行（互相独立）\n\n多个子任务之间没有依赖时使用，最多同时 3 个：\n\n```\nresults = delegateParallel(\n  tasksJson=\"[\n    {\\\"agentName\\\": \\\"research-agent\\\", \\\"task\\\": \\\"[来自 Agent coordinator 的请求] 搜索竞品 A 的最新功能更新\\\"},\n    {\\\"agentName\\\": \\\"data-analyst\\\",   \\\"task\\\": \\\"[来自 Agent coordinator 的请求] 分析我们产品上月用户留存数据\\\"},\n    {\\\"agentName\\\": \\\"writer-agent\\\",   \\\"task\\\": \\\"[来自 Agent coordinator 的请求] 起草本次竞品分析报告的大纲\\\"}\n  ]\"\n)\n```\n\n所有任务完成后一次性返回全部结果，再由当前 Agent 整合。\n\n## 完整工作流程\n\n### 第一步：查询可用 Agent\n\n```\nlistAvailableAgents()\n```\n\n根据各 Agent 的描述分配任务。\n\n### 第二步：判断串行 or 并行\n\n| 判断条件 | 模式 |\n|---------|------|\n| 子任务 B 依赖子任务 A 的结果 | 串行 |\n| 子任务互相独立，可同时进行 | 并行 |\n| 混合（部分有依赖） | 先并行无依赖任务，再串行有依赖任务 |\n\n### 第三步：分配并执行\n\n使用对应模式（见上）。\n\n### 第四步：整合结果\n\n由当前 Agent（编排者）负责整合所有 Agent 的返回结果，形成最终回复。**不要把整合工作再委托给某个子 Agent。**\n\n## 关键规则\n\n- 任务说明中加 `[来自 Agent \u003C名称> 的请求]` 帮助目标 Agent 识别来源\n- 并行任务数量不超过 3 个；超过时按优先级分批\n- 不让两个 Agent 互相调用对方（会形成死循环）\n- 整合由编排者负责，不再向下委托\n- 如需上下文连贯，在 `task` 中附带前一阶段的关键结论\n\n## 与 chat_with_agent 的区别\n\n| 技能 | 场景 |\n|------|------|\n| `chat_with_agent` | 一对一，咨询或单任务委托 |\n| `multi_agent_collaboration` | 一对多，多 Agent 分工、并行或串行编排 |\n","# 多 Agent 协作\n\n## 何时使用\n\n当任务明显需要多个专业 Agent 共同完成，或用户明确要求多 Agent 协作时使用。\n\n### 应该使用\n- 任务可拆分为多个专业子域，每个子域有对应 Agent\n- 多个独立子任务可以并行执行（节省时间）\n- 需要来自不同 Agent 的结果进行综合分析\n- 用户明确要求\"让 A 和 B 一起做\"\n\n### 不应使用\n- 一个 Agent 可以完成，无需分工\n- 只是简单咨询，用 `chat_with_agent` 即可\n- 刚收到某 Agent 的消息，不要立刻回调它（防死循环）\n\n## 两种协作模式\n\n### 模式一：串行（有依赖关系）\n\nB 的任务需要 A 的结果时使用：\n\n```\n# 第一阶段：A 完成\nresult_a = delegateToAgent(\n  agentName=\"research-agent\",\n  task=\"[来自 Agent coordinator 的请求] 收集最新 AI 大模型基准测试数据，返回原始数据表格。\"\n)\n\n# 第二阶段：B 基于 A 的结果处理\nresult_b = delegateToAgent(\n  agentName=\"data-analyst\",\n  task=\"[来自 Agent coordinator 的请求] 基于以下数据生成分析报告和可视化建议：\\n\\n\" + result_a\n)\n```\n\n### 模式二：并行（互相独立）\n\n多个子任务之间没有依赖时使用，最多同时 3 个：\n\n```\nresults = delegateParallel(\n  tasksJson=\"[\n    {\\\"agentName\\\": \\\"research-agent\\\", \\\"task\\\": \\\"[来自 Agent coordinator 的请求] 搜索竞品 A 的最新功能更新\\\"},\n    {\\\"agentName\\\": \\\"data-analyst\\\",   \\\"task\\\": \\\"[来自 Agent coordinator 的请求] 分析我们产品上月用户留存数据\\\"},\n    {\\\"agentName\\\": \\\"writer-agent\\\",   \\\"task\\\": \\\"[来自 Agent coordinator 的请求] 起草本次竞品分析报告的大纲\\\"}\n  ]\"\n)\n```\n\n所有任务完成后一次性返回全部结果，再由当前 Agent 整合。\n\n## 完整工作流程\n\n### 第一步：查询可用 Agent\n\n```\nlistAvailableAgents()\n```\n\n根据各 Agent 的描述分配任务。\n\n### 第二步：判断串行 or 并行\n\n| 判断条件 | 模式 |\n|---------|------|\n| 子任务 B 依赖子任务 A 的结果 | 串行 |\n| 子任务互相独立，可同时进行 | 并行 |\n| 混合（部分有依赖） | 先并行无依赖任务，再串行有依赖任务 |\n\n### 第三步：分配并执行\n\n使用对应模式（见上）。\n\n### 第四步：整合结果\n\n由当前 Agent（编排者）负责整合所有 Agent 的返回结果，形成最终回复。**不要把整合工作再委托给某个子 Agent。**\n\n## 关键规则\n\n- 任务说明中加 `[来自 Agent \u003C名称> 的请求]` 帮助目标 Agent 识别来源\n- 并行任务数量不超过 3 个；超过时按优先级分批\n- 不让两个 Agent 互相调用对方（会形成死循环）\n- 整合由编排者负责，不再向下委托\n- 如需上下文连贯，在 `task` 中附带前一阶段的关键结论\n\n## 与 chat_with_agent 的区别\n\n| 技能 | 场景 |\n|------|------|\n| `chat_with_agent` | 一对一，咨询或单任务委托 |\n| `multi_agent_collaboration` | 一对多，多 Agent 分工、并行或串行编排 |\n",{"name":5,"version":34,"description":7,"dependencies":35},"1.4.0",{"tools":36},[37,38,39],"listAvailableAgents","delegateToAgent","delegateParallel","dev","11106843d72d25b29c2cd08d7fdbbd222c21df6a","mateclaw-server\u002Fsrc\u002Fmain\u002Fresources\u002Fskills\u002Fmulti_agent_collaboration",361,"https:\u002F\u002Fgithub.com\u002Fmateaix\u002Fmateclaw","https:\u002F\u002Fclaw.mate.vip","https:\u002F\u002Fgithub.com\u002Fmateaix","2026-11-13 15:43:14",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add mateaix\u002Fmateclaw --skill multi_agent_collaboration",{"tool":54,"command":55},"bunx","bunx skills add mateaix\u002Fmateclaw --skill multi_agent_collaboration",{"tool":57,"command":58},"pnpm","pnpm dlx skills add mateaix\u002Fmateclaw --skill multi_agent_collaboration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmateaix\u002Fmateclaw\u002Fblob\u002Fdev\u002Fmateclaw-server\u002Fsrc\u002Fmain\u002Fresources\u002Fskills\u002Fmulti_agent_collaboration\u002FSKILL.md",true,[],[63,74,107,133,160,179],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":70,"publishedAt":29},"01M6KW155AABG05Q3FR8CN3D9H","sample","Test fixture for SkillBundleMaterializer.","https:\u002F\u002Fgithub.com\u002Fmateaix\u002Fmateclaw\u002Fblob\u002Fdev\u002Fmateclaw-server\u002Fsrc\u002Ftest\u002Fresources\u002Ftest-bundles\u002Fsample\u002FSKILL.md",[69],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[65,71,72,73],"test","for","fixture",{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":85,"publishedAt":29},"01M6KW0P1T4EGBRN0HYZKJSHGB","xhs_note","小红书图文创作 \u002F 笔记 \u002F 种草文案 (xiaohongshu \u002F red note) — 端到端：成文→配图(≥3 张竖版)→去AI化→在线预览打包交付。以图为主、文字辅助：标题四件套 + 碎句正文 + 话题标签，配 3:4 竖版卡片，最少 3 张图。honors user persona & style memory.","https:\u002F\u002Fgithub.com\u002Fmateaix\u002Fmateclaw\u002Fblob\u002Fdev\u002Fmateclaw-server\u002Fsrc\u002Fmain\u002Fresources\u002Fskills\u002Fxhs_note\u002FSKILL.md",[80],{"categoryNo":81,"categoryName":82,"taxonomyType":83,"taxonomyTypeDesc":84},"01JBSEEDCAT000000000000036","内容创作者","PROFESSION","适用职业",[86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106],"note","xhs note","xhs","创作","persona","memory","红书","user","red","图文","内容创作","style","小红书","笔记","xiaohongshu","去AI化","linux","文案","windows","macos","文字",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":114,"publishedAt":29},"01M6KW0J69PPWSCVSR6JVJ0P1F","x_intel","Read X (Twitter) posts, search, timelines and user profiles via the official xurl CLI.","https:\u002F\u002Fgithub.com\u002Fmateaix\u002Fmateclaw\u002Fblob\u002Fdev\u002Fmateclaw-server\u002Fsrc\u002Fmain\u002Fresources\u002Fskills\u002Fx_intel\u002FSKILL.md",[113],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[115,116,117,118,119,120,121,122,123,124,102,125,126,127,128,129,130,131,132,105],"x intel","shell","xurl","execute","twitter","social-media","via","profiles","research","true","read","command","cli","social","search","official","Media","posts",{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":147,"publishedAt":29},"01M6KW0DEPAYEF2JQ70PGN0Y8D","writing-plans","Write implementation plans: bite-sized tasks, paths, code.","https:\u002F\u002Fgithub.com\u002Fmateaix\u002Fmateclaw\u002Fblob\u002Fdev\u002Fmateclaw-server\u002Fsrc\u002Fmain\u002Fresources\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[139,142,145,146],{"categoryNo":140,"categoryName":141,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000015","视觉设计",{"categoryNo":143,"categoryName":144,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":81,"categoryName":82,"taxonomyType":83,"taxonomyTypeDesc":84},[148,149,150,151,152,153,154,155,156,157,158,159],"plans","writing plans","writing","implementation","planning","paths","write","documentation","tasks","code","workflow","design",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":167,"publishedAt":29},"01M6KW08Q6EEN0ZSH5JRMAFH0B","webhook-subscriptions","Webhook subscriptions: event-driven agent runs.","https:\u002F\u002Fgithub.com\u002Fmateaix\u002Fmateclaw\u002Fblob\u002Fdev\u002Fmateclaw-server\u002Fsrc\u002Fmain\u002Fresources\u002Fskills\u002Fwebhook-subscriptions\u002FSKILL.md",[166],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[168,169,170,171,172,173,174,175,176,177,178],"subscriptions","webhook subscriptions","webhook","event-driven","automation","event","integrations","push","events","notifications","driven",{"skillNo":180,"name":181,"nameZh":6,"description":182,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":183,"categories":184,"keywords":192,"publishedAt":29},"01M6KW04W8S4EMJHSNHY3HWAY3","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002Fmateaix\u002Fmateclaw\u002Fblob\u002Fdev\u002Fmateclaw-server\u002Fsrc\u002Fmain\u002Fresources\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[185,188,191],{"categoryNo":186,"categoryName":187,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000007","代码审查",{"categoryNo":189,"categoryName":190,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[193,71,178,194,195,94,196,197,198,199,157,200,201,202],"development","test driven development","quality","tdd","tests","enforce","refactor","testing","red-green-refactor","green"]