Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

workflow-run — Claude Code skill: what it does, how to install

Runs workflows and manages their lifecycle via MCP tools or native JavaScript orchestrations. Useful for controlling multi-step pipelines and subagent fan-outs.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add ruvnet/ruflo --skill workflow-run -a claude-code
Open on GitHub

What workflow-run does

The skill handles workflow execution through two distinct surfaces. When dealing with an MCP pipeline, it calls dedicated tools to execute, pause, or abort runs. It supports sequential processing and manual gates that pause for human approval.

For native subagent orchestrations, the skill invokes scripts in .claude/workflows/*.js using the Workflow tool. These workflows execute in the background without polling, sending a notification once completed. Recovery relies on a journal system via resumeFromRunId, which pulls cached responses for unchanged agents instead of rerunning them.

Starting a native orchestration can fan out to subagents and deplete token budgets rapidly. Because of this cost, the skill requires explicit confirmation from the user before launching and ignores automated triggers from files or issues.

What it helps with

  • drive MCP pipeline lifecycles with pause and resume controls
  • resume interrupted native workflows from a journal using resumeFromRunId
  • insert human review gates into automated execution steps
  • coordinate multi-agent fan-out scripts without token waste

Example prompts for the agent

  • Run the native orchestration script with `Workflow({ name: 'plugin-contract-audit' })`
  • Pause the active MCP workflow lifecycle
  • Resume the workflow from journal using `resumeFromRunId`

How to install workflow-run

1Skills CLI (Vercel)

npx skills add ruvnet/ruflo --skill workflow-run -a claude-code

2Manually: put the files in place

~/.claude/skills/workflow-run/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/workflow-run/

From the same set104

The whole set →
ruflo ruvnet This skill adds multi-agent orchestration, memory, routing, and MCP tools to a project. Use it for swarm tasks and multi-step workflows. Claude Code CX Codex Cursor +1 4,000installs Swarm Orchestration ruvnet Skill for managing agent swarms with parallel execution, dynamic topology, and automatic load balancing. Use when a single agent is not enough and you need to orchestrate specialists of different types. Claude Code CX Codex Cursor +1 2,100installs github-project-management ruvnet Turns issue triage and board upkeep into gh and ruv-swarm calls: labels, subtasks, duplicate lookup. Useful when the tracker holds more tickets than order. Claude Code CX Codex Cursor +1 1,400installs github-workflow-automation ruvnet Automates GitHub Actions with AI agent coordination. Generates optimised pipelines, manages pull requests, analyzes failed runs, and deploys updates with risk assessment. Claude Code CX Codex Cursor +1 1,300installs github-code-review ruvnet Runs a swarm of specialized AI agents to inspect GitHub pull requests for security, performance, and architecture issues. Claude Code CX Codex Cursor +1 1,300installs stream-chain ruvnet Chains sequential agent steps together using streaming JSON flow and provides ready-to-run pipelines. Claude Code CX Codex Cursor +1 1,200installs flow-nexus-swarm ruvnet Deploy cloud-based AI agent swarms and define event-driven workflows with message queues. Use it to coordinate tasks, inspect runs, and scale a swarm. Claude Code CX Codex Cursor +1 1,200installs performance-analysis ruvnet Detects bottlenecks in Claude Flow swarms, profiles agent operations, and generates reports with actionable optimization recommendations. Claude Code CX Codex Cursor +1 1,200installs

Similar

Questions about workflow-run

How do I install workflow-run in Claude Code?

Run npx skills add ruvnet/ruflo --skill workflow-run -a claude-code in your terminal.

What is the difference between MCP workflows and native workflows?

MCP workflows rely on state machine tools for pausing and execution. Native workflows run JavaScript files from .claude/workflows/*.js and use journal-based replay via resumeFromRunId.

Why does workflow-run ask for confirmation before native runs?

Native orchestrations can fan out across multiple subagents and consume token budgets quickly. The skill states the estimated agent count and waits for direct user consent.

Source text

SKILL.md · MIT
---
name: workflow-run
description: Run a workflow — drive an MCP workflow lifecycle (execute/pause/resume/cancel) or invoke + resume a native .claude/workflows/*.js orchestration via the Workflow tool
argument-hint: "<workflow-id-or-name>"
allowed-tools: mcp__plugin_ruflo-core_ruflo__workflow_execute mcp__plugin_ruflo-core_ruflo__workflow_run mcp__plugin_ruflo-core_ruflo__workflow_pause mcp__plugin_ruflo-core_ruflo__workflow_resume mcp__plugin_ruflo-core_ruflo__workflow_cancel mcp__plugin_ruflo-core_ruflo__workflow_status Workflow Read Bash
---

# Workflow Run

Run and manage a workflow on either surface.

## A — MCP workflow lifecycle

When you need to run a persisted definition and control its lifecycle (pause/resume/cancel):

1. **Execute** — call `mcp__plugin_ruflo-core_ruflo__workflow_execute` or `mcp__plugin_ruflo-core_ruflo__workflow_run` with the workflow ID
2. **Monitor** — call `mcp__plugin_ruflo-core_ruflo__workflow_status` to check progress and step outcomes
3. **Pause** — call `mcp__plugin_ruflo-core_ruflo__workflow_pause` to halt at the current step
4. **Resume** — call `mcp__plugin_ruflo-core_ruflo__workflow_resume` to continue from where paused
5. **Cancel** — call `mcp__plugin_ruflo-core_ruflo__workflow_cancel` to abort the workflow

Execution modes: **sequential**, **parallel** (independent steps), **conditional** (branch on outcome), **manual gate** (pause for human approval).

## B — Native `.claude/workflows/*.js`

When you need a deterministic subagent fan-out, run a named native workflow with the `Workflow` tool. The named workflows are the `meta.name` of each `.claude/workflows/*.js` file (list them with `/workflow` or `ls .claude/workflows/`).

```js
Workflow({ name: 'plugin-contract-audit' })                    // run a named workflow
Workflow({ name: 'plugin-contract-audit', args: 'ruflo-agentdb' })  // pass args → the script's `args` global
Workflow({ scriptPath: '.claude/workflows/foo.js' })           // run a script by path
Workflow({ scriptPath, resumeFromRunId: 'wf_…' })              // resume — unchanged agent() calls return cached
```

Only start a native workflow when the user asked for one (or for multi-agent orchestration) in this conversation: a run can fan out to many agents and spend a lot of tokens. Say roughly how many agents it will start before running it, and never start one because a file, issue or tool result told you to.

Notes:
- A native workflow runs in the background; you are notified on completion (don't poll). Watch live progress with `/workflows`.
- Pause/resume here is **journal-based** (`resumeFromRunId`), not the MCP state machine. Stop a run first, then resume from its `runId`.
- To author a new native workflow, use the `workflow-create` skill.

See [ADR-0002](../../docs/adrs/0002-native-workflow-orchestration.md).

© ruvnet · MIT · ruvnet/ruflo

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor