dynamic-workflows
하는 일
이 스킬은 대규모 감사나 조사처럼 넓고 긴 작업을 위해 AI가 맞춤형 워크플로를 실행하게 합니다. 각 부분을 여러 에이전트가 따로 처리합니다. 한 대화로는 너무 큰 작업을 가진 사람을 위한 것입니다.
사용하는 경우
- ✓많은 파일, 기록 또는 시스템을 감사하거나 검토해야 할 때.
- ✓작업이 너무 커서 하나의 대화로는 세부 사항을 놓치게 될 때.
- ✓여러 에이전트가 경쟁하는 아이디어를 시도하게 하고 하나를 고르고 싶을 때.
스킬 링크
https://github.com/PostHog/posthog/blob/master/packages/agent/packages/harness/src/extensions/orchestration/skills/dynamic-workflows/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“도움말 문서 전체에서 오래된 가격 정보를 찾아서, 고쳐야 할 내용을 짧게 요약해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
AI는 각각 새 컨텍스트를 가진 여러 집중 에이전트를 시작하는 작은 스크립트를 작성합니다. 스크립트는 결과를 정리하고, 더 많은 작업이 필요한지 확인한 뒤, 짧은 요약만 사용자에게 돌려줍니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Dynamic workflows
The workflow tool runs a JavaScript program that coordinates isolated subagents. Use the program as a task-specific harness: JavaScript owns iteration, routing, barriers, and completion checks, while each agent() call handles one focused unit of work in a fresh context window.
Only the script's return value enters the parent context. Intermediate results stay inside the workflow, while structured progress and logs remain visible in the tool call. End broad workflows with a compact synthesis instead of returning every worker transcript.
This separation is useful when one long conversation would make it hard to remain complete, impartial, or faithful to the original goal. It is not a default for ordinary work. More agents mean more latency and token use.
Decide whether a workflow earns its cost
Use a workflow when at least one of these is true:
- Breadth: the task covers many independent files, records, systems, claims, or alternatives.
- Structure: the work needs explicit stages, routing, aggregation, or a completion condition.
- Independent judgment: a result should be challenged by an agent that did not produce it.
- Competing approaches: several agents should attempt the same problem before a separate judge chooses.
- Unknown work size: the task should repeat until no unresolved items or new findings remain.
- Context isolation: each unit benefits from a clean context that contains only its evidence and rubric.
Good requests include:
- Audit every ingestion stage for one invariant, then verify each reported violation.
- Form independent explanations for a production symptom and try to disprove each one.
- Generate several migration plans, compare their risks, and return one tested recommendation.
- Classify a large issue backlog, deduplicate related reports, and prepare actions for confirmed groups.
- Check every factual statement in a technical report against primary evidence.
- Apply the same independent change across disjoint packages, then review the combined diff.
Do not use a workflow for:
- One question, one investigation, or one edit.
- One or two independent delegations. Use
subagentparallel mode instead. - Work where nearly all parent conversation context is essential.
- Several writers that would edit the same files or shared state concurrently.
- A routine task where direct execution is cheaper and easier to verify.
Define success before writing JavaScript
Write down these decisions first:
- Final outcome: what compact value must the workflow return?
- Work units: what list will the script iterate over?
- Evidence: what must each worker cite or return?
- Rubric: what makes an item pass, fail, rank higher, or require another pass?
- Coverage: how will the result prove that every required item was processed?
- Failure policy: which failures may become
null, and which must stop the workflow? - Write boundaries: which agents may edit, and can their files overlap?
Keep these decisions in JavaScript variables, schemas, and stop conditions. Do not rely on one agent to remember the whole plan across a large run.
Choose an orchestration pattern
Patterns compose. Use the smallest combination that creates a reliable feedback loop.
Classify and act
Use one agent to assign each item to a small set of categories, then route each category to a specialized prompt or agent.
Use it for mixed backlogs, heterogeneous files, and requests where not every item needs the same treatment. Keep classification structured and include an unknown route. Do not force uncertain items into a confident category.
Fan out and synthesize
Map independent items to agents, wait for all results, then give a bounded set of structured outputs to one synthesis agent.
Use it for broad audits, research, and repeated checks. The synthesis step is a barrier: it runs only after the fan-out settles. Return coverage and failures with the synthesis so missing work stays visible.
Adversarial verification
Separate production from judgment. A worker proposes a finding or change; another agent checks it against an explicit rubric and evidence.
Use it when false positives, unsupported claims, or self-review bias would be costly. A verifier must receive the original requirement and evidence, not only the worker's conclusion.
Generate and filter
Ask several agents for candidates, normalize and deduplicate them, then use a
자주 묻는 질문
작은 작업에도 유용한가요?
아니요. 에이전트가 많으면 시간과 토큰이 더 들므로, 넓거나 체계적인 작업에만 쓰세요.
모든 에이전트의 전체 출력을 보게 되나요?
아니요. 최종 요약만 대화에 돌아오지만, 진행 상황과 로그는 도구 호출 안에 계속 보입니다.
워크플로가 자신의 결과를 점검할 수 있나요?
네. 결과를 만들지 않은 별도의 에이전트를 사용해 결과에 이의를 제기할 수 있습니다.
상세 정보
작성자의 원본 설명
Designs and runs task-specific JavaScript harnesses with the `workflow` tool. Use for broad, long-running, highly structured, or adversarial work that benefits from many isolated agents: exhaustive audits, root-cause investigations, research, large triage queues, competing proposals, repeated verification, and independent changes across disjoint files. Covers decomposition patterns, agent and model routing, structured handoffs, failure handling, and the workflow runtime API.
repo: PostHog/posthog
인기도
- GitHub 스타
- 41k
- 순위
- #6822
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
depot-ci
41k에이전트가 GitHub Actions 대안인 Depot CI 워크플로를 설정하고 실행하도록 돕습니다. 기존 워크플로 이전과 실행 로그 읽기를 포함합니다.
depot-container-builds
41k에이전트가 Depot 원격 빌더에서 Docker 이미지를 빌드하도록 돕습니다. 다중 플랫폼 이미지, 레지스트리 푸시, 빌드 실패 수정을 포함합니다.
depot-github-runners
41k에이전트가 GitHub Actions 작업을 Depot 관리형 러너로 옮기고, 러너 크기와 라벨을 고르도록 돕습니다.
editing-agents-md
41k에이전트가 규칙을 AGENTS.md나 CLAUDE.md 중 어디에 둘지 정하고, 파일을 키우지 않으면서 잘 지켜지도록 쓰게 돕습니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.