dynamic-workflows
Qué hace
Esta skill permite a la IA ejecutar un flujo de trabajo personalizado para tareas amplias y largas, como auditorías o investigaciones grandes, en las que muchos agentes independientes se encargan cada uno de una parte. Está pensada para quienes tienen trabajos demasiado grandes para una sola conversación.
Cuándo usarla
- ✓Cuando necesitas una auditoría o revisión de muchos archivos, registros o sistemas.
- ✓Cuando una tarea es tan grande que una sola conversación perdería el hilo de los detalles.
- ✓Cuando quieres que varios agentes prueben ideas competidoras antes de elegir una.
Link de la skill
https://github.com/PostHog/posthog/blob/master/packages/agent/packages/harness/src/extensions/orchestration/skills/dynamic-workflows/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Revisa todos nuestros artículos de ayuda en busca de precios desactualizados y dame un resumen breve de lo que hay que corregir.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La IA escribe un pequeño script que lanza muchos agentes concentrados, cada uno con un contexto nuevo. El script ordena los resultados, comprueba si hace falta más trabajo y te devuelve solo un resumen breve.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Es útil para tareas pequeñas?
No. Muchos agentes tardan más y consumen más tokens, así que úsalo solo para trabajos amplios o muy estructurados.
¿Veré la salida completa de cada agente?
No. Solo vuelve a tu conversación el resumen final, aunque el progreso y los registros siguen visibles en la llamada a la herramienta.
¿Puede el flujo comprobar sus propios hallazgos?
Sí. Puede usar un agente separado que no haya producido el resultado para cuestionarlo.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 41 mil
- Posición en el ranking
- #6822
- Licencia
- —
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
depot-ci
41 milAyuda a tu agente a configurar y ejecutar flujos de Depot CI, una alternativa a GitHub Actions, y a leer los registros de ejecución.
depot-container-builds
41 milAyuda a tu agente a crear imágenes de Docker en los constructores remotos de Depot, incluidas las multiplataforma, y a corregir fallos.
depot-github-runners
41 milAyuda a tu agente a pasar los trabajos de GitHub Actions a runners gestionados por Depot, elegir su tamaño y etiquetas y resolver problemas de configuración.
editing-agents-md
41 milAyuda a tu agente a decidir si una regla debe ir en un archivo AGENTS.md o CLAUDE.md, y a escribirla para que se cumpla sin sobrecargar el archivo.
Skills parecidas
add-model-provider
394 milPermite que tu agente conecte un nuevo proveedor de modelos de IA a OpenClaw con comandos de configuración seguros, mantenga las claves API fuera del texto plano y haga una prueba en vivo.
acp-router
394 milAyuda a tu agente a enviar una tarea a un asistente de programación como Claude Code o Cursor a través de OpenClaw, para que el trabajo se ejecute en esa herramienta.
browser-automation
394 milEnseña a tu agente a controlar páginas web paso a paso, incluidos los inicios de sesión, las pestañas y la recuperación cuando una página deja de responder.