Subagent dev

From earchibald/vsc-superpowers · View interactive version

Subagent dev is an AI agent skill from the GitHub repository earchibald/vsc-superpowers. Use when executing implementation plans with independent tasks in the current session

How to use this skill

Skill file

Skill: subagent-driven-development


name: subagent-driven-development

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


Subagent-Driven Development

Execute plan by dispatching fresh subagent per task, with two-stage review after each: spec compliance review first, then code quality review.

Core principle: Fresh subagent per task + two-stage review (spec then quality) = high quality, fast iteration

When to Use

digraph when_to_use {
    "Have implementation plan?" [shape=diamond];
    "Tasks mostly independent?" [shape=diamond];
    "Stay in this session?" [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?" -> "Stay in this session?" [label="yes"];
    "Tasks mostly independent?" -> "Manual execution or brainstorm first" [label="no - tightly coupled"];
    "Stay in this session?" -> "subagent-driven-development" [label="yes"];
    "Stay in this session?" -> "executing-plans" [label="no - parallel session"];
}

vs. Executing Plans (parallel session):

The Process

Read plan, extract all tasks with full text, note context, create TodoWrite with all tasks, then dispatch implementer subagent per task with two-stage review:

  1. Spec compliance review - Does code match requirements?
  2. Code quality review - Is implementation well-built?

For each task:

Advantages

vs. Manual execution:

vs. Executing Plans:

Efficiency gains:

Quality gates:

Red Flags

Never:

If subagent asks questions:

If reviewer finds issues:

If subagent fails task:

Integration

Required workflow skills:

Subagents should use:

Alternative workflow:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.