dynamic-workflow
하는 일
파일 하나당 작업 하나처럼 개별 단위가 많은 큰 작업을, 모든 결과를 추적하는 스크립트로 구성하는 방법을 안내합니다. Hermes 에이전트로 대규모 배치 작업을 실행하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓한 대화가 담을 수 없을 만큼 많은 별도 단위, 예를 들어 수십 개의 파일이 있는 작업을 할 때.
- ✓별도의 검토자가 확인하는 여러 차례의 시도를 원할 때.
- ✓큰 리팩터링이나 수정을 병렬 작업자의 여러 차례로 나누어야 할 때.
스킬 링크
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/autonomous-ai-agents/dynamic-workflow/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“60개의 API 엔드포인트 파일 모두에서 오류 처리를 업데이트하고, 각각 확인한 뒤 결과를 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 계획과 반복을 담은 스크립트를 쓰고, 작업 단위를 병렬로 도우미 에이전트에 보내며, 각 결과를 디스크에 기록합니다. 검증된 결과만 메인 대화로 돌아옵니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Dynamic Workflow Skill
Runs large fan-out work as a workflow: the plan, the loop and every intermediate
result live in a script and on disk, so the parent's context holds only verified
results. Covers one-shot fan-outs, adversarial convergence (attempts + refuters),
and multi-wave campaigns that integrate dozens of worker branches. It does not
make delegate_task durable across restarts; that is the kanban swarm's job.
When to Use
Reach for it when the unit of work is clear (a file, an endpoint, a record) and
there are more units than one context can hold. Skip it for under ~10 units or
for serial chains. For a refactor or fix campaign on hermes-agent itself, load
hermes-agent (the dev workflow) alongside; this skill owns the fan-out shape.
Prerequisites
delegate_taskavailable anddelegation.max_concurrent_childrensized for the wave (default 10; the runtime rejects atasks=[]larger than that with a clear error rather than queueing).delegation.max_spawn_depth >= 2only if children must fan out themselves.
- A writable run directory resolved from the terminal environment's temp dir (
$TMPDIR, else the platform temp dir). Never a literal/tmp: Termux has no such directory and native Windows breaks on it. Use<tmp>/wf_<name>_<uuid>/, unique per run, so an interrupted earlier run cannot leave stale outputs to be misread. execute_codefor the deterministic layer (onlyweb_search,web_extract,read_file,write_file,search_files,terminal,patchexist inside it).
How to Run
Two layers, split by a real capability boundary:
Layer A - execute_code script |
Layer B - delegate_task batch |
|
|---|---|---|
| Use for | DETERMINISTIC work: fetch N URLs, parse N files, run N commands, template N outputs, build manifests, merge outputs | LLM-JUDGMENT work: classify, review, decide, write, refute, refactor one unit |
| Holds | loop, branching, intermediate variables | nothing; one call with tasks=[...], each task its own isolated agent |
| Tools | the sandbox set above; it can NOT call delegate_task |
the parent's toolsets, inherited unchanged (no per-task narrowing); children lose delegate_task, clarify, memory, send_message, cronjob_manage |
| Concurrency | yours (ThreadPoolExecutor, batches) |
bounded by delegation.max_concurrent_children |
| Cost | tool calls only | one full agent tree per task; multiplies linearly |
Do the deterministic part in Layer A first, fan out only the irreducibly-LLM step in Layer B, synthesize on the parent.
Background-first: results re-enter as messages
A top-level delegate_task returns immediately with one handle per task; each
child's result re-enters the conversation as a new message when it finishes. You
cannot read out_*.csv on the line after the call. Finish whatever does not
depend on the children, give a one-line status, and END YOUR TURN; act on each
result message as it lands. An ordinary follow-up user message does not cancel
children; /stop, /new and process exit do. Only a delegation issued by an
orchestrator subagent (depth > 0) is synchronous.
Quick Reference
- Unit must be answerable without sibling output, else it is serial.
- Manifest: one unit per line in
<run>/manifest.jsonl; print count + run dir. - Per child: ~8-12 mechanical edits, or ~2-3k lines of reading, or ~50-70 KB of
corpus; size by the LARGEST unit. Structured output goes to files, never the
summaryfield (it truncates under load); delimiter-separated lines over JSON. - Parent verifies file count and per-run freshness before merging.
- A "stalled" child usually completed its write; check the filesystem first.
- Scoped slice first (one directory, 20 records), report token cost, then scale.
Procedure
One-shot fan-out
- Decompose into independent units.
- Layer A pre-pass writes the manifest.
- Size chunks against the limits above; for more tasks than
max_concurrent_children, issue bounded waves yourself. - Layer B: one
delegate_task(tasks=[...]); each task reads its slice, writes<run>/out_<i>.csv, prints a status word, stops. - End the turn. As result messages arrive, read the files, verify, merge; the cross-cutting synthesis stays on the parent.
Adversarial convergence (finding-quality work)
- Independent attempts: the SAME question to N children (2-4) with DIFFERENT
framings in each
context, each writi
자주 묻는 질문
이 스킬을 쓰지 않는 것이 나은 경우는 언제인가요?
작업 단위가 열 개 미만이거나, 순서대로 실행해야 하는 단계라면 이 스킬을 건너뛰라고 합니다.
재시작 후에도 작업이 유지되나요?
아닙니다. 재시작 후에도 도우미 작업이 지속되도록 만들지는 않는다고 스킬은 설명합니다.
작업은 어디에 저장되나요?
/tmp처럼 고정된 경로가 아니라, 시스템 임시 디렉터리 안의 고유한 실행 폴더에 저장됩니다.
상세 정보
인기도
- GitHub 스타
- 260k
- 순위
- #441
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
agent-merge-conflict-arbiter
260k병렬로 작업한 두 에이전트 브랜치 사이의 git 병합 충돌을 중립적인 제3자로서 해결하고, 저장소에 하나의 병합 결과를 만듭니다.
antigravity-cli
260kAntigravity 명령줄 도구의 설치, 업데이트, 플러그인, 로그인, 샌드박스 문제를 해결하도록 단계별로 안내합니다.
blackbox
260k에이전트가 여러 AI 모델을 실행해 최선의 결과를 고르는 Blackbox AI 명령줄 도구에 코딩 작업을 맡기도록 돕습니다.
grok
260k에이전트가 xAI의 Grok Build CLI에 기능 구현, 리팩터링, 풀 리퀘스트 검토, 이슈 일괄 수정 같은 코딩 작업을 맡기도록 돕습니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.