Implementation Workflow Generator
Analyze Product Requirements Documents (PRDs) and feature specifications to generate comprehensive, step-by-step implementation workflows with expert guidance, dependency mapping, and automated task orchestration.
When to use
- Planning feature implementation from PRDs
- Creating development roadmaps
- Breaking down complex features into tasks
- Generating sprint plans
- Coordinating multi-team implementation efforts
Instructions
Usage
/sc:workflow [prd-file|feature-description] [--persona expert] [--c7] [--sequential] [--strategy systematic|agile|mvp] [--output roadmap|tasks|detailed]
Arguments
prd-file|feature-description - Path to PRD file or direct feature description
--persona - Force specific expert persona (architect, frontend, backend, security, devops, etc.)
--strategy - Workflow strategy (systematic, agile, mvp)
--output - Output format (roadmap, tasks, detailed)
--estimate - Include time and complexity estimates
--dependencies - Map external dependencies and integrations
--risks - Include risk assessment and mitigation strategies
--parallel - Identify parallelizable work streams
--milestones - Create milestone-based project phases
MCP Integration Flags
--c7 / --context7 - Enable Context7 for framework patterns and best practices
--sequential - Enable Sequential thinking for complex multi-step analysis
--magic - Enable Magic for UI component workflow planning
--all-mcp - Enable all MCP servers for comprehensive workflow generation
Workflow Strategies
Systematic Strategy (Default)
- Requirements Analysis - Deep dive into PRD structure and acceptance criteria
- Architecture Planning - System design and component architecture
- Dependency Mapping - Identify all internal and external dependencies
- Implementation Phases - Sequential phases with clear deliverables
- Testing Strategy - Comprehensive testing approach at each phase
- Deployment Planning - Production rollout and monitoring strategy
Agile Strategy
- Epic Breakdown - Convert PRD into user stories and epics
- Sprint Planning - Organize work into iterative sprints
- MVP Definition - Identify minimum viable product scope
- Iterative Development - Plan for continuous delivery and feedback
- Stakeholder Engagement - Regular review and adjustment cycles
- Retrospective Planning - Built-in improvement and learning cycles
MVP Strategy
- Core Feature Identification - Strip down to essential functionality
- Rapid Prototyping - Focus on quick validation and feedback
- Technical Debt Planning - Identify shortcuts and future improvements
- Validation Metrics - Define success criteria and measurement
- Scaling Roadmap - Plan for post-MVP feature expansion
- User Feedback Integration - Structured approach to user input
Expert Persona Auto-Activation
Frontend Workflow (--persona frontend or auto-detected)
- UI/UX Analysis - Design system integration and component planning
- State Management - Data flow and state architecture
- Performance Optimization - Bundle optimization and lazy loading
- Accessibility Compliance - WCAG guidelines and inclusive design
- Browser Compatibility - Cross-browser testing strategy
- Mobile Responsiveness - Responsive design implementation plan
Backend Workflow (--persona backend or auto-detected)
- API Design - RESTful/GraphQL endpoint planning
- Database Schema - Data modeling and migration strategy
- Security Implementation - Authentication, authorization, and data protection
- Performance Scaling - Caching, optimization, and load handling
- Service Integration - Third-party APIs and microservices
- Monitoring & Logging - Observability and debugging infrastructure
Architecture Workflow (--persona architect or auto-detected)
- System Design - High-level architecture and service boundaries
- Technology Stack - Framework and tool selection rationale
- Scalability Planning - Growth considerations and bottleneck prevention
- Security Architecture - Comprehensive security strategy
- Integration Patterns - Service communication and data flow
- DevOps Strategy - CI/CD pipeline and infrastructure as code
Security Workflow (--persona security or auto-detected)
- Threat Modeling - Security risk assessment and attack vectors
- Data Protection - Encryption, privacy, and compliance requirements
- Authentication Strategy - User identity and access management
- Security Testing - Penetration testing and vulnerability assessment
- Compliance Validation - Regulatory requirements (GDPR, HIPAA, etc.)
- Incident Response - Security monitoring and breach protocols
DevOps Workflow (--persona devops or auto-detected)
- Infrastructure Planning - Cloud architecture and resource allocation
- CI/CD Pipeline - Automated testing, building, and deployment
- Environment Management - Development, staging, and production environments
- Monitoring Strategy - Application and infrastructure monitoring
- Backup & Recovery - Data protection and disaster recovery planning
- Performance Monitoring - APM tools and performance optimization
Output Formats
Roadmap Format (--output roadmap)
# Feature Implementation Roadmap
## Phase 1: Foundation (Week 1-2)
- [ ] Architecture design and technology selection
- [ ] Database schema design and setup
- [ ] Basic project structure and CI/CD pipeline
## Phase 2: Core Implementation (Week 3-6)
- [ ] API development and authentication
- [ ] Frontend components and user interface
- [ ] Integration testing and security validation
## Phase 3: Enhancement & Launch (Week 7-8)
- [ ] Performance optimization and load testing
- [ ] User acceptance testing and bug fixes
- [ ] Production deployment and monitoring setup
Tasks Format (--output tasks)
# Implementation Tasks
## Epic: User Authentication System
### Story: User Registration
- [ ] Design registration form UI components
- [ ] Implement backend registration API
- [ ] Add email verification workflow
- [ ] Create user onboarding flow
### Story: User Login
- [ ] Design login interface
- [ ] Implement JWT authentication
- [ ] Add password reset functionality
- [ ] Set up session management
Detailed Format (--output detailed)
# Detailed Implementation Workflow
## Task: Implement User Registration API
**Persona**: Backend Developer
**Estimated Time**: 8 hours
**Dependencies**: Database schema, authentication service
**MCP Context**: Express.js patterns, security best practices
### Implementation Steps:
1. **Setup API endpoint** (1 hour)
- Create POST /api/register route
- Add input validation middleware
2. **Database integration** (2 hours)
- Implement user model
- Add password hashing
3. **Security measures** (3 hours)
- Rate limiting implementation
- Input sanitization
- SQL injection prevention
4. **Testing** (2 hours)
- Unit tests for registration logic
- Integration tests for API endpoint
### Acceptance Criteria:
- [ ] User can register with email and password
- [ ] Passwords are properly hashed
- [ ] Email validation is enforced
- [ ] Rate limiting prevents abuse
Advanced Features
Dependency Analysis
- Internal Dependencies - Identify coupling between components and features
- External Dependencies - Map third-party services and APIs
- Technical Dependencies - Framework versions, database requirements
- Team Dependencies - Cross-team coordination requirements
- Infrastructure Dependencies - Cloud services, deployment requirements
Risk Assessment & Mitigation
- Technical Risks - Complexity, performance, and scalability concerns
- Timeline Risks - Dependency bottlenecks and resource constraints
- Security Risks - Data protection and compliance vulnerabilities
- Business Risks - Market changes and requirement evolution
- Mitigation Strategies - Fallback plans and alternative approaches
Parallel Work Stream Identification
- Independent Components - Features that can be developed simultaneously
- Shared Dependencies - Common components requiring coordination
- Critical Path Analysis - Bottlenecks that block other work
- Resource Allocation - Team capacity and skill distribution
- Communication Protocols - Coordination between parallel streams
Integration with SuperClaude Ecosystem
TodoWrite Integration
- Automatically creates session tasks for immediate next steps
- Provides progress tracking throughout workflow execution
- Links workflow phases to actionable development tasks
Task Command Integration
- Converts workflow into hierarchical project tasks (
/sc:task)
- Enables cross-session persistence and progress tracking
- Supports complex orchestration with
/sc:spawn
Implementation Command Integration
- Seamlessly connects to
/sc:implement for feature development
- Provides context-aware implementation guidance
- Auto-activates appropriate personas for each workflow phase
Analysis Command Integration
- Leverages
/sc:analyze for codebase assessment
- Integrates existing code patterns into workflow planning
- Identifies refactoring opportunities and technical debt
Usage Examples
Generate Workflow from PRD File
/sc:workflow docs/feature-100-prd.md --strategy systematic --c7 --sequential --estimate
Create Frontend-Focused Workflow
/sc:workflow "User dashboard with real-time analytics" --persona frontend --magic --output detailed
MVP Planning with Risk Assessment
/sc:workflow user-authentication-system --strategy mvp --risks --parallel --milestones
Backend API Workflow with Dependencies
/sc:workflow payment-processing-api --persona backend --dependencies --c7 --output tasks
Full-Stack Feature Workflow
/sc:workflow social-media-integration --all-mcp --sequential --parallel --estimate --output roadmap
Quality Gates and Validation
Workflow Completeness Check
- Requirements Coverage - Ensure all PRD requirements are addressed
- Acceptance Criteria - Validate testable success criteria
- Technical Feasibility - Assess implementation complexity and risks
- Resource Alignment - Match workflow to team capabilities and timeline
Best Practices Validation
- Architecture Patterns - Ensure adherence to established patterns
- Security Standards - Validate security considerations at each phase
- Performance Requirements - Include performance targets and monitoring
- Maintainability - Plan for long-term code maintenance and updates
Stakeholder Alignment
- Business Requirements - Ensure business value is clearly defined
- Technical Requirements - Validate technical specifications and constraints
- Timeline Expectations - Realistic estimation and milestone planning
- Success Metrics - Define measurable outcomes and KPIs
Performance Optimization
Workflow Generation Speed
- PRD Parsing - Efficient document analysis and requirement extraction
- Pattern Recognition - Rapid identification of common implementation patterns
- Template Application - Reusable workflow templates for common scenarios
- Incremental Generation - Progressive workflow refinement and optimization
Context Management
- Memory Efficiency - Optimal context usage for large PRDs
- Caching Strategy - Reuse analysis results across similar workflows
- Progressive Loading - Load workflow details on-demand
- Compression - Efficient storage and retrieval of workflow data
Success Metrics
Workflow Quality
- Implementation Success Rate - >90% successful feature completion following workflows
- Timeline Accuracy - <20% variance from estimated timelines
- Requirement Coverage - 100% PRD requirement mapping to workflow tasks
- Stakeholder Satisfaction - >85% satisfaction with workflow clarity and completeness
Performance Targets
- Workflow Generation - <30 seconds for standard PRDs
- Dependency Analysis - <60 seconds for complex systems
- Risk Assessment - <45 seconds for comprehensive evaluation
- Context Integration - <10 seconds for MCP server coordination
Claude Code Integration
- Multi-Tool Orchestration - Coordinates Read, Write, Edit, Glob, Grep for comprehensive analysis
- Progressive Task Creation - Uses TodoWrite for immediate next steps and Task for long-term planning
- MCP Server Coordination - Intelligent routing to Context7, Sequential, and Magic based on workflow needs
- Cross-Command Integration - Seamless handoff to implement, analyze, design, and other SuperClaude commands
- Evidence-Based Planning - Maintains audit trail of decisions and rationale throughout workflow generation
1---2name: sc-workflow3description: Generate structured implementation workflows from PRDs and feature requirements with expert guidance. Use when planning feature implementation, breaking down PRDs, or creating development roadmaps.4---56# Implementation Workflow Generator78Analyze Product Requirements Documents (PRDs) and feature specifications to generate comprehensive, step-by-step implementation workflows with expert guidance, dependency mapping, and automated task orchestration.910## When to use1112- Planning feature implementation from PRDs13- Creating development roadmaps14- Breaking down complex features into tasks15- Generating sprint plans16- Coordinating multi-team implementation efforts1718## Instructions1920### Usage2122```23/sc:workflow [prd-file|feature-description] [--persona expert] [--c7] [--sequential] [--strategy systematic|agile|mvp] [--output roadmap|tasks|detailed]24```2526### Arguments2728- `prd-file|feature-description` - Path to PRD file or direct feature description29- `--persona` - Force specific expert persona (architect, frontend, backend, security, devops, etc.)30- `--strategy` - Workflow strategy (systematic, agile, mvp)31- `--output` - Output format (roadmap, tasks, detailed)32- `--estimate` - Include time and complexity estimates33- `--dependencies` - Map external dependencies and integrations34- `--risks` - Include risk assessment and mitigation strategies35- `--parallel` - Identify parallelizable work streams36- `--milestones` - Create milestone-based project phases3738### MCP Integration Flags3940- `--c7` / `--context7` - Enable Context7 for framework patterns and best practices41- `--sequential` - Enable Sequential thinking for complex multi-step analysis42- `--magic` - Enable Magic for UI component workflow planning43- `--all-mcp` - Enable all MCP servers for comprehensive workflow generation4445### Workflow Strategies4647#### Systematic Strategy (Default)48491. **Requirements Analysis** - Deep dive into PRD structure and acceptance criteria502. **Architecture Planning** - System design and component architecture513. **Dependency Mapping** - Identify all internal and external dependencies524. **Implementation Phases** - Sequential phases with clear deliverables535. **Testing Strategy** - Comprehensive testing approach at each phase546. **Deployment Planning** - Production rollout and monitoring strategy5556#### Agile Strategy57581. **Epic Breakdown** - Convert PRD into user stories and epics592. **Sprint Planning** - Organize work into iterative sprints603. **MVP Definition** - Identify minimum viable product scope614. **Iterative Development** - Plan for continuous delivery and feedback625. **Stakeholder Engagement** - Regular review and adjustment cycles636. **Retrospective Planning** - Built-in improvement and learning cycles6465#### MVP Strategy66671. **Core Feature Identification** - Strip down to essential functionality682. **Rapid Prototyping** - Focus on quick validation and feedback693. **Technical Debt Planning** - Identify shortcuts and future improvements704. **Validation Metrics** - Define success criteria and measurement715. **Scaling Roadmap** - Plan for post-MVP feature expansion726. **User Feedback Integration** - Structured approach to user input7374### Expert Persona Auto-Activation7576#### Frontend Workflow (`--persona frontend` or auto-detected)7778- **UI/UX Analysis** - Design system integration and component planning79- **State Management** - Data flow and state architecture80- **Performance Optimization** - Bundle optimization and lazy loading81- **Accessibility Compliance** - WCAG guidelines and inclusive design82- **Browser Compatibility** - Cross-browser testing strategy83- **Mobile Responsiveness** - Responsive design implementation plan8485#### Backend Workflow (`--persona backend` or auto-detected)8687- **API Design** - RESTful/GraphQL endpoint planning88- **Database Schema** - Data modeling and migration strategy89- **Security Implementation** - Authentication, authorization, and data protection90- **Performance Scaling** - Caching, optimization, and load handling91- **Service Integration** - Third-party APIs and microservices92- **Monitoring & Logging** - Observability and debugging infrastructure9394#### Architecture Workflow (`--persona architect` or auto-detected)9596- **System Design** - High-level architecture and service boundaries97- **Technology Stack** - Framework and tool selection rationale98- **Scalability Planning** - Growth considerations and bottleneck prevention99- **Security Architecture** - Comprehensive security strategy100- **Integration Patterns** - Service communication and data flow101- **DevOps Strategy** - CI/CD pipeline and infrastructure as code102103#### Security Workflow (`--persona security` or auto-detected)104105- **Threat Modeling** - Security risk assessment and attack vectors106- **Data Protection** - Encryption, privacy, and compliance requirements107- **Authentication Strategy** - User identity and access management108- **Security Testing** - Penetration testing and vulnerability assessment109- **Compliance Validation** - Regulatory requirements (GDPR, HIPAA, etc.)110- **Incident Response** - Security monitoring and breach protocols111112#### DevOps Workflow (`--persona devops` or auto-detected)113114- **Infrastructure Planning** - Cloud architecture and resource allocation115- **CI/CD Pipeline** - Automated testing, building, and deployment116- **Environment Management** - Development, staging, and production environments117- **Monitoring Strategy** - Application and infrastructure monitoring118- **Backup & Recovery** - Data protection and disaster recovery planning119- **Performance Monitoring** - APM tools and performance optimization120121### Output Formats122123#### Roadmap Format (`--output roadmap`)124125```126# Feature Implementation Roadmap127## Phase 1: Foundation (Week 1-2)128- [ ] Architecture design and technology selection129- [ ] Database schema design and setup130- [ ] Basic project structure and CI/CD pipeline131132## Phase 2: Core Implementation (Week 3-6)133- [ ] API development and authentication134- [ ] Frontend components and user interface135- [ ] Integration testing and security validation136137## Phase 3: Enhancement & Launch (Week 7-8)138- [ ] Performance optimization and load testing139- [ ] User acceptance testing and bug fixes140- [ ] Production deployment and monitoring setup141```142143#### Tasks Format (`--output tasks`)144145```146# Implementation Tasks147## Epic: User Authentication System148### Story: User Registration149- [ ] Design registration form UI components150- [ ] Implement backend registration API151- [ ] Add email verification workflow152- [ ] Create user onboarding flow153154### Story: User Login155- [ ] Design login interface156- [ ] Implement JWT authentication157- [ ] Add password reset functionality158- [ ] Set up session management159```160161#### Detailed Format (`--output detailed`)162163```164# Detailed Implementation Workflow165## Task: Implement User Registration API166**Persona**: Backend Developer167**Estimated Time**: 8 hours168**Dependencies**: Database schema, authentication service169**MCP Context**: Express.js patterns, security best practices170171### Implementation Steps:1721. **Setup API endpoint** (1 hour)173 - Create POST /api/register route174 - Add input validation middleware1751762. **Database integration** (2 hours)177 - Implement user model178 - Add password hashing1791803. **Security measures** (3 hours)181 - Rate limiting implementation182 - Input sanitization183 - SQL injection prevention1841854. **Testing** (2 hours)186 - Unit tests for registration logic187 - Integration tests for API endpoint188189### Acceptance Criteria:190- [ ] User can register with email and password191- [ ] Passwords are properly hashed192- [ ] Email validation is enforced193- [ ] Rate limiting prevents abuse194```195196### Advanced Features197198#### Dependency Analysis199200- **Internal Dependencies** - Identify coupling between components and features201- **External Dependencies** - Map third-party services and APIs202- **Technical Dependencies** - Framework versions, database requirements203- **Team Dependencies** - Cross-team coordination requirements204- **Infrastructure Dependencies** - Cloud services, deployment requirements205206#### Risk Assessment & Mitigation207208- **Technical Risks** - Complexity, performance, and scalability concerns209- **Timeline Risks** - Dependency bottlenecks and resource constraints210- **Security Risks** - Data protection and compliance vulnerabilities211- **Business Risks** - Market changes and requirement evolution212- **Mitigation Strategies** - Fallback plans and alternative approaches213214#### Parallel Work Stream Identification215216- **Independent Components** - Features that can be developed simultaneously217- **Shared Dependencies** - Common components requiring coordination218- **Critical Path Analysis** - Bottlenecks that block other work219- **Resource Allocation** - Team capacity and skill distribution220- **Communication Protocols** - Coordination between parallel streams221222### Integration with SuperClaude Ecosystem223224#### TodoWrite Integration225226- Automatically creates session tasks for immediate next steps227- Provides progress tracking throughout workflow execution228- Links workflow phases to actionable development tasks229230#### Task Command Integration231232- Converts workflow into hierarchical project tasks (`/sc:task`)233- Enables cross-session persistence and progress tracking234- Supports complex orchestration with `/sc:spawn`235236#### Implementation Command Integration237238- Seamlessly connects to `/sc:implement` for feature development239- Provides context-aware implementation guidance240- Auto-activates appropriate personas for each workflow phase241242#### Analysis Command Integration243244- Leverages `/sc:analyze` for codebase assessment245- Integrates existing code patterns into workflow planning246- Identifies refactoring opportunities and technical debt247248### Usage Examples249250#### Generate Workflow from PRD File251252```253/sc:workflow docs/feature-100-prd.md --strategy systematic --c7 --sequential --estimate254```255256#### Create Frontend-Focused Workflow257258```259/sc:workflow "User dashboard with real-time analytics" --persona frontend --magic --output detailed260```261262#### MVP Planning with Risk Assessment263264```265/sc:workflow user-authentication-system --strategy mvp --risks --parallel --milestones266```267268#### Backend API Workflow with Dependencies269270```271/sc:workflow payment-processing-api --persona backend --dependencies --c7 --output tasks272```273274#### Full-Stack Feature Workflow275276```277/sc:workflow social-media-integration --all-mcp --sequential --parallel --estimate --output roadmap278```279280### Quality Gates and Validation281282#### Workflow Completeness Check283284- **Requirements Coverage** - Ensure all PRD requirements are addressed285- **Acceptance Criteria** - Validate testable success criteria286- **Technical Feasibility** - Assess implementation complexity and risks287- **Resource Alignment** - Match workflow to team capabilities and timeline288289#### Best Practices Validation290291- **Architecture Patterns** - Ensure adherence to established patterns292- **Security Standards** - Validate security considerations at each phase293- **Performance Requirements** - Include performance targets and monitoring294- **Maintainability** - Plan for long-term code maintenance and updates295296#### Stakeholder Alignment297298- **Business Requirements** - Ensure business value is clearly defined299- **Technical Requirements** - Validate technical specifications and constraints300- **Timeline Expectations** - Realistic estimation and milestone planning301- **Success Metrics** - Define measurable outcomes and KPIs302303### Performance Optimization304305#### Workflow Generation Speed306307- **PRD Parsing** - Efficient document analysis and requirement extraction308- **Pattern Recognition** - Rapid identification of common implementation patterns309- **Template Application** - Reusable workflow templates for common scenarios310- **Incremental Generation** - Progressive workflow refinement and optimization311312#### Context Management313314- **Memory Efficiency** - Optimal context usage for large PRDs315- **Caching Strategy** - Reuse analysis results across similar workflows316- **Progressive Loading** - Load workflow details on-demand317- **Compression** - Efficient storage and retrieval of workflow data318319### Success Metrics320321#### Workflow Quality322323- **Implementation Success Rate** - >90% successful feature completion following workflows324- **Timeline Accuracy** - <20% variance from estimated timelines325- **Requirement Coverage** - 100% PRD requirement mapping to workflow tasks326- **Stakeholder Satisfaction** - >85% satisfaction with workflow clarity and completeness327328#### Performance Targets329330- **Workflow Generation** - <30 seconds for standard PRDs331- **Dependency Analysis** - <60 seconds for complex systems332- **Risk Assessment** - <45 seconds for comprehensive evaluation333- **Context Integration** - <10 seconds for MCP server coordination334335### Claude Code Integration336337- **Multi-Tool Orchestration** - Coordinates Read, Write, Edit, Glob, Grep for comprehensive analysis338- **Progressive Task Creation** - Uses TodoWrite for immediate next steps and Task for long-term planning339- **MCP Server Coordination** - Intelligent routing to Context7, Sequential, and Magic based on workflow needs340- **Cross-Command Integration** - Seamless handoff to implement, analyze, design, and other SuperClaude commands341- **Evidence-Based Planning** - Maintains audit trail of decisions and rationale throughout workflow generation