一键导入
subagent-driven-development
Use when executing an implementation plan with independent tasks that can be delegated to subagents within the current session
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when executing an implementation plan with independent tasks that can be delegated to subagents within the current session
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when a structured PRD document is needed for the ralph loop — generates prd.json and progress.txt
Use when task scope exceeds one context window and decomposes into independent pass/fail stories with clean iteration boundaries
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work — merge, PR, or cleanup
Use when starting feature work that needs isolation from the current workspace or before executing plans that could leave the branch in a broken state
Use when a hard problem was just solved and the solution should be captured as a learning for future reference
Use when 3+ distinct occurrences suggest a skill should be updated with a new trigger, anti-pattern, or verification step
| name | subagent-driven-development |
| description | Use when executing an implementation plan with independent tasks that can be delegated to subagents within the current session |
| tags | ["process","execution","parallel","agents"] |
| triggers | ["parallel tasks in plan","independent implementation steps","delegate to agents","multiple files same pattern"] |
| chains_to | ["verification-before-completion","self-review"] |
| priority | core |
| gate | false |
When a plan has independent steps, delegate them to subagents. You orchestrate — subagents implement. Merge their work, verify the whole, then proceed.
executing-plans when you identify parallel opportunitiesFrom the plan, find steps that:
For each parallel task, create a clear brief:
Task: [What to implement]
Files: [Which files to create/modify]
Acceptance: [How to verify success]
Context: [Relevant code patterns, types, APIs to follow]
Constraints: [What NOT to do]
Each brief must be self-contained. The agent has no context from your conversation.
Use the Agent tool to launch subagents:
subagent_type: "general-purpose" for implementation tasksisolation: "worktree" when agents modify overlapping areas (rare — prefer non-overlapping splits)After all agents complete:
After merging:
Chain to verification-before-completion.
| Pattern | How to Split |
|---|---|
| Multiple independent components | One agent per component |
| Same change across many files | One agent per file group |
| Feature + tests | Same agent (tests verify the feature) |
| Frontend + backend | One agent each IF the API contract is defined |
| Anti-Pattern | Why It's Wrong |
|---|---|
| Parallelizing dependent work | Agents will produce inconsistent code |
| Agents editing the same file | Merge conflicts, lost work |
| Vague agent briefs | Garbage in, garbage out |
| No verification after merge | Agents don't know about each other's changes |
| Over-splitting simple work | Orchestration overhead exceeds time saved |
| Trusting agent output blindly | Review before merging. Agents make mistakes. |
Use isolation: "worktree" when:
For most subagent work, direct execution without worktrees is simpler.
REQUIRED: syntaxninja-dojo:verification-before-completion (after all agents complete and work is merged) REQUIRED: syntaxninja-dojo:self-review (after verification passes)