跳到正文
Skillpedia
智能体81k · #1704

workflow-run

它能做什么

这项技能帮助你运行和管理已经设置好的工作流。适合想要启动某个流程、查看其进度或停止它的人。

适用场景

  • ✓当你想启动已保存的工作流,并查看其进行到哪一步时。
  • ✓当工作流需要暂停以供审查,之后再继续时。
  • ✓当你想停止一个不再需要的工作流时。

技能链接

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-workflows/skills/workflow-run/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-workflows/skills/workflow-run/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请启动我的入职工作流,并告诉我它在哪一步停下。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体向工作流引擎发送命令,以运行、检查、暂停、恢复或取消工作流。它也可以运行一个协调多个辅助智能体的命名脚本。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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/).

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.

常见问题

如何查看正在运行的工作流做了什么?

智能体可以检查工作流状态,其中显示进度以及每一步的结果。

我可以暂停工作流并稍后继续吗?

可以。工作流可以在当前步骤暂停,并从同一位置恢复。

命名的工作流脚本存放在哪里?

它们是 .claude/workflows 文件夹中的文件,每个文件都有一个可用于运行它的名称。

详情

作者的原始描述

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

repo: ruvnet/ruflo

热度

GitHub 星标
81k
排名
#1704
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能