workflow-creator
它能做什么
它在项目的工作流文件夹中创建或编辑可复用的工作流文件,并为每个文件分配一个斜杠命令。适合重复执行同一多步骤智能体任务、并希望将其保存下来的人。
适用场景
- ✓当你希望把多步骤的智能体任务保存下来,以便重复使用时。
- ✓当你想编辑一个已保存的工作流时。
- ✓当你要求在项目中创建或保存工作流时。
技能链接
https://github.com/QwenLM/qwen-code/blob/main/packages/core/src/skills/bundled/workflow-creator/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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>.jsfiles used by theworkflowtool 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/workflowsdirectories 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/workflowsonly when the user explicitly asks for a workflow shared across projects.
Workflow
- 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.
- Choose a lower-case name containing only letters, digits, and hyphens. It must start with a letter and be at most 41 characters.
- Create the smallest script that captures the requested phases, dependencies, and final result. Do not add speculative branches, retries, or agents.
- 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.
- 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, andbudget. Theworkflow-authoringskill 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 toparallel. - Keep dependent work sequential and pass prior results explicitly.
- Put variable user input in
argsinstead of hard-coding one-off values. - End every successful path with an explicit
returnof the final result. A trailing expression is not a return value. - Do not use
node --checkfor validation: valid workflow scripts may contain top-levelawaitandreturnbecause 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
评论
- …
同一仓库的更多技能
codegraph
29k帮你的智能体通过调用图、依赖关系、无用代码、热点和语义搜索来分析已建立索引的代码库。
qwen-code-claw
29k帮你的智能体把编程任务交给 Qwen Code,例如理解代码库、修复缺陷、重构代码或生成新项目。
structured-debugging
29k教你的智能体用一步一步的方法调试疑难缺陷:先提出假设,再添加有针对性的检查,验证后找出真正的原因,然后才修复。
tmux-real-user-testing
29k帮你的智能体在 tmux 中像真实用户一样测试终端应用,并为每一步操作保存带屏幕截图的可读步骤日志。