Skip to content
Agentmart
Submit a tool

subagent-driven-development

Use when /virtual-team:implement --sdd is active — defines orchestration protocol for fresh subagent per task with two-stage review

Skill by ovargas

IndexedMIT★ 14
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/ovargas-subagent-driven-development

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when /virtual-team:implement --sdd is active — defines orchestration protocol for fresh subagent per task with two-stage review

Use cases: productivity, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/subagent-driven-development

What's inside

Skill name
subagent-driven-development
Description
Use when /virtual-team:implement --sdd is active — defines orchestration protocol for fresh subagent per task with two-stage review
License
MIT
Instructions
183 lines in SKILL.md · view on GitHub

Files (4)

  • SKILL.md
  • code-quality-reviewer-prompt.md
  • implementer-prompt.md
  • spec-reviewer-prompt.md

SKILL.md (first lines)

# Subagent-Driven Development

## Overview

The orchestrator dispatches, never implements. Fresh subagent per task. Two-stage review, every task.

When `/virtual-team:implement --sdd` is active, the main session becomes an **orchestrator** that never writes code itself. It dispatches implementer subagents, manages review cycles, and tracks progress.

**Use SDD when:** Plans with 5+ tasks, multi-file implementations, complex features.
**Don't use SDD when:** Small plans (< 3 tasks), quick fixes, single-file changes. Use inline `/virtual-team:implement` instead.

## Wave Analysis

Run wave analysis BEFORE entering the task dispatch loop. This groups tasks into parallel waves based on file dependencies. The analysis is always run when SDD is active — the fallback (all tasks in one wave = sequential) is identical to current behavior.

### 1. File Reference Extraction

For each task/step in the plan, identify:

- **Creates:** Files listed with `(create)` or `[create]` in the step's "File:" line
- **Modifies:** Files listed with `(modify)` or `[modify]` in the step's "File:" line
- **Reads/references:** Files mentioned in "Pattern:" lines or "Follow `file:line`" references

If a step has no explicit "File:" line, treat it as modifying unknown files — it becomes a **dependency barrier** (must run after everything before it, and everything after it depends on it).

### 2. Dependency Edge Rules

- Task B **depends on** Task A if: B reads or modifies a file that A creates or modifies
- **Read-read is NOT a dependency** — two tasks reading the same file can run in parallel
- **Create-create on the same file is a CONFLICT** — same file created twice, move one to the next wave
- **Modify-modify on the same file is a CONFLICT** — same file modified by two parallel tasks, move one to the next wave

### 3. Wave Grouping Algorithm

1. Build dependency edges from the file references
2. Topologically sort into waves:
   - **Wave 1:** tasks with no incoming dependency edges
   - **Wave 2:** tasks whose dependencies are ALL in Wave 1
   - **Wave N:** tasks whose dependencies are ALL in Waves 1 through N-1
3. **File conflict resolution:** If two tasks in the same wave both create or modify the same file, move the task with fewer other dependents to the next wave. Log: "T3 and T5 both modify `file.ext` — T5 moved to Wave N+1"
4. **Fallback:** If all tasks are sequentially dependent (each depends on the previous), produce N waves of 1 task each — behavior is identical to current sequential SDD

### 4. Presentation

Present the wave grouping to the user before dispatching:

```
## Wave Analysis

**Tasks:** [N] total
**Waves:** [N] (speedup: [N]x vs sequential)

| Wave | Tasks | Dependencies |
|------|-------|-------------|
| 1 | T1, T2 | none (independent) |
| 2 | T3, T4, T5 | T3→T1, T4→T2, T5→T1+T2 |
| 3 | T6 | T3, T4, T5 |

**File conflicts resolved:** [none | list]

**Estimated subagent sessions:** [N tasks] implementers + [N tasks × 2] reviewers + 1 holistic review = [total] sessions
```

## Orchestration Protocol

### For each wave (from wave analysis):

**Within a wave — dispatch all tasks in parallel:**

For each task in the current wave, simultaneously execute steps 1-4 using multiple Agent tool calls in a single message:

#### 1. Extract Task

Pull full task text from the plan. Include the step description, file references, pattern references, and what-to-do instructions. **Never tell the subagent to "read the plan file"** — provide everything it needs in the prompt.

#### 2. Build Scene-Setting Context

Every subagent starts fresh. It has no memory of previous tasks. Provide:
- Tasks completed so far and their outcomes (all previous waves)
- Files created or modified by previous waves
- Verification results from previous waves
- Where this task fits in the overall plan

For tasks in Wave 2+, the `{scene_setting}` in the implementer prompt should include:
```
**Previously completed (Waves 1-N):**
- Wave 1: [task names] — files created/modified: [list]
- Wave 2: [task names] — files created/modified: [list]
- All previous wave tasks passed spec and quality reviews.
- [Any issues found and resolved during reviews]
```

#### 3. Select Model

Use the model selection table below. When in doubt, use Sonnet.

#### 4. Dispatch Implementer Subagent

Use the implementer prompt template from `implementer-prompt.md`. Fill in:
- `{scene_setting}` — context from step 2
- `{task_text}` — full task text from step 1
- `{domain_skill_instruction}` — the relevant Layer 1 domain skill for this task

All implementers in the wave run simultaneously. Wait for all to return.

**Parallel dispatch cap:** Maximum 3 simultaneous implementer subagents per wave. If a wave has more than 3 tasks, split into sub-waves of 3.

**After all implementers in the wave return:**

For each task in the wave (sequentially — reviews don't parallelize across tasks):

#### 5. Handle Implementer Status

- **DONE** → Proceed to spec review (step 6)
- **DONE_WITH_CONCERNS** → Read concerns. If they're minor, proceed to review. If they indicate a problem, address before reviewing.
- **NEEDS_CONTEXT** → Provide the missing context and re-dispatch the implementer.
- **BLOCKED** → Assess root cause:
  - Context problem → Re-dispatch with more context
  - Reasoning problem → Upgrade model (e.g., Sonnet → Opus) and re-dispatch

From ovargas/virtual-team, MIT.

More from ovargas/virtual-team

Signals

Stars
14
Forks
1
Open issues
0
Last commit (this folder)
May 12, 2026 (5 months ago)
Last release
Oct 8, 2026 (20 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from ovargas

Cite this page

subagent-driven-development skill. Agent Mart. https://agentmart.dev/skills/ovargas-subagent-driven-development (last updated 2026-10-24)