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:
SADD loads the plan and creates TodoWrite
Dispatches subagent for Task 1 (user model)
Subagent reports: "Created User model, migrations, 3/3 tests passing"
Code reviewer validates: "Strengths: Good schema design. No issues."
Task 1 marked complete, proceeds to Task 2
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:
SADD identifies 3 independent domains
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"
All agents work concurrently
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:
SADD dispatches 3 agents in parallel
Each agent works in its service directory
No conflicts since services are separate
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