v2/examples/02-workflows/README.md
This directory contains multi-agent workflow definitions demonstrating various coordination patterns and use cases.
02-workflows/
├── simple/ # Basic workflows for learning
├── parallel/ # Parallel execution patterns
├── sequential/ # Step-by-step workflows
├── complex/ # Advanced multi-agent systems
├── specialized/ # Domain-specific workflows
├── claude-workflow.json # Original development workflow
└── research-workflow.json # Original research pipeline
simple/)cd examples
../claude-flow swarm create "Build hello world app" --output ./output/hello-world
parallel/)../claude-flow swarm create "Process CSV, JSON, and XML data in parallel" --agents 4 --output ./output/data-processing
sequential/)../claude-flow swarm create "Build complete blog platform with authentication" --strategy development --output ./output/blog
complex/)../claude-flow swarm create "Build microservices e-commerce platform" --agents 8 --output ./output/microservices
specialized/)../claude-flow swarm create "Build machine learning pipeline for customer churn prediction" --strategy analysis --output ./output/ml-pipeline
Original multi-agent development workflow example
Original AI research pipeline example
"agents": [
{
"id": "agent-name",
"type": "researcher|developer|tester",
"capabilities": ["research", "code-generation", "testing"],
"configuration": { ... }
}
]
"tasks": [
{
"id": "task-id",
"agentId": "agent-name",
"type": "research|coding|analysis",
"dependencies": ["previous-task-id"],
"parallel": true|false
}
]
# Execute a workflow
npx claude-flow orchestrate ./claude-workflow.json
# With monitoring
npx claude-flow orchestrate ./research-workflow.json --monitor
# In background
npx claude-flow orchestrate ./claude-workflow.json --background