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

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

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

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

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 subagent parallel 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:

  1. Final outcome: what compact value must the workflow return?
  2. Work units: what list will the script iterate over?
  3. Evidence: what must each worker cite or return?
  4. Rubric: what makes an item pass, fail, rank higher, or require another pass?
  5. Coverage: how will the result prove that every required item was processed?
  6. Failure policy: which failures may become null, and which must stop the workflow?
  7. 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.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