Chuyển đến nội dung
Skillpedia
Agent81k · #1704

workflow-run

Skill này làm gì

Skill này giúp bạn chạy và quản lý các workflow đã được thiết lập. Nó dành cho người muốn bắt đầu một quy trình, theo dõi tiến độ hoặc dừng nó lại.

Khi nào nên dùng

  • ✓Khi bạn muốn bắt đầu một workflow đã lưu và xem nó đã đi được đến đâu.
  • ✓Khi một workflow cần tạm dừng để rà soát rồi tiếp tục sau.
  • ✓Khi bạn muốn dừng một workflow không còn cần nữa.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-workflows/skills/workflow-run/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy bắt đầu workflow onboarding của tôi và cho tôi biết nó dừng ở bước nào.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent gửi lệnh tới bộ máy workflow để chạy, kiểm tra, tạm dừng, tiếp tục hoặc hủy một workflow. Nó cũng có thể chạy một script có tên để điều phối nhiều agent phụ.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.

Câu hỏi thường gặp

Làm sao xem một workflow đang chạy đã làm gì?

Agent có thể kiểm tra trạng thái workflow, cho thấy tiến độ và kết quả của từng bước.

Tôi có thể tạm dừng workflow và tiếp tục sau không?

Có. Workflow có thể tạm dừng ở bước hiện tại và tiếp tục từ đúng điểm đó.

Các script workflow có tên được lưu ở đâu?

Chúng là các file trong thư mục .claude/workflows, mỗi file có một tên để bạn dùng khi chạy.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
81k
Vị trí xếp hạng
#1704
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự