
Workflow Creator
Create or update reusable Dynamic Workflow JavaScript files under .qwen/workflows.
Install
npx skills add QwenLM/qwen-code --skill workflow-creator -g -a claude-code -y- Repository
- QwenLM/qwen-code28.9k
- Category
- Engineering
- Updated
- 3d ago
- License
- Apache-2.0
- Context cost
- Lightabout 856 tokens
- Runs scripts
- Yes, review before use
What it does
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.
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:
