dynamic-workflow
Что он делает
Он структурирует крупные задачи со множеством однотипных частей, например одну задачу на файл или конечную точку, как скрипт, который отслеживает каждый результат. Он нужен разработчикам, которые запускают большие пакетные задачи с агентом Hermes.
Когда использовать
- ✓Когда у задачи больше отдельных частей, чем может вместить один разговор, например десятки файлов.
- ✓Когда хотите, чтобы несколько раундов попыток проверял отдельный рецензент.
- ✓Когда большой рефакторинг или исправление нужно разбить на волны параллельных исполнителей.
Ссылка на скилл
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/autonomous-ai-agents/dynamic-workflow/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Обновите обработку ошибок во всех 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.
Подробности
Оригинальное описание автора
Plan-in-code fan-outs, adversarial verification, waves.
Популярность
- Звёзды на GitHub
- 260k
- Место в рейтинге
- #441
- Лицензия
- MIT
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
agent-merge-conflict-arbiter
260kРазрешает конфликт слияния git между ветками двух агентов как нейтральная третья сторона и создает один объединенный результат для репозитория.
antigravity-cli
260kПомогает установить, обновить и устранить неполадки в командной строке Antigravity, включая плагины, вход в аккаунт и песочницу.
blackbox
260kПозволяет агенту передать задачу по коду инструменту командной строки Blackbox AI, который запускает несколько ИИ-моделей и выбирает лучший результат.
grok
260kПозволяет агенту передавать работу по коду в Grok Build CLI от xAI: для создания функций, рефакторинга, проверки запросов на слияние или исправления пакетов задач.
Похожие скиллы
add-model-provider
394kПомогает агенту подключить нового провайдера ИИ-моделей к OpenClaw безопасными командами, хранить ключи API не в открытом виде и провести живой тест.
acp-router
394kПомогает агенту передать задачу инструменту для программирования, например Claude Code или Cursor, через OpenClaw, чтобы работа шла в этом инструменте.
browser-automation
394kУчит агента пошагово управлять веб-страницами: входить в аккаунты, работать с вкладками и восстанавливаться, если страница перестала отвечать.