一键导入
subagent-driven-development
Use when executing implementation plans with independent tasks in the current Pi session using fresh subagents and review loops
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when executing implementation plans with independent tasks in the current Pi session using fresh subagents and review loops
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when the user wants to create a new pull request, update an existing PR's body, open a draft PR, or preview a PR body locally before pushing.
Create a new Pi task folder for a specific task or feature development. Use when the user wants to start a new task, plan a feature, or asks to create a task file.
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
Use when you have a written implementation plan to execute with review checkpoints
Use when you have an approved design or requirements for a multi-step task, before touching code
Use when you notice something to fix later while working on another task - captures context without breaking flow (~10 seconds)
| name | subagent-driven-development |
| description | Use when executing implementation plans with independent tasks in the current Pi session using fresh subagents and review loops |
Execute an existing 3-PLAN.md by dispatching a fresh subagent for each task, then running two review loops after each task: spec compliance first, code quality second.
Announce at start: "I'm using the subagent-driven-development skill to implement this plan."
Core principle: fresh subagent per task + spec review + quality review = focused implementation with verification before progress.
Use this skill when:
3-PLAN.md implementation plan already exists.Use the Pi-adapted executing-plans skill instead when:
~/.pi/plans/... task folder is known, read 3-PLAN.md from that folder.3-PLAN.md is missing, stop and ask for the correct plan path.main or master before implementation. If you are, ask for explicit consent before editing, or ask whether to create/switch to a branch or worktree.Extract every task from the plan with its full text:
When task tools are available, prefer @tintinweb/pi-tasks. If unavailable, use generic Pi task tools. If no task tools are available, use the plan's Markdown checkboxes as the source of truth.
For every task, preserve enough context that implementer subagents do not need to read the whole plan file. The coordinator should provide task text, relevant plan context, dependency notes, and exact verification commands.
Dispatch only one implementation subagent at a time unless the plan explicitly states that tasks are independent and safe to run in parallel. Sequential dispatch is the default because most implementation tasks touch shared files.
Use implementer-prompt.md as the prompt template. Fill in:
The implementer must:
DONE, DONE_WITH_CONCERNS, NEEDS_CONTEXT, or BLOCKED.DONE: Proceed to spec compliance review.
DONE_WITH_CONCERNS: Read the concerns before proceeding. If they affect correctness or scope, address them before review. If they are observations, note them and continue to review.
NEEDS_CONTEXT: Provide the missing context and re-dispatch. Do not tell the implementer to guess.
BLOCKED: Assess the blocker:
Never ignore an escalation or force the same retry without changing context, scope, or model.
After implementation, dispatch a fresh reviewer using spec-reviewer-prompt.md.
The spec reviewer must inspect the actual code and compare it against the task requirements. They should look for:
If the reviewer finds issues, send the issue list back to an implementer subagent for fixes, then run spec compliance review again. Do not proceed to code quality review until spec compliance passes.
Only after spec compliance passes, dispatch a fresh reviewer using code-quality-reviewer-prompt.md.
The code quality reviewer should inspect the task diff and evaluate maintainability, tests, decomposition, naming, integration risk, and fit with repository patterns.
If the reviewer finds critical or important issues, send them to an implementer subagent for fixes, then run code quality review again. Minor issues may be fixed or explicitly deferred, but do not move on while important review issues remain open.
Mark the task complete only after:
DONE or acceptable DONE_WITH_CONCERNSUpdate status using @tintinweb/pi-tasks if available, otherwise generic Pi task tools, otherwise the Markdown checkbox in 3-PLAN.md.
Repeat the implementation and review loop for each remaining task in dependency order.
After each task, keep a brief coordinator log:
After all tasks are complete:
Use the least powerful model that can handle each role safely.
Escalate model capability when a subagent reports uncertainty, repeated failure, or broad reasoning needs.
skills/subagent-driven-development/implementer-prompt.md — implementer subagent promptskills/subagent-driven-development/spec-reviewer-prompt.md — spec compliance reviewer promptskills/subagent-driven-development/code-quality-reviewer-prompt.md — code quality reviewer promptResolve these paths relative to this skill directory when reading templates.
Never:
main or master without explicit user consent.If a subagent asks questions, answer clearly and provide additional context before work continues.
If a reviewer finds issues, send them to an implementer, then re-review. Do not skip the re-review.
If a subagent fails a task, dispatch a focused fix subagent with specific instructions or stop and ask the user for direction. Do not silently patch around the failure as coordinator unless the user asks you to switch to direct implementation.
When task tools are available, prefer @tintinweb/pi-tasks.
During execution:
@tintinweb/pi-tasks task tools when available to track statuses, dependencies, acceptance criteria, and verification evidence.@tintinweb/pi-tasks is unavailable, use any generic Pi task tools available in the session.3-PLAN.md and include status in coordinator reports.Do not require platform-specific task tools from other coding agents.