workspace-dispatch
Skill này làm gì
Cho phép agent của bạn chia một mục tiêu thành tối đa sáu tác vụ, chạy mỗi tác vụ như một worker riêng, kiểm tra từng kết quả bằng các bài kiểm tra đơn giản và thử lại khi cần. Nó dành cho người muốn một công việc nhiều bước được hoàn thành mà không phải can thiệp.
Khi nào nên dùng
- ✓Khi bạn có một mục tiêu lớn hơn nên được chia thành nhiều tác vụ nhỏ.
- ✓Khi bạn muốn mỗi tác vụ được kiểm tra tự động trước khi tác vụ tiếp theo bắt đầu.
- ✓Khi bạn muốn một bản tóm tắt sau khi mọi tác vụ đã hoàn thành.
Liên kết skill
https://github.com/outsourc-e/hermes-workspace/blob/main/skills/workspace-dispatch/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
“Chia tính năng này thành vài tác vụ, để mỗi tác vụ được xây và kiểm tra, rồi báo cho tôi khi tất cả xong.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent viết một danh sách ngắn các tác vụ, mỗi tác vụ có các kiểm tra có thể chạy trong shell. Nó khởi động một worker cho mỗi tác vụ, kiểm tra kết quả và thử lại một tác vụ khi kiểm tra của nó thất bại.
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.
Workspace Dispatch (Single Agent)
You are an autonomous mission orchestrator. Decompose work into tasks, spawn one worker per task, verify output, chain to the next — no user intervention needed.
Flow
- Decompose the goal into 2-6 tasks with machine-checkable exit criteria
- For each task: spawn a worker → wait → verify exit criteria → approve or retry
- Report summary when all tasks complete
Decomposition Rules
- Max 6 tasks — keep it focused
- Every task needs exit criteria verifiable with shell commands:
test -f /path— file existsnpx tsc --noEmit— compilesgrep -q "keyword" /path— contains expected contentwc -c < /path | awk '$1 > 100'— file has real content
- No vague criteria — must be machine-checkable
- Include working directory (
cwd) for each task - Each task is independent — worker gets full context, no shared state between workers
Task Types
| Type | Worker Does | Verify With |
|---|---|---|
| coding | Write code, create files | file exists, tsc passes |
| research | Search, read, synthesize | output file exists with content |
| review | Read code, check behavior | reviewer outputs PASS verdict |
Dispatch Loop
For each task (in dependency order):
1. Spawn worker:
sessions_spawn(
task: <worker prompt>,
label: "worker-<task-slug>",
mode: "run",
runTimeoutSeconds: 600
)
2. sessions_yield() — wait for worker
3. Verify exit criteria via exec commands
4. If ALL pass → mark complete, next task
5. If ANY fail → retry (max 3) with error context, then fail + skip dependents
Worker Prompt
Give each worker everything it needs in one prompt:
## Mission: {goal}
## Your Task: {task.title}
{task.description}
Working directory: {cwd}
## Exit Criteria (you MUST satisfy ALL):
- {criterion_1}
- {criterion_2}
## Rules
- Do NOT start servers or long-running processes
- Do NOT modify files outside your working directory
- Verify your own work before finishing — run the exit criteria commands yourself
- Commit only if the mission explicitly allows commits; otherwise leave changes uncommitted and report them
On retry, append:
## ⚠️ Previous attempt failed (attempt {n}/3)
Error: {what went wrong}
Fix this specific issue.
Completion
When all tasks done, output:
✅ Mission complete: {goal}
Tasks:
- ✅ {title} — verified
- ✅ {title} — verified
Output: {project_path}
Duration: {elapsed}
Failure Handling
| Failure | Action |
|---|---|
| Worker timeout | Retry with simpler scope |
| Exit criteria fail | Retry with specific error |
| 3 retries exhausted | Mark failed, skip dependents, continue |
Rules
- One worker per task, default model, no critic
- Workers self-verify (exit criteria are the quality gate)
- Don't hardcode model names — use whatever's available
- Don't hold state in memory — be ready for context loss
- Don't start servers in tasks
Câu hỏi thường gặp
Tôi có cần duyệt từng bước không?
Không. Skill được thiết kế để chạy không cần người dùng nhập liệu và báo cáo tóm tắt ở cuối.
Có thể tạo tối đa bao nhiêu tác vụ?
Không quá sáu, để công việc luôn tập trung.
Có reviewer riêng kiểm tra công việc không?
Không. Mỗi worker tự kiểm tra kết quả của mình, và không có bước critic riêng.
Chi tiết
Mô tả gốc của tác giả
Single-agent mission orchestrator. Decomposes a mission into tasks, spawns one worker per task using the default model, verifies exit criteria, and chains tasks with retry. No critic pattern — each worker self-verifies. Simple, fast, works with any model config.
Độ phổ biến
- Sao GitHub
- 6.8k
- Vị trí xếp hạng
- #13732
- Giấy phép
- MIT
- Cập nhật
- 1/11/2026
Bình luận
- …
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.