跳到正文
Skillpedia
自动化29k · #9789

workflow-creator

它能做什么

它在项目的工作流文件夹中创建或编辑可复用的工作流文件,并为每个文件分配一个斜杠命令。适合重复执行同一多步骤智能体任务、并希望将其保存下来的人。

适用场景

  • ✓当你希望把多步骤的智能体任务保存下来,以便重复使用时。
  • ✓当你想编辑一个已保存的工作流时。
  • ✓当你要求在项目中创建或保存工作流时。

技能链接

https://github.com/QwenLM/qwen-code/blob/main/packages/core/src/skills/bundled/workflow-creator/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请为我每周的发布检查清单保存一个可复用的工作流,这样我就能用一条斜杠命令运行它。”

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

工作原理

智能体把一个小型工作流脚本写入项目的工作流文件夹,读回以检查其步骤,然后报告文件路径和斜杠命令。除非你要求,否则它不会运行该工作流。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Workflow Creator

Create and maintain saved Dynamic Workflows for the current workspace.

Boundary

  • This skill manages .qwen/workflows/<name>.js files used by the workflow tool and exposed as /<name> slash commands.
  • Do not create or edit qwen-workflow-design/*.yaml; those Task Flow definitions are a different feature.
  • Local hosts may also discover trusted ancestor .qwen/workflows directories up to the nearest Git root, with the nearest definition first. Discovery does not change the project save destination: use the current session target.
  • Use project scope by default. Write to ~/.qwen/workflows only when the user explicitly asks for a workflow shared across projects.

Workflow

  1. Inspect the current task and any existing workflow with the requested name. Ask a question only when the goal, ordering, or write scope is materially ambiguous.
  2. Choose a lower-case name containing only letters, digits, and hyphens. It must start with a letter and be at most 41 characters.
  3. Create the smallest script that captures the requested phases, dependencies, and final result. Do not add speculative branches, retries, or agents.
  4. Read the saved file back and verify its name, metadata, phase order, dependency flow, and final return value. Do not execute it unless the user also asks to run it.
  5. Report the saved path and slash command. In the interactive TUI's ink renderer, the slash command runs in the foreground: progress stays in the tool card, and completion displays the result and notifies the model. The OpenTUI renderer does not yet run client-scheduled tools; there, ask the model to call Workflow({ name: '<name>' }) instead. /workflows <runId> shows the run after it settles. In Web Shell, tell the user to return to Workflows and refresh the Saved tab if it is already open.

Script contract

  • Start with a literal metadata declaration:
export const meta = {
  name: 'Release readiness',
  description: 'Inspect, validate, and summarize a release candidate',
};
  • Use the sandbox globals phase(title), log(message), agent(prompt, options?), parallel(thunks), pipeline(items, ...stages), workflow(nameOrRef, args?), args, and budget. The workflow-authoring skill is the full reference for them — load it before writing anything beyond a trivial script.
  • Scripts cannot import modules or access the filesystem, shell, environment, or network directly. Put required reads and actions in explicit agent prompts.
  • Give every agent a complete, scoped prompt and a concise label. State whether it may edit files.
  • Express real concurrency as parallel([() => agent(...), () => agent(...)]). Do not pass already-started promises to parallel.
  • Keep dependent work sequential and pass prior results explicitly.
  • Put variable user input in args instead of hard-coding one-off values.
  • End every successful path with an explicit return of the final result. A trailing expression is not a return value.
  • Do not use node --check for validation: valid workflow scripts may contain top-level await and return because the runtime wraps them in an async function.

Updates

  • Preserve unrelated behavior and metadata when editing an existing workflow.
  • Do not overwrite an existing workflow with a different design unless the user requested that update.
  • Do not delete or rename a workflow unless the user explicitly asks.
常见问题

工作流保存在哪里?

默认保存在项目的工作流文件夹中;只有在你要求共享文件夹时,才会保存到主目录。

保存后会运行工作流吗?

不会。只有在你也要求它运行时,它才会运行。

工作流可以取什么名字?

小写字母、数字和连字符,以字母开头,最多 41 个字符。

详情

作者的原始描述

Create or update reusable Dynamic Workflow JavaScript files under .qwen/workflows. Use when the user asks to create, save, edit, or reuse a Dynamic Workflow, including requests started from the Web Shell Workflows page.

repo: QwenLM/qwen-code

热度

GitHub 星标
29k
排名
#9789
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能