flow-nexus-workflow
The flow-nexus-workflow command creates and manages event-driven automated workflows with multiple sequential or parallel steps assigned to specialized agents. Use it to orchestrate complex multi-stage processes like CI/CD pipelines, ETL workflows, or code review systems, with capabilities for triggering on events, monitoring execution status, and managing asynchronous task queues.
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/ruvnet/agentic-flow/HEAD/.claude/commands/flow-nexus/workflow.md -o ~/.claude/commands/flow-nexus-workflow.mdworkflow.md
# Flow Nexus Workflows
Create and manage automated workflows with event-driven processing.
## Create Workflow
```javascript
mcp__flow-nexus__workflow_create({
name: "CI/CD Pipeline",
description: "Automated testing and deployment",
steps: [
{ id: "test", action: "run_tests", agent: "tester" },
{ id: "build", action: "build_app", agent: "builder" },
{ id: "deploy", action: "deploy_prod", agent: "deployer" }
],
triggers: ["push_to_main", "manual_trigger"]
})
```
## Execute Workflow
```javascript
mcp__flow-nexus__workflow_execute({
workflow_id: "workflow_id",
input_data: {
branch: "main",
commit: "abc123"
},
async: true // Execute via message queue
})
```
## Monitor Workflows
```javascript
// Get workflow status
mcp__flow-nexus__workflow_status({
workflow_id: "id",
include_metrics: true
})
// List workflows
mcp__flow-nexus__workflow_list({
status: "running",
limit: 10
})
// Get audit trail
mcp__flow-nexus__workflow_audit_trail({
workflow_id: "id",
limit: 50
})
```
## Agent Assignment
```javascript
mcp__flow-nexus__workflow_agent_assign({
task_id: "task_id",
agent_type: "coder",
use_vector_similarity: true // AI-powered matching
})
```
## Queue Management
```javascript
mcp__flow-nexus__workflow_queue_status({
include_messages: true
})
```
## Common Workflow Patterns
### CI/CD Pipeline
```javascript
mcp__flow-nexus__workflow_create({
name: "Deploy Pipeline",
steps: [
{ action: "lint", parallel: true },
{ action: "test", parallel: true },
{ action: "build", depends_on: ["lint", "test"] },
{ action: "deploy", depends_on: ["build"] }
],
triggers: ["github_push"]
})
```
### Data Processing
```javascript
mcp__flow-nexus__workflow_create({
name: "ETL Pipeline",
steps: [
{ action: "extract_data", agent: "data_extractor" },
{ action: "transform_data", agent: "transformer" },
{ action: "load_data", agent: "loader" },
{ action: "validate", agent: "validator" }
],
triggers: ["schedule:0 2 * * *"] // Daily at 2 AM
})
```
### Multi-Stage Review
```javascript
mcp__flow-nexus__workflow_create({
name: "PR Review",
steps: [
{ action: "code_analysis", agent: "analyzer" },
{ action: "security_scan", agent: "security" },
{ action: "performance_test", agent: "perf_tester" },
{ action: "approve_merge", agent: "reviewer" }
],
metadata: { priority: 10 }
})
```Use this agent when you need to create foundational templates, boilerplate code, or starter configurations for new projects, components, or features. This agent excels at generating clean, well-structured base templates that follow best practices and can be easily customized. Examples: <example>Context: User needs to start a new React component and wants a solid foundation. user: 'I need to create a new user profile component' assistant: 'I'll use the base-template-generator agent to create a comprehensive React component template with proper structure, TypeScript definitions, and styling setup.' <commentary>Since the user needs a foundational template for a new component, use the base-template-generator agent to create a well-structured starting point.</commentary></example> <example>Context: User is setting up a new API endpoint and needs a template. user: 'Can you help me set up a new REST API endpoint for user management?' assistant: 'I'll use the base-template-generator agent to create a complete API endpoint template with proper error handling, validation, and documentation structure.' <commentary>The user needs a foundational template for an API endpoint, so use the base-template-generator agent to provide a comprehensive starting point.</commentary></example>
Show Claude-Flow commands and usage
Interact with Claude-Flow memory system
Coordinate multi-agent swarms for complex tasks
Browse, publish, and deploy applications
Coding challenges, achievements, and leaderboards
Flow Nexus authentication and user management
Train and deploy neural networks in distributed sandboxes