Skip to content

Workflow Patterns ​

Common development workflows and how to implement them with Orchestre.

Feature Development Workflow ​

Standard Feature Flow ​

Implementation:

bash
# 1. Understand existing code
/orchestre:discover-context (MCP)

# 2. Plan the feature
/orchestre:orchestrate (MCP) "Add user notifications with email and in-app"

# 3. Implement
/orchestre:execute-task (MCP) "Create notification system"

# 4. Review code
/orchestre:review (MCP)

# 5. Document
/orchestre:document-feature (MCP) "Notification system architecture"

# 6. Deploy
/deploy-production

Parallel Feature Development ​

Implementation:

bash
# Setup parallel streams
/setup-parallel

# Distribute work
/distribute-tasks "Frontend: React UI, Backend: API endpoints, Mobile: React Native app"

# Coordinate progress
/coordinate-parallel

# Merge all work
/merge-work

# Final review
/review

Migration Workflow ​

Technology Migration ​

Implementation:

bash
# Analyze existing system
/orchestre:discover-context (MCP)
/orchestre:orchestrate (MCP) "Analyze current Express.js architecture"

# Plan migration
/orchestre:orchestrate (MCP) "Plan migration from Express to Next.js"

# Execute migration
/orchestre:execute-task (MCP) "Set up Next.js project structure"
/orchestre:execute-task (MCP) "Migrate authentication module"
/orchestre:execute-task (MCP) "Migrate API endpoints"

# Validate
/validate-implementation
/performance-check

Database Migration ​

bash
# Plan schema changes
/orchestre:orchestrate (MCP) "Plan database migration from MongoDB to PostgreSQL"

# Create migration scripts
/add-database-table "Users table with relationships"
/orchestre:execute-task (MCP) "Create data migration scripts"

# Test migration
/orchestre:execute-task (MCP) "Run migration on test database"
/validate-implementation

# Production migration
/orchestre:execute-task (MCP) "Execute production migration with rollback plan"

Bug Fix Workflow ​

Critical Bug Response ​

Implementation:

bash
# Investigate bug
/orchestre:orchestrate (MCP) "Investigate critical payment processing bug"

# Find root cause
/orchestre:execute-task (MCP) "Add debugging logs and reproduce issue"

# Implement fix
/orchestre:execute-task (MCP) "Fix race condition in payment webhook"

# Thorough testing
/review
/validate-implementation

# Deploy hotfix
/execute-task "Deploy hotfix to production"
/document-feature "Payment bug fix: race condition resolution"

Performance Optimization Workflow ​

Systematic Optimization ​

Implementation:

bash
# Baseline measurement
/performance-check

# Analyze results
/orchestrate "Analyze performance bottlenecks"

# Implement optimizations
/optimize-performance "Database query optimization"
/add-caching-layer "Redis caching for frequently accessed data"

# Verify improvements
/performance-check

# Document changes
/document-feature "Performance optimizations: 50% reduction in API response time"

Security Hardening Workflow ​

Security Review Process ​

bash
# Initial audit
/security-audit

# Plan fixes
/orchestrate "Address security vulnerabilities"

# Implement security measures
/execute-task "Add input validation"
/execute-task "Implement rate limiting"
/add-middleware "Security headers middleware"

# Verify fixes
/security-audit
/validate-implementation

Team Collaboration Workflow ​

Code Review Process ​

Implementation:

bash
# Developer completes feature
/execute-task "Implement user settings page"

# Self review
/review

# Get AI suggestions
/suggest-improvements

# Team review preparation
/document-feature "User settings implementation details"

# After team feedback
/execute-task "Address review comments"
/validate-implementation

Knowledge Sharing ​

bash
# Extract patterns from implementation
/extract-patterns

# Document for team
/document-feature "New authentication pattern for microservices"

# Create reusable components
/orchestrate "Create shared authentication library"

DevOps Workflow ​

CI/CD Pipeline Setup ​

bash
# Plan CI/CD
/orchestrate "Set up GitHub Actions CI/CD pipeline"

# Implement pipeline
/execute-task "Create test workflow"
/execute-task "Create build workflow"
/execute-task "Create deployment workflow"

# Add monitoring
/setup-monitoring "Production monitoring with Sentry"

# Document
/document-feature "CI/CD pipeline architecture"

Infrastructure as Code ​

bash
# Plan infrastructure
/orchestrate "Define infrastructure using Terraform"

# Implement IaC
/execute-task "Create Terraform modules"
/execute-task "Set up staging environment"

# Validate
/validate-implementation
/security-audit

Best Practices ​

1. Always Start with Context ​

Every workflow should begin with understanding the current state.

2. Plan Before Executing ​

Use /orchestrate to think through the approach.

3. Validate Continuously ​

Don't wait until the end to validate your work.

4. Document as You Go ​

Documentation is part of the workflow, not an afterthought.

5. Learn from Each Workflow ​

Use /learn to extract insights for future improvements.

Workflow Templates ​

Quick Feature Add ​

bash
/orchestrate "Quick feature: $FEATURE_NAME"
/execute-task "Implement $FEATURE_NAME"
/review

Comprehensive Feature ​

bash
/discover-context
/orchestrate "Plan $FEATURE_NAME"
/setup-parallel
/distribute-tasks "$TASKS"
/coordinate-parallel
/merge-work
/review
/validate-implementation
/document-feature "$FEATURE_NAME complete"

Emergency Hotfix ​

bash
/orchestrate "URGENT: Fix $BUG"
/execute-task "Implement fix"
/review
/execute-task "Deploy hotfix"
/document-feature "Hotfix: $BUG"

See Also ​

Built with ❤️ for the AI Coding community, by Praney Behl