Zum Inhalt springen
Skillpedia
Agenten41k · #6822

dynamic-workflows

Was er macht

Dieser Skill lässt die KI einen eigenen Workflow für breite, lange Aufgaben wie große Audits oder Recherchen ausführen, bei denen viele getrennte Agenten je einen Teil übernehmen. Er richtet sich an Menschen mit Arbeit, die für ein einzelnes Gespräch zu groß ist.

Wann du ihn nutzt

  • ✓Wenn du ein Audit oder eine Prüfung vieler Dateien, Datensätze oder Systeme brauchst.
  • ✓Wenn eine Aufgabe so groß ist, dass ein einzelnes Gespräch die Details verlieren würde.
  • ✓Wenn du mehrere Agenten konkurrierende Ideen ausprobieren lassen willst, bevor du dich entscheidest.

Link zum Skill

https://github.com/PostHog/posthog/blob/master/packages/agent/packages/harness/src/extensions/orchestration/skills/dynamic-workflows/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/PostHog/posthog/blob/master/packages/agent/packages/harness/src/extensions/orchestration/skills/dynamic-workflows/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Prüfe alle unsere Hilfeartikel auf veraltete Preisangaben und gib mir eine kurze Zusammenfassung, was korrigiert werden muss.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Die KI schreibt ein kleines Skript, das viele fokussierte Agenten startet, jeweils mit frischem Kontext. Das Skript sortiert die Ergebnisse, prüft, ob weitere Arbeit nötig ist, und gibt dir nur eine kurze Zusammenfassung zurück.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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

Häufige Fragen

Ist das für kleine Aufgaben nützlich?

Nein. Viele Agenten brauchen mehr Zeit und mehr Tokens, deshalb nutze das nur für breite oder stark strukturierte Arbeit.

Sehe ich die vollständige Ausgabe jedes Agenten?

Nein. Nur die finale Zusammenfassung kommt in dein Gespräch zurück, Fortschritt und Protokolle bleiben aber im Werkzeugaufruf sichtbar.

Kann der Workflow seine eigenen Ergebnisse prüfen?

Ja. Er kann einen separaten Agenten einsetzen, der kein Ergebnis erzeugt hat, um es zu hinterfragen.

Details

Originalbeschreibung des Autors

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

Beliebtheit

GitHub-Sterne
41k
Platz im Ranking
#6822
Lizenz
—
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills