मुख्य सामग्री पर जाएँ
Skillpedia
एजेंट41k · #6822

dynamic-workflows

यह क्या करती है

यह स्किल AI को बड़े और लंबे कामों, जैसे बड़े ऑडिट या रिसर्च, के लिए कस्टम वर्कफ़्लो चलाने देती है, जहाँ कई अलग एजेंट हर हिस्से को संभालते हैं। यह उन लोगों के लिए है जिनका काम एक बातचीत में समाने के लिए बहुत बड़ा है।

कब इस्तेमाल करें

  • ✓जब आपको बहुत सारी फ़ाइलों, रिकॉर्ड या सिस्टम का ऑडिट या समीक्षा करनी हो।
  • ✓जब काम इतना बड़ा हो कि एक ही बातचीत में विवरण खो जाएँ।
  • ✓जब आप चाहें कि कई एजेंट एक विचार चुनने से पहले अलग-अलग विचार आज़माएँ।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/PostHog/posthog/blob/master/packages/agent/packages/harness/src/extensions/orchestration/skills/dynamic-workflows/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“हमारे सभी help articles में पुरानी कीमतें जाँचिए और मुझे यह बताइए कि क्या ठीक करना है, छोटे सारांश में।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

AI एक छोटी स्क्रिप्ट लिखता है जो कई केंद्रित एजेंट शुरू करती है, और हर एक नए संदर्भ के साथ काम करता है। स्क्रिप्ट नतीजों को छाँटती है, जाँचती है कि और काम चाहिए या नहीं, और आपको केवल एक छोटा सारांश लौटाती है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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

अक्सर पूछे जाने वाले सवाल

क्या यह छोटे कामों के लिए उपयोगी है?

नहीं। कई एजेंट ज़्यादा समय और ज़्यादा टोकन लेते हैं, इसलिए इसे केवल बड़े या बहुत संरचित कामों के लिए इस्तेमाल करें।

क्या मुझे हर एजेंट का पूरा आउटपुट दिखेगा?

नहीं। आपकी बातचीत में केवल अंतिम सारांश लौटता है, हालाँकि प्रगति और लॉग टूल कॉल में दिखते रहते हैं।

क्या वर्कफ़्लो अपने नतीजे जाँच सकता है?

हाँ। यह एक अलग एजेंट इस्तेमाल कर सकता है, जिसने वह नतीजा नहीं बनाया, ताकि उसे चुनौती दी जा सके।

जानकारी

लेखक का मूल विवरण

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

लोकप्रियता

GitHub स्टार
41k
रैंकिंग में स्थान
#6822
लाइसेंस
—
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

depot-ci

41k

यह आपके एजेंट को Depot CI वर्कफ़्लो सेट अप करने, चलाने और माइग्रेट करने में मदद करती है, साथ ही रन के लॉग पढ़ने में।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

depot-container-builds

41k

यह आपके एजेंट को Depot के रिमोट बिल्डर पर Docker इमेज बनाने में मदद करती है, जिसमें मल्टी-प्लेटफ़ॉर्म इमेज और बिल्ड सुधार शामिल हैं।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

depot-github-runners

41k

यह आपके एजेंट को GitHub Actions जॉब Depot के मैनेज्ड रनर पर ले जाने, रनर का साइज़ और लेबल चुनने, और रनर सेटअप की समस्याएँ ठीक करने में मदद करती है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

editing-agents-md

41k

यह आपके एजेंट को तय करने में मदद करती है कि कोई नियम AGENTS.md या CLAUDE.md में जाए या नहीं, और उसे ऐसे लिखे कि फ़ाइल भारी न हो।

AI और एजेंटएजेंट

मिलती-जुलती skills