跳到正文
Skillpedia
智能体6.8k · #13732

workspace-dispatch

它能做什么

让你的智能体把一个目标拆分成最多六项任务,每项任务作为独立的工作者运行,用简单的测试检查每项结果,并在需要时重试。适合希望多步骤工作无需人工介入即可完成的人。

适用场景

  • ✓当你有一个较大的目标,应拆分为几个较小的任务时。
  • ✓当你希望每项任务在下一项开始前自动检查时。
  • ✓当所有任务完成后,你希望得到一份摘要的时候。

技能链接

https://github.com/outsourc-e/hermes-workspace/blob/main/skills/workspace-dispatch/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/outsourc-e/hermes-workspace/blob/main/skills/workspace-dispatch/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请把这个功能拆分成几项任务,让每项都被构建并检查,全部完成后告诉我。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会写出一份简短的任务清单,每项任务都附带可在 shell 中运行的检查。它为每项任务启动一个工作者,检查结果,并在检查失败时重试该任务。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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

  1. Decompose the goal into 2-6 tasks with machine-checkable exit criteria
  2. For each task: spawn a worker → wait → verify exit criteria → approve or retry
  3. 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 exists
    • npx tsc --noEmit — compiles
    • grep -q "keyword" /path — contains expected content
    • wc -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
常见问题

每一步都需要我批准吗?

不需要。该技能设计为无需用户输入即可运行,并在结束时给出摘要。

它最多能创建多少项任务?

不超过六项,以保证工作集中。

会有单独的审核者检查工作吗?

没有。每个工作者检查自己的输出,没有单独的评审步骤。

详情

作者的原始描述

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.

repo: outsourc-e/hermes-workspace

热度

GitHub 星标
6.8k
排名
#13732
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

相似技能