dynamic-workflow
O que ela faz
Estrutura trabalhos grandes com muitas partes semelhantes, como uma tarefa por arquivo ou por endpoint, como um script que acompanha cada resultado. É indicado para desenvolvedores que rodam trabalhos em lote grandes com o agente Hermes.
Quando usar
- ✓Quando uma tarefa tem mais unidades separadas do que uma conversa consegue conter, como dezenas de arquivos.
- ✓Quando você quer várias rodadas de tentativas conferidas por um revisor separado.
- ✓Quando uma refatoração ou correção grande precisa ser dividida em ondas de trabalhadores paralelos.
Link da skill
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/autonomous-ai-agents/dynamic-workflow/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Atualize o tratamento de erros nos 60 arquivos de endpoints da API e confira cada um antes de me responder.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente escreve um script que guarda o plano e o laço, envia unidades de trabalho a agentes auxiliares em paralelo e registra cada resultado no disco. Só os resultados verificados voltam para a conversa principal.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Quando esta skill não vale a pena?
A skill diz para não usá-la com menos de cerca de dez unidades, ou para etapas que precisam rodar uma após a outra.
O trabalho sobrevive a uma reinicialização?
Não. A skill diz que ela não torna as tarefas auxiliares duráveis entre reinicializações.
Onde o trabalho é salvo?
Em uma pasta de execução única dentro do diretório temporário do sistema, e não em um caminho fixo como /tmp.
Detalhes
Descrição original do autor
Plan-in-code fan-outs, adversarial verification, waves.
Popularidade
- Estrelas no GitHub
- 260 mil
- Posição no ranking
- #441
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
agent-merge-conflict-arbiter
260 milResolve um conflito de merge no git entre as branches de dois agentes como terceiro neutro, produzindo um único resultado unificado para o repositório.
antigravity-cli
260 milOrienta você na instalação, atualização e solução de problemas da ferramenta de linha de comando Antigravity, incluindo plugins, login e sandbox.
blackbox
260 milPermite que seu agente entregue uma tarefa de programação para a ferramenta de linha de comando Blackbox AI, que roda vários modelos de IA e escolhe o melhor resultado.
grok
260 milPermite que seu agente entregue trabalhos de código à Grok Build CLI da xAI, para construir funcionalidades, refatorar, revisar pull requests ou corrigir lotes de issues.
Skills parecidas
add-model-provider
394 milPermite que seu agente conecte um novo provedor de modelos de IA ao OpenClaw com comandos seguros, guarde as chaves de API com segurança e faça um teste ao vivo.
acp-router
394 milAjuda seu agente a enviar uma tarefa a um assistente de programação, como Claude Code ou Cursor, pelo OpenClaw, para que o trabalho rode nessa ferramenta.
browser-automation
394 milEnsina seu agente a controlar páginas web passo a passo, incluindo logins, abas e recuperação quando uma página para de responder.