Usage Examples

Real-world scenarios demonstrating effective use of the Subagent-Driven Development plugin.

Examples

Sequential Plan Execution

Scenario: You have an implementation plan for a user authentication feature with 4 dependent tasks.

# Start SADD with the plan
> I have a plan at specs/auth/plan.md with these tasks:
  1. Create user model and database migrations
  2. Implement registration endpoint
  3. Implement login endpoint with JWT
  4. Add password reset flow
  Please use SADD skill to implement it sequentially.

Expected Flow:

  1. SADD loads the plan and creates TodoWrite

  2. Dispatches subagent for Task 1 (user model)

  3. Subagent reports: "Created User model, migrations, 3/3 tests passing"

  4. Code reviewer validates: "Strengths: Good schema design. No issues."

  5. Task 1 marked complete, proceeds to Task 2

  6. Repeats for all tasks with review between each

Sample Code Reviewer Output:

Parallel Test Failure Investigation

Scenario: After a major refactoring, 6 tests fail across 3 independent test files.

Expected Flow:

  1. SADD identifies 3 independent domains

  2. Dispatches 3 agents in parallel:

    • Agent 1: "Fix auth.test.ts - token validation timing issues"

    • Agent 2: "Fix stripe.test.ts - webhook signature verification"

    • Agent 3: "Fix email.test.ts - template rendering"

  3. All agents work concurrently

  4. Results integrated and verified

Agent Reports:

Batch Execution with Checkpoints

Scenario: Large refactoring plan with 9 tasks, executed in batches of 3.

Expected Flow:

Microservices Feature Rollout

Scenario: Same feature needs implementation across 3 independent microservices.

Expected Flow:

  1. SADD dispatches 3 agents in parallel

  2. Each agent works in its service directory

  3. No conflicts since services are separate

  4. Final integration verifies all services

Agent Prompts (generated by SADD):

Results:

Complex Feature with SDD Integration

Scenario: Building a complete payment processing feature using SDD for planning and SADD for execution.

Generated Plan (specs/payments/plan.md):

Execution Flow:

Handling Subagent Failures

Scenario: A subagent fails to complete its task due to unclear requirements.

Task Failure:

Resolution:

Production Bug Investigation

Scenario: Three unrelated production bugs reported simultaneously.

Agent Dispatch:

Results:

Integration with Other Plugins

With Reflexion

With Code Review

With SDD (Spec-Driven Development)

Last updated