dynamic-workflow
できること
このスキルは、ファイルごとやエンドポイントごとに1つのタスクのような、多数の似た部分を持つ大きな作業を、すべての結果を追跡するスクリプトとして構造化します。Hermesエージェントで大規模なバッチ作業を動かす開発者のためのものです。
使う場面
- ✓1つの会話が保持できる以上の、別々の単位があるタスクのとき。例えば数十のファイル。
- ✓別のレビュー担当者が確認する、数回の試行を行いたいとき。
- ✓大規模なリファクタリングや修正を、並列のワーカーの波に分割する必要があるとき。
スキルのリンク
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/autonomous-ai-agents/dynamic-workflow/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“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
よくある質問
このスキルが割に合わないのはどんな場合ですか?
単位が約10個未満の場合や、順番に実行されなければならない手順の場合は、このスキルを使わないよう述べています。
再起動後も作業は残りますか?
いいえ。スキルは、ヘルパーのタスクを再起動をまたいで永続化するものではないと述べています。
作業はどこに保存されますか?
システムの一時ディレクトリ内の、一意の実行フォルダに保存されます。/tmpのような固定のパスではありません。
詳細
人気
- GitHubのスター
- 260k
- ランキング
- #441
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
agent-merge-conflict-arbiter
260k並行して動く2つのエージェントのブランチ間のgitマージ競合を、中立的な第三者として解決し、リポジトリに1つのマージ結果を作ります。
antigravity-cli
260kAntigravityのコマンドラインツールのインストール、更新、トラブルシューティングをガイドし、そのプラグイン、サインイン、サンドボックスも扱います。
blackbox
260kBlackbox AIのコマンドラインツールに、コーディングのタスクを渡します。このツールは複数のAIモデルを動かし、最も良い結果を選びます。
grok
260kxAIのGrok Build CLIに、コーディング作業を渡すようエージェントを支援します。機能の構築、リファクタリング、プルリクエストのレビュー、イシューの一括修正に使えます。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。