Back to Ruflo

ruflo-workflows

plugins/ruflo-workflows/README.md

3.6.303.3 KB
Original Source

ruflo-workflows

Workflow automation with templates, orchestration, and full state-machine lifecycle management.

Install

/plugin marketplace add ruvnet/ruflo
/plugin install ruflo-workflows@ruflo

Features

  • Workflow creation: Define multi-step processes with conditions and parallel execution
  • Templates: Reusable workflow patterns for common operations
  • Lifecycle management: Execute, pause, resume, cancel running workflows
  • Approval gates: Manual pause points for human review

Commands

  • /workflow -- List workflows, check status, view templates

Skills

  • workflow-create -- Create reusable workflow templates
  • workflow-run -- Execute and manage running workflows

Compatibility

  • CLI: pinned to @claude-flow/cli v3.6 major+minor.
  • Verification: bash plugins/ruflo-workflows/scripts/smoke.sh is the contract.

MCP surface (10 tools)

All defined at v3/@claude-flow/cli/src/mcp-tools/workflow-tools.ts:

ToolPurpose
workflow_createCreate a new workflow definition
workflow_runRun a workflow with inputs
workflow_executeExecute a one-shot workflow without persistence
workflow_statusInspect a running workflow
workflow_listList workflows
workflow_pausePause a running workflow
workflow_resumeResume a paused workflow
workflow_cancelCancel a workflow
workflow_deleteDelete a workflow definition
workflow_templateManage workflow templates

Lifecycle state machine

created ──run──→ running ──pause──→ paused ──resume──→ running
                    │                  │
                    │                  └──cancel──→ cancelled
                    │
                    ├──complete──→ completed
                    └──cancel────→ cancelled
StateAllowed transitions
createdrunning (via workflow_run), cancelled (via workflow_cancel)
runningpaused (via workflow_pause), completed (auto), cancelled (via workflow_cancel)
pausedrunning (via workflow_resume), cancelled (via workflow_cancel)
completedterminal
cancelledterminal

workflow_execute is the stateless path — fire-and-forget, no persisted state machine.

Namespace coordination

This plugin owns the workflows-state AgentDB namespace (kebab-case, follows the convention from ruflo-agentdb ADR-0001 §"Namespace convention"). Reserved namespaces (pattern, claude-memories, default) MUST NOT be shadowed.

workflows-state indexes workflow definitions, current state, run history, and template metadata. Accessed via memory_* (namespace-routed).

Verification

bash
bash plugins/ruflo-workflows/scripts/smoke.sh
# Expected: "11 passed, 0 failed"

Architecture Decisions

  • ruflo-agentdb — namespace convention owner
  • ruflo-loop-workers — sibling automation surface (loops are recurring; workflows are stateful pipelines)
  • ruflo-sparc — SPARC phase transitions can be modeled as workflows