dispatching-parallel-agents
將任務分派給平行代理以進行並發執行
也可從以下取得: obra,davila7,Doyajin174,DYAI2025,Cygnusfear,CodingCossack,Cycleaddict
停止逐一調查多個獨立問題而浪費時間。此技能教導您如何為每個問題領域分派一個代理,使調查能夠並發進行。
下載技能 ZIP
在 Claude 中上傳
前往 設定 → 功能 → 技能 → 上傳技能
開啟並開始使用
測試它
正在使用「dispatching-parallel-agents」。 6 test failures across 3 files: agent-tool-abort.test.ts (3 failures), batch-completion-behavior.test.ts (2 failures), tool-approval-race-conditions.test.ts (1 failure)
預期結果:
- Agent 1 (agent-tool-abort.test.ts):將任意超時替換為基於事件的等待以完成工具。修復 3 個測試。
- Agent 2 (batch-completion-behavior.test.ts):修復事件結構錯誤,其中 threadId 位於錯誤位置。修復 2 個測試。
- Agent 3 (tool-approval-race-conditions.test.ts):在斷言前添加等待非同步工具執行完成。修復 1 個測試。
- 整合:所有 3 個修復相互獨立且無衝突。完整測試套件通過。
正在使用「dispatching-parallel-agents」。 Multiple unrelated bugs: login button styling broken, API response caching not working, email notifications delayed
預期結果:
- Agent 1 (styling):識別 CSS 類別命名衝突。修復按鈕樣式而不影響其他元件。
- Agent 2 (caching):快取金鑰產生缺少請求參數。添加正確的金鑰組成。
- Agent 3 (notifications):訊息佇列消費者有不正確的重試邏輯。修復重试退避演算法。
- 所有代理獨立工作。無共享檔案被修改。變更成功整合。
安全審計
安全This skill is a documentation-only markdown file providing guidance on parallel agent dispatching patterns. Static analyzer flagged 10 patterns as potential risks, but all are FALSE POSITIVES. The external_commands detections are documentation code examples (not executable). The cryptographic and reconnaissance flags reference documentation text with no actual security-relevant operations. No executable code, network access, file system operations, or sensitive data handling present.
低風險問題 (1)
品質評分
你能建構什麼
平行測試失敗調查
多個測試檔案因不同根因而失敗。為每個測試檔案分派一個代理,獨立調查並修復每個失敗。
多系統除錯
不同系統獨立受損。每個代理被分配一個系統進行診斷,無需來自其他區域的上下文。
並發程式碼審查
多個拉取請求需要審查。分派代理同時審查不同的 PR,每個代理針對其分配的變更提供專注回饋。
試試這些提示
I have 2 independent tasks. Task 1: [describe]. Task 2: [describe]. These tasks do not share any files or state. Please investigate both tasks in parallel and provide separate summaries for each.
Fix the 3 failing tests in src/agents/agent-tool-abort.test.ts. These are timing and race condition issues. Your task: 1) Read the test file and understand what each test verifies, 2) Identify root cause, 3) Fix by replacing timeouts with event-based waiting. Do NOT change production code. Return a summary of what you found and what you fixed.
I am dispatching 3 agents for parallel investigation. Agent 1 investigates auth module failures. Agent 2 investigates API rate limiting issues. Agent 3 investigates database connection pool exhaustion. Each agent: focus only on your domain, do not modify files outside your scope, return a structured summary with root cause and changes made. I will integrate all results after all agents complete.
Dispatch parallel agents for this multi-domain failure scenario. Domain A: Frontend component rendering issues in Dashboard.tsx and Metrics.tsx. Domain B: Backend API timeout errors in /api/v2/analytics endpoints. Domain C: Database query performance degradation in reporting queries. Constraints for all agents: do not introduce breaking changes, maintain backward compatibility, add tests for any fixes. Each agent must return: root cause analysis, files modified, test results, and any follow-up actions needed.
最佳實務
- 分派前務必驗證任務是否真正獨立 — 檢查共享檔案、狀態或順序依賴
- 為每個代理提供專注範圍,明確約束不應變更的內容
- 向每個代理請求結構化摘要,包括根因、所做的變更和測試結果,以便於整合
避免
- 範圍過廣,如「修復所有測試」— 代理在沒有專注方向時會迷失
- 缺少約束使代理能夠重構不相關的程式碼或意外變更生產邏輯
- 模糊的輸出期望,如「修復它」— 您將不知道變更了什麼或為何變更
常見問題
我應該一次分派多少個平行代理?
如果代理修改了同一個檔案怎麼辦?
我可以與單一 AI 助手使用此技能,還是需要多個實例?
我如何知道任務是否真正獨立?
當代理平行執行時我應該做什麼?
我應該總是平行執行代理而非順序執行嗎?
開發者詳情
作者
ZhanlinCui授權
MIT
儲存庫
https://github.com/ZhanlinCui/Ultimate-Agent-Skills-Collection/tree/main/dispatching-parallel-agents引用
main
檔案結構
📄 SKILL.md