Usage Examples

Real-world scenarios demonstrating effective use of the Spec-Driven Development plugin for various project types and complexity levels.

Examples

Simple Feature Implementation

Scenario: Adding a basic user profile feature to an existing application.

# Step 1: Create draft task
/sdd:add-task "Add user profile view and edit functionality with name, email, and avatar"

# Step 2: Plan — research, analyze, decompose, parallelize, verify
/sdd:plan @.specs/tasks/draft/add-user-profile.feature.md

# Step 3: Review specification (optional but recommended)
# Edit .specs/tasks/todo/add-user-profile.feature.md if needed
# Re-run planning for only affected sections:
/sdd:plan @.specs/tasks/todo/add-user-profile.feature.md --refine

# Step 4: Implement
/sdd:implement @.specs/tasks/todo/add-user-profile.feature.md

# Step 5: Commit and create PR
/git:commit
/git:create-pr

What happens during /sdd:plan:

  1. researcher agent gathers relevant resources and creates a skill file

  2. code-explorer agent identifies affected files and integration points

  3. business-analyst agent refines description and creates acceptance criteria

  4. software-architect agent synthesizes architecture overview

  5. tech-lead agent decomposes into implementation steps with risks

  6. team-lead agent parallelizes steps for efficient execution

  7. qa-engineer agent defines verification rubrics for each step

  8. Task file moved from draft/ to todo/

What happens during /sdd:implement:

  1. Task moved from todo/ to in-progress/

  2. Each step executed by sdd:developer agent

  3. Critical steps verified by judge agents (panel of 2 for critical artifacts)

  4. Definition of Done items verified

  5. Task moved from in-progress/ to done/


Quick Fix with Minimal Planning

Scenario: A simple bug fix where full analysis is overkill.

The --fast flag sets --target-quality 3.0 --max-iterations 1 --included-stages business analysis,decomposition,verifications, skipping research, codebase analysis, architecture synthesis, and parallelization.


Complex Feature with High Quality Gates

Scenario: Implementing a multi-tenant billing system with Stripe integration.

Expected planning flow with human-in-the-loop:

After reviewing and refining the specification:


Iterative Specification Refinement

Scenario: The generated specification needs corrections after review.

The --refine flag uses git diff to detect which sections were modified and only re-runs stages from the earliest changed section onward (top-to-bottom propagation).


Resuming Interrupted Implementation

Scenario: Implementation was interrupted mid-way and needs to continue.


Manual Fix with Re-verification

Scenario: After implementation, you manually fix a file and want to re-verify.


Task Dependencies

Scenario: Multiple related tasks that should be implemented in order.


Idea Generation Before Task Creation

Scenario: Exploring approaches before committing to a task.


Skipping Specific Planning Stages

Scenario: You already know the technology and don't need research.


Different Quality Thresholds

Scenario: Balancing speed vs quality for different types of work.


Integration with Other Plugins

Full Feature Cycle with Git

Research-Heavy Features


Best Practices Summary

When to Use Full SDD Workflow

  • New features with unclear requirements

  • Complex integrations with multiple systems

  • Features affecting multiple parts of codebase

  • Public APIs or features with external consumers

  • Refactoring with high regression risk

When to Use Abbreviated Workflow

  • Simple bug fixes: use --fast for planning, --skip-judges for implementation

  • Well-understood features: use --skip research if tech stack is familiar

  • Quick prototypes: use --one-shot for minimal planning

Common Patterns

  1. Brainstorm before task creation — Use /sdd:brainstorm for vague requirements, /sdd:create-ideas for quick diverse options

  2. Review specifications — Edit the task file and use --refine to propagate changes

  3. Decompose large tasks — Create multiple tasks with dependencies using /sdd:add-task

  4. Use human-in-the-loop for critical decisions — Architecture and decomposition phases benefit most from human review

  5. Continue interrupted work — Use --continue to resume implementation, --refine after manual fixes

Anti-Patterns to Avoid

  1. Skipping specification review for complex features

  2. Ignoring high-risk task warnings in decomposition

  3. Using --skip-judges for production-critical code

  4. Creating tasks that are too large — decompose into smaller dependent tasks

  5. Not using --refine after editing specifications (re-running full plan is wasteful)

Last updated