workflow-authoring
하는 일
병렬 및 순차 단계, 검사, 재개를 다루며 워크플로 스크립트 작성을 위한 참고 자료를 제공합니다. 마이그레이션이나 감사 같은 큰 작업을 위해 재사용할 수 있는 에이전트 워크플로를 만드는 사람을 위한 스킬입니다.
사용하는 경우
- ✓여러 에이전트에 작업을 나누는 워크플로 스크립트를 작성할 때.
- ✓마이그레이션이나 감사처럼 큰 작업에 병렬 단계와 검사가 필요할 때.
- ✓단계를 병렬로 실행할지 순차로 실행할지 고를 때.
스킬 링크
https://github.com/QwenLM/qwen-code/blob/main/packages/core/src/skills/bundled/workflow-authoring/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 repo의 모든 모듈을 병렬로 감사하고 결과를 합치는 워크플로 스크립트를 작성하도록 도와주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
참고 자료는 스크립트의 구조, 작업을 나눌 시점, 결과를 검증하는 방법, 결과를 합치는 방법을 설명합니다. 이 자료를 읽는다고 실행이 시작되지는 않습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Workflow authoring reference
Everything below is about writing the script. Whether a workflow may run at all is decided by the Workflow tool's own opt-in rule — this reference does not authorize a run.
Reach for one to be comprehensive (decompose the work and cover every part in parallel), to be confident (independent perspectives and adversarial checks before an answer is committed to), or to take on scale a single context cannot hold — migrations, audits, broad sweeps. The script is where that structure is encoded: what fans out, what verifies, what synthesizes. Parallelism on its own is not a reason; work that is already one short sequence of edits belongs in the main loop.
Scout first, then orchestrate
The strongest pattern is hybrid: discover the work list in the main loop (list the files, scope the diff, read the failing test), then hand that list to a workflow. You do not need to know the shape of the work before the task — only before the orchestration step. When the work has distinct phases, run several small workflows across turns and read each result before choosing the next, rather than authoring one large script that runs unattended.
Common single-phase shapes: understand (parallel readers over subsystems,
merged into one map), design (independent approaches, judged, then
synthesized), review (dimensions, find, verify each finding), research (broad
sweep, deep read, synthesis), migrate (discover sites, transform each under
isolation: 'worktree', verify).
Script contract
The source is wrapped as an async IIFE, so top-level await and a top-level
return are both legal — and a trailing expression is not a return value.
End every successful path with an explicit return.
It is plain JavaScript, not TypeScript, and it cannot import anything. A
script with a dynamic import() anywhere in it — even in a branch that never
runs — is refused before it starts, so none of its agents runs first; do file,
network, and package work inside an agent instead.
The script may start with a literal export const meta = {...} declaration
with name, description, and optionally whenToUse and
phases: [{ title, detail? }]. It must be a pure literal — no variables,
calls, or interpolation — and it is stripped before execution, so nothing in
the script body can read it. Fields outside that list are dropped. The
approval dialog prints the name, the description, and each phase title with
its detail as a one-line explanation beside it: give every phase a detail,
because for a run that may dispatch hundreds of agents it is what the user
reads before approving. In a workflow an extension ships, whenToUse also lists
the workflow for the model to start when a request matches it; leave it out and
the workflow runs only when someone asks for it by name.
Injected globals, and nothing else:
phase(title)— open a phase. Everything dispatched afterwards is attributed to it in the live phase tree, until the next phase opens.log(msg)— one line into the run log the user watches.agent(prompt, opts?)— dispatch one subagent. See agent() options.parallel(thunks)— run thunks through the shared concurrency window, resolving to a position-aligned array.parallel()itself rejects on invalid arguments.pipeline(items, ...stages)— run each item through the stages independently. See Default topipeline().workflow(nameOrRef, args?, { stepId }?)— run a saved workflow inline. See Saved workflows and workflow().args— the structured value the caller passed, orundefined.budget—{ total, spent(), remaining() }. See Scaling to the token budget.
Pass THUNKS to parallel(), not eager calls: parallel([() => agent(...)]),
not parallel([agent(...)]). The eager form is refused outright: a
non-function element rejects the whole batch, and by then every agent() in it
has already been admitted, counted against the caps, and spent — with its
result discarded.
Each list a single call takes — the thunks of parallel(), and the items and
the stages of pipeline() — holds at most 4096 entries. A longer list rejects
the whole call before any of its thunks or stages runs; it is never truncated.
Like any invalid argument, that rejection can be caught, and inside an outer
parallel()/pipeline() it becomes that slot's null. The limit is per call,
not per run: split a larger input into batches of thunks and await each in
turn. Batching does not
자주 묻는 질문
이 자료를 읽으면 워크플로가 시작되나요?
아닙니다. 스크립트 작성법을 설명할 뿐이며, 실행에는 여전히 승인이 필요합니다.
언제 워크플로를 쓰지 말아야 하나요?
짧은 편집 순서 하나라면 워크플로 대신 일반 작업 흐름에서 처리하는 것이 맞습니다.
작업을 여러 단계로 나눠 진행할 수 있나요?
네. 작은 워크플로를 여러 차례에 걸쳐 실행하고, 다음 단계 전에 각 결과를 확인하도록 권장합니다.
상세 정보
작성자의 원본 설명
Reference for writing a Workflow tool script (script API and gotchas, agent() options, pipeline() vs parallel(), verification and convergence patterns, resume, worked example). Load before authoring a script for a workflow the user already opted into; it does not itself authorize running one.
repo: QwenLM/qwen-code
인기도
- GitHub 스타
- 29k
- 순위
- #9788
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
codegraph
29k에이전트가 색인된 코드베이스를 호출 그래프, 의존성, 죽은 코드, 핫스팟, 의미 검색으로 분석하도록 돕습니다.
qwen-code-claw
29k에이전트가 코드베이스 이해, 버그 수정, 리팩터링, 새 프로젝트 생성 같은 코딩 작업을 Qwen Code에 맡기도록 돕습니다.
structured-debugging
29k에이전트가 어려운 버그를 디버깅하는 단계별 방법을 가르칩니다. 가설을 세우고, 대상 확인을 추가하고, 시험해서 실제 원인을 찾은 뒤 고칩니다.
tmux-real-user-testing
29k에이전트가 tmux 안에서 실제 사용자처럼 터미널 앱을 테스트하고, 각 동작마다 화면 캡처가 담긴 읽기 쉬운 로그를 저장하도록 돕습니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.