Usage Examples
Real-world scenarios demonstrating effective use of the Spec-Driven Development plugin for various project types and complexity levels.
Examples
New Project Setup
Scenario: You're starting a new TypeScript backend project and want to establish consistent development standards.
# Initialize project constitution
/sdd:00-setup Use NestJS with TypeScript, PostgreSQL database, follow Clean Architecture and SOLID principles, use Jest for testingExpected Flow:
Downloads constitution template to
specs/constitution.mdCreates spec, plan, and tasks templates in
specs/templates/Fills in project-specific principles:
Technology stack: NestJS, TypeScript, PostgreSQL
Architecture: Clean Architecture layers
Testing: Jest with >80% coverage requirement
Code style: SOLID principles
Generates sync impact report
Generated Constitution (excerpt):
Simple Feature Implementation
Scenario: Adding a basic user profile feature to an existing application.
Expected Specification (excerpt):
Generated Tasks (excerpt):
Complex Feature with Multiple Stakeholders
Scenario: Implementing a multi-tenant billing system with Stripe integration.
Expected Brainstorming Flow:
After Brainstorming:
Expected Architecture Options:
Generated Data Model:
Bug Fix with Root Cause Analysis
Scenario: Users report intermittent payment failures during checkout.
Expected Specification:
Generated Tasks:
Iterative Design with Architecture Changes
Scenario: Mid-project pivot requiring architecture changes.
Handling the Change:
Expected Plan Update:
Documentation-First Development
Scenario: Creating a public API that external developers will consume.
Expected Contract Output:
Documentation Command:
Expected Documentation:
Integration with Other Plugins
Full Feature Cycle with Quality Gates
Research-Heavy Features
Refactoring with SDD
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:
/sdd:01-specifythen direct implementationSmall enhancements: Skip
/sdd:02-planif architecture is clearDocumentation updates: Start at
/sdd:05-document
Common Patterns
Brainstorm before Specify: Use
/sdd:brainstormfor vague requirementsReview at Each Stage: Don't rush through plan reviews
Iterate on Architecture: It's cheaper to change plans than code
Keep Tasks Small: 1-2 day tasks are ideal
Document as You Go: Don't save all docs for the end
Anti-Patterns to Avoid
Skipping specification validation
Ignoring high-risk task warnings
Proceeding with unresolved clarifications
Not reviewing generated artifacts
Treating tasks as immutable after generation
Last updated