subagent-driven-development
Consult before delegating implementation when an approved plan benefits from worker context isolation and durable coordination.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Consult before delegating implementation when an approved plan benefits from worker context isolation and durable coordination.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Consult after receiving review feedback and before implementation when the feedback needs evidence-based evaluation.
Consult before attempting a fix when root cause or behavior is unclear, failures repeat, components interact, or guessing would be unsafe.
Consult before implementing an observable behavior change when a meaningful automated test seam exists; use proportional red-green evidence.
Consult directly matching task playbooks before substantial design, debugging, implementation, review, or completion work without forcing full workflow execution.
Consult before making a substantive completion claim; require current trustworthy evidence and semantic acceptance.
Consult when multi-round implementation, context compaction, or worker handoff requires a durable execution contract.
| name | subagent-driven-development |
| description | Consult before delegating implementation when an approved plan benefits from worker context isolation and durable coordination. |
The core value of subagents is context isolation: bounded implementation work can proceed without loading the main session's accumulated history, while the main agent keeps the long-horizon picture coherent. Use this workflow for a plan whose deliverables benefit from that separation, not as a mandatory wrapper around every edit.
The main agent owns long-horizon continuity, overall construction progress, dependency and integration state, semantic acceptance ownership, and high-level architecture communication with the user. It normally coordinates rather than performing the worker's detailed implementation itself.
Workers own their bounded construction, focused validation, and durable report. The main agent should not duplicate worker implementation merely to stay busy. Direct main-agent investigation is appropriate only when separate verification is required, a worker report cannot serve as ground truth, or repeated failure on the same problem calls for deeper diagnosis.
Before each dispatch, ask whether the harness supports resuming a relevant prior worker and whether that worker's context still materially helps the next deliverable. When available, resume a relevant prior worker when it retains useful task-specific knowledge, unresolved evidence, or local implementation state.
Use a fresh worker when clean context isolation, an independent perspective, or unrelated work makes the earlier context a liability. Do not hardcode a single harness API: express the resume-or-dispatch decision, then use the active harness's supported worker mechanism.
Keep the controller context small and the work recoverable through files:
scripts/task-brief PLAN_FILE N; it is the
worker's authoritative requirement source.scripts/review-package BASE HEAD; without commit authority use
scripts/review-package --worktree BASE [OUTPUT]. Pass the resulting DIFF_FILE,
brief, and report paths to the reviewer instead of requiring a SHA or pasting
bulk history..superpowers/sdd/progress.md as the progress ledger. Record each
accepted deliverable, commit_authority, commits when authorized or its
working-tree diff/files/evidence, acceptance evidence, open concerns, and next
dependency. After context compaction, resume from the ledger and git log, not recollection.The brief, report, review package, and progress ledger are continuity tools, not ceremony: each preserves information a new controller or worker would otherwise need to reconstruct.
Place independent review at a meaningful semantic or risk boundary: a behavior that changes user-visible outcomes, crosses module ownership, introduces a security or data-integrity concern, alters permissions, affects concurrency, or creates a compatibility boundary. Substantive work receives a final whole-change review that checks integration and semantic acceptance across deliverables.
Repeated low-risk mechanical work following an already-reviewed pattern may use a grouped review. Short changes still receive independent review when they are security-sensitive, data-integrity, permission, concurrency, or cross-module changes. A reviewer evaluates semantic behavior and integration, not a hunt for style findings or an excuse to add process.
If a review finds an issue, decide whether a fix needs independent verification: request it for material semantic, risk, or integration findings; record a low-risk mechanical correction and verify it through the appropriate acceptance evidence when another review would not change confidence.
Use the least costly worker that can safely handle the task: inexpensive models for determined isolated edits, stronger models for cross-module integration or debugging, and the strongest available judgment for substantive whole-change review. Explicitly choose a model where the harness allows it; do not inherit a high-cost default accidentally.