← ClaudeAtlas

subagent-driven-developmentlisted

在目前 session 中執行含有獨立任務的實作計畫時使用
shumingyang-opencode/superpowers-zh-tw · ★ 0 · AI & Automation · score 71
Install: claude install-skill shumingyang-opencode/superpowers-zh-tw
# 子代理驅動開發 執行計畫時,每個任務派出全新的實作子代理,每個任務後進行一次任務審查(規格符合度 + 程式碼品質),最後再進行一次全面的整支分支審查。 **為何使用子代理:** 你將任務委派給擁有獨立上下文的專業代理。透過精準打造他們的指令與上下文,你確保他們能保持專注並成功完成任務。他們不該繼承你的 session 上下文或歷史——由你精確建構他們所需的內容。這也保留你自己的上下文用於協調工作。 **核心原則:** 每個任務全新的子代理 + 任務審查(規格 + 品質)+ 全面的最終審查 = 高品質、快速迭代 **敘事:** 在工具呼叫之間,最多敘述一行簡短文字——記錄簿與工具結果本身就承載了紀錄。 **持續執行:** 不要在任務之間暫停與你的真人夥伴確認。不間斷地執行計畫中的所有任務。唯一需要停下來的理由:你無法解決的 BLOCKED 狀態、真正阻礙進展的歧義、或所有任務皆已完成。「我該繼續嗎?」這類提示與進度摘要都在浪費他們的時間——他們要求你執行計畫,就去執行。 ## 使用時機 ```dot digraph when_to_use { "Have implementation plan?" [shape=diamond]; "Tasks mostly independent?" [shape=diamond]; "Stay in this session?" [shape=diamond]; "subagent-driven-development" [shape=box]; "executing-plans" [shape=box]; "Manual execution or brainstorm first" [shape=box]; "Have implementation plan?" -> "Tasks mostly independent?" [label="yes"]; "Have implementation plan?" -> "Manual execution or brainstorm first" [label="no"]; "Tasks mostly independent?" -> "Stay in this session?" [label="yes"]; "Tasks mostly independent?" -> "Manual execution or brainstorm first" [label="no - tightly coupled"]; "Stay in this session?" -> "subagent-driven-development" [label="yes"]; "Stay in this session?" -> "executing-plans" [label="no - parallel session"]; } ``` **vs. 執行計畫(平行 session):** - 同一 session(無上下文切換) - 每個任務全新的子代理(無上下文污染) - 每個任務後審查(規格符合度 + 程式碼品質),最後全面審查 - 迭代更快(任務之間無需人為介入) ## 流程 ```dot digraph process { rankdir=TB; subgraph cluster_per_task { label="Per