obra/superpowers

subagent-driven-developmentobra/superpowers

按任务分配独立实现者,并由主Agent统一审查交付

  • SKILL.md 已保存
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

subagent-driven-development 是什么?

subagent-driven-development 将一个已确认的实现计划按任务交给独立上下文的子Agent,主Agent负责提供精确简报、核对报告、逐项审查与整合,全部任务后再审查整个分支。

中文说明由本站依据来源整理;英文原文保留在页面下方。

适合用在

  • 有明确计划和基本独立的任务,当前环境支持子Agent,且用户希望每项任务都有审查环节。

这些情况不适合

  • 没有计划就分派模糊目标;或让多个实现者并行修改相同共享文件。来源的本流程顺序派发实现任务。
按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 subagent-driven-development,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 subagent-driven-development

请在 Codex 的当前工作环境中安装并检查 subagent-driven-development 这个 Skill。

项目身份:obra/superpowers / subagent-driven-development
来源:https://github.com/obra/superpowers/blob/22f0b463e7a5e579904dd6211a520321035526f7/skills/subagent-driven-development/SKILL.md
已定位的源文件:skills/subagent-driven-development/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 需要可运行的子Agent工具、真实Git工程、计划与Spec,以及来源附带的workspace、brief、review-package等脚本和各角色模板。

会得到什么

  • 各任务的实现与审查记录、提交范围、主Agent整合验证,以及整个分支的最终审查结果。

实际使用顺序

  1. 核对工作区、计划身份与进度台账,先检查任务间接口冲突;压缩后按台账和Git记录恢复,不重新派出已完成任务。
  2. 每项派发前记录BASE,生成独立简报,提供精确输入、前序接口与报告位置;给任务所需材料,不默认继承主会话全部历史。
  3. 实现者完成后,主Agent读取实际报告与差异,生成审查包,检查需求符合性和代码质量;有真实问题则按来源的fix-loop规则跟进,保留裁决记录。
  4. 逐项完成后,对整个分支做最终审查,记录重要问题修复和延期项,再依实际授权进行分支集成与工作区收尾。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

使用 subagent-driven-development 执行我已经确认的CSV导出计划。先核对台账和任务接口,再依次给独立实现者精确简报;每项完成后对照Spec和真实差异审查。不要让两个实现者争改公共文件,也不要仅转述子Agent说“完成”。最后检查整个分支并说明未解决事项。
预期结果

预期每个任务都有可追溯实现与审查,主Agent对组合结果负责;本站未执行此教学任务。

使用前先看这些限制

使用条件与边界

  • 上下文隔离不保证文件系统隔离,主Agent仍需控制共享目录、资源与提交范围。
  • 本说明只概括主流程,具体修复轮次、无法验证项和最终审查还要读取来源链接的参考文件,不能自行假定无限循环。
针对这个 Skill 的疑问

常见问题

这是不是把所有任务一起发出去就行?

不是。这份来源要求顺序派发实现任务,并设置每项审查和最终审查;独立问题并行调查是另一份 dispatching-parallel-agents 的主题。

子Agent自审通过,能代替主Agent安排的审查吗?

不能。来源把实现者自审、任务需求与质量审查以及整个分支审查区分开,主Agent还要读取真实改动。

需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-17T19:31:50.806Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

skills/subagent-driven-development/SKILL.md · 抓取时间 2026-11-17T19:31:50.806Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Use when executing implementation plans with independent tasks in the current session

查看源文件章节 / Source sections
  • 原文:Subagent-Driven Development
  • 原文:When to Use
  • 原文:The Process
  • 设置 / Setup
  • 原文:Model Selection
  • 原文:The Task Loop
  • 原文:1. Dispatch the implementer
  • 原文:2. Handle the report
  • 原文:3. Review the task
  • 原文:4. The fix loop
  • 原文:5. Complete the task
  • 原文:Final Review
  • 原文:Common Rationalizations
原文:Subagent-Driven Development

