본문으로 건너뛰기
Skillpedia
에이전트29k · #9788

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/QwenLM/qwen-code/blob/main/packages/core/src/skills/bundled/workflow-authoring/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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 to pipeline().
  • workflow(nameOrRef, args?, { stepId }?) — run a saved workflow inline. See Saved workflows and workflow().
  • args — the structured value the caller passed, or undefined.
  • 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