dynamic-workflow
Skill này làm gì
Skill cấu trúc các công việc lớn có nhiều phần tương tự, như một tác vụ cho mỗi tệp hoặc endpoint, thành một script theo dõi mọi kết quả. Dành cho lập trình viên chạy công việc theo lô lớn với agent Hermes.
Khi nào nên dùng
- ✓Khi một tác vụ có nhiều đơn vị riêng hơn một cuộc trò chuyện có thể chứa, như hàng chục tệp.
- ✓Khi bạn muốn nhiều vòng thử được kiểm tra bởi một người rà soát riêng.
- ✓Khi một đợt tái cấu trúc hoặc sửa lỗi lớn phải được chia thành các đợt worker song song.
Liên kết skill
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/autonomous-ai-agents/dynamic-workflow/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Cập nhật xử lý lỗi trong tất cả 60 tệp endpoint API, và kiểm tra từng tệp trước khi báo lại cho tôi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent viết một script giữ kế hoạch và vòng lặp, gửi các đơn vị công việc tới agent trợ giúp song song, và ghi mỗi kết quả xuống đĩa. Chỉ những kết quả đã được kiểm chứng mới quay về cuộc trò chuyện chính.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Khi nào không đáng dùng skill này?
Skill nói nên bỏ qua khi có ít hơn khoảng mười đơn vị, hoặc với các bước phải chạy nối tiếp nhau.
Công việc có tồn tại qua một lần khởi động lại không?
Không. Skill nói nó không làm cho các tác vụ con bền vững qua các lần khởi động lại.
Công việc được lưu ở đâu?
Trong một thư mục chạy duy nhất bên trong thư mục tạm của hệ thống, không phải một đường dẫn cố định như /tmp.
Chi tiết
Mô tả gốc của tác giả
Plan-in-code fan-outs, adversarial verification, waves.
Độ phổ biến
- Sao GitHub
- 260k
- Vị trí xếp hạng
- #441
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
agent-merge-conflict-arbiter
260kGiải quyết xung đột merge git giữa nhánh của hai agent với vai trò bên trung lập, tạo ra một kết quả merge duy nhất cho repo.
antigravity-cli
260kHướng dẫn bạn cài đặt, cập nhật và khắc phục sự cố công cụ dòng lệnh Antigravity, gồm plugin, đăng nhập và sandbox.
blackbox
260kCho phép agent của bạn giao một tác vụ lập trình cho công cụ dòng lệnh Blackbox AI, công cụ chạy nhiều mô hình và chọn kết quả tốt nhất.
grok
260kCho phép agent của bạn giao việc lập trình cho Grok Build CLI của xAI, để xây tính năng, tái cấu trúc, rà soát pull request hoặc sửa issue hàng loạt.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.