Execute plan by dispatching a fresh implementer subagent per task, a task review (spec compliance + code quality) after each, and a broad whole-branch review at the end. **Why subagents:** You delegate tasks to specialized agents with isolated context. By precisely crafting their instructions and context, you ensure they stay focused and succeed at their task. They should never inherit your session's context or history — you construct exactly what they need. This also preserves your own context for coordination work. **Core principle:** Fresh subagent per task + task review (spec + quality) + broad final review = high quality, fast iteration **Narration:** between tool calls, narrate at most one short line — the ledger and the tool results carry the record. **Continuous execution:** Do not pause to check in with your human partner between tasks. Execute all tasks from the plan without stopping. The only reasons to stop are the four named below, or all tasks complete. "Should I continue?" prompts and progress summaries waste their time — they asked you to execute the plan, so execute it. **Rulings, not stalls.** A running plan does not wait on a human. Conflicts, ambiguities, plan defects, a cap you would have asked to exceed — decide them. The spec is the binding authority, the plan is its argument, and your judgment settles what neither answers. Record every decision in the ledger as `Ruling: <what you decided> — <why> — <what it costs if wrong>`, and keep going. A wrong ruling costs rework your human partner can see and undo; a session parked on a question costs their whole day and buys nothing. Four things stop you, and only these: an irreversible or destructive operation; a security-sensitive action; a side effect outside this worktree that norms say you ask about first (a merge, a push to a shared branch, a publish); and a plan so broken that every path forward is a guess. For those, stop and ask.

原文:When to Use

```dot digraph when_to_use { "Have implementation plan?" [shape=diamond]; "Tasks mostly independent?" [shape=diamond]; "Partner chose inline, or no subagent tool?" [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?" -> "Partner chose inline, or no subagent tool?" [label="yes"]; "Tasks mostly independent?" -> "Manual execution or brainstorm first" [label="no - tightly coupled"]; "Partner chose inline, or no subagent tool?" -> "executing-plans" [label="yes"]; "Partner chose inline, or no subagent tool?" -> "subagent-driven-development" [label="no"]; } ``` **vs. Executing Plans (inline):** - Fresh subagent per task (no context pollution) instead of one context doing every task - Review after each task (spec compliance + code quality) instead of only at the end - Costs a fresh context per task and per review; inline costs one context plus one final reviewer - Both run in this session, share the same plan workspace and ledger, and never pause between tasks

原文:The Process

```dot digraph process { rankdir=TB; subgraph cluster_per_task { label="Per Task"; "Dispatch implementer subagent (./implementer-prompt.md)" [shape=box]; "Implementer asks questions?" [shape=diamond]; "Answer questions, provide context" [shape=box]; "Implementer implements, tests, commits, self-reviews" [shape=box]; "Generate review package, dispatch task reviewer (./task-reviewer-prompt.md)" [shape=box]; "Spec ✅ and quality approved?" [shape=diamond]; "Fix loop: read references/fix-loop.md before every round" [shape=box]; "Append completion to ledger, mark todo complete" [shape=box]; } "Setup: worktree, ledger check, read plan, pre-flight review" [shape=box]; "More tasks remain?" [shape=diamond]; "Final review and finish: read references/final-review.md" [shape=box]; "Final review clean: delete this plan's workspace" [shape=box]; "Use superpowers:finishing-a-development-branch" [shape=box style=filled fillcolor=lightgreen];

本段为节选,完整内容见源文件。

设置 / Setup

Ensure the work happens in an isolated workspace: use superpowers:using-git-worktrees to create one or verify the existing one. Never start implementation on a main/master branch without your human partner's explicit consent. Conversation memory does not survive compaction. In real sessions, controllers that lost their place have re-dispatched entire completed task sequences — the single most expensive failure observed. Track progress in a ledger file, not only in todos. - Each plan owns a workspace: at skill start, run this skill's `bash scripts/sdd-workspace PLAN_FILE` by its absolute path, from the working tree you're executing in — it prints the plan's git-ignored directory (under `<repo-root>/.superpowers/sdd/`), home to every artifact for THIS plan: ledger, briefs, reports, review packages. Another plan's directory is never yours to read or write. - Check for this plan's ledger at `<workspace>/progress.md`. If one exists, read [references/resuming.md](references/resuming.md) before anything else: it says whose ledger it is and where to resume. - Create the ledger with its identity as the first line: `# SDD ledger — plan: <plan file path>`. - The ledger is your recovery map: the commits it names exist in git even when your context no longer remembers creating them. After compaction, trust the ledger and `git log` over your own recollection. - `git clean -fdx` will destroy the workspace (it's git-ignored scratch); if that happens, recover from `git log`. Read the plan once, note its context and Global Constraints, and create a todo per task. If the plan names a Spec, read that too: the spec is the authority the plan argues from, and conflicts inside the plan resolve against it. A plan with no reachable spec gets a ledger note saying so — rulings made without one are provisional. Before dispatching Task 1, read [references/preflight.md](references/preflight.md) and run the conflict scan it describes. Its table and rulings go in the ledger.

