
Workflow Script Authoring
Teaches the agent to write multi-agent Workflow tool scripts that fan out, verify and synthesize work.
- Repository
- QwenLM/qwen-code
- Stars
- 28,880
- Licence
- Apache-2.0
- Files
- 2 files
What it does
This is a reference guide that teaches an AI coding agent how to write a script for Qwen Code's Workflow tool, which dispatches many subagents in parallel or in stages to tackle large tasks such as migrations, audits, or broad reviews. Once installed, the agent knows the script API (agent(), parallel(), pipeline(), phase(), and related options), the rules a script must follow, and common patterns for verification and resuming. The skill itself does not run anything and does not grant permission to run a workflow; that is governed separately by the Workflow tool's opt-in rule.
Great for
- Developers using Qwen Code who want to orchestrate large, parallelizable tasks like codebase migrations or audits
- Teams who already use the Workflow tool and need help writing correct, deterministic scripts
- Anyone who wants an agent to decompose work into verified, reviewable phases
Skip it if
- Simple, short sequences of edits, which the skill itself says belong in the main loop because parallelism adds cost without benefit
- Non-developers or users who have not opted into the Workflow tool, since the skill does not authorize runs and scripts are refused or run only when approved
- Runtimes outside Qwen Code, since the skill references Qwen Code-specific tool names and limits and may not behave the same elsewhere
Try asking
- “Write a workflow script that audits every module in this repo in parallel and merges the findings into one report”
- “Author a migration workflow that transforms each file in an isolated worktree and then verifies each change”
- “Create a review workflow that finds issues across several dimensions and checks each finding before reporting”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 2 original files, the Apache-2.0 licence and an attribution note.
workflow-authoring.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip workflow-authoring.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip workflow-authoring.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Give every phase a clear detail string, since the approval dialog shows it to the user before dispatching potentially hundreds of agents
- Scout the work list in the main loop first, then hand that list to a workflow rather than letting one large script run unattended
- Check agent() results for null, since failed structured output resolves to null
What's inside
- SKILL.md
- SKILL.test.ts
Redistributed unmodified from QwenLM/qwen-code under the Apache-2.0 licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.