原文:Model Selection

Use the least powerful model that can handle each role to conserve cost and increase speed. **Mechanical implementation tasks** (isolated functions, clear specs, 1-2 files): use a fast, cheap model. Most implementation tasks are mechanical when the plan is well-specified. **Integration and judgment tasks** (multi-file coordination, pattern matching, debugging): use a standard model. **Architecture and design tasks**: use the most capable available model. The final whole-branch review is one of these — dispatch it on the most capable available model, not the session default. **Review tasks**: choose the model with the same judgment, scaled to the diff's size, complexity, and risk. A small mechanical diff does not need the most capable model; a subtle concurrency change does. Scoped re-reviews of small fix diffs take a cheap-to-mid tier. **Fix-loop escalation (rounds 4-5)**: use a model at least one tier above the implementer that got stuck. **Always specify the model explicitly when dispatching a subagent.** An omitted model inherits your session's model — often the most capable and most expensive — which silently defeats this section. **Turn count beats token price.** Wall-clock and context cost scale with how many turns a subagent takes, and the cheapest models routinely take 2-3× the turns on multi-step work — costing more overall. Use a mid-tier model as the floor for reviewers and for implementers working from prose descriptions. When the task's plan text contains the complete code to write, the implementation is transcription plus testing: use the cheapest tier for that implementer. Single-file mechanical fixes also take the cheapest tier. **Task complexity signals (implementation tasks):** - Touches 1-2 files with a complete spec → cheap model - Touches multiple files with integration concerns → standard model - Requires design judgment or broad codebase understanding → most capable model

原文:The Task Loop

**Small same-shape work:** when the plan lists several small edits of the same kind across files, read [references/batching.md](references/batching.md) before dispatching them. Everything you paste into a dispatch prompt — and everything a subagent prints back — stays resident in your context for the rest of the session and is re-read on every later turn. Hand artifacts over as files. **Waiting on dispatched subagents:** never poll a wait interface with short timeouts, and never sit in one silent, open-ended wait either. While you have local work — ledger updates, packaging the next review, reading reports — keep working; child results arrive on their own. When you are genuinely idle, wait in bounded stretches (five to ten minutes, where your platform allows), and between stretches post one line of status and reconcile your live children: list them, and chase any that finished without reporting. A bounded stretch keeps nearly all of a long wait's efficiency while guaranteeing a stuck or lost child is noticed within minutes, not at the end of the session.

文件 SHA256:1baf70e307bde682c462513c86116333f1f066168c6710f45145bf5f0b00828d

仓库许可证记录:MIT;repository-license-recorded-scope-unverified,查看来源。

Skills.sh收录简介 · 2026-07-28

Use when executing implementation plans with independent tasks in the current session

查看历史简介来源

历史收录数据

Skill标识subagent-driven-development
来源仓库obra/superpowers
榜单快照2026-07-28
榜单口径Skills.sh累计安装量
快照名次173
快照累计安装量159676

历史资料说明

  • 安装量用于说明当时的收录次序,不是效果、可信度或当前可用性的证明。

此页用于识别项目与来源。安装入口可在该Skill的Skills.sh页面查看;当前目录是否仍存在、附带脚本和账户依赖尚需按具体版本确认。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源