跳到正文
Skillpedia
智能体15k · #11004

orchestrate

它能做什么

该技能把大任务拆成若干部分,通过脚本在并行的云端智能体上运行。适合有大型工作、并希望最后得到一份结构化结果的开发者。

适用场景

  • ✓当你输入 /orchestrate 并给出一个可以拆分成许多部分的大目标的时候。
  • ✓当一项工作需要许多工作者,并需要一个规划者来协调他们的结果的时候。
  • ✓当你希望云端智能体以结构化的方式回报结果的时候。

技能链接

https://github.com/cursor/plugins/blob/main/orchestrate/skills/orchestrate/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“/orchestrate 把全部四十个服务从旧的日志库迁移到新的日志库。”

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

工作原理

规划者会写一个计划文件,脚本会为每项任务启动云端智能体,智能体回传结构化的交接内容。规划者读取这些结果,以决定下一步。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Orchestrate

An explicit /orchestrate <goal> fans out a large task across parallel Cursor cloud agents. Workers don't talk to each other; they talk up through structured handoffs. The spawn, wait, and handoff loop lives in scripts/cli.ts. The planner writes plan.json, the script executes it, and the planner reads handoffs to decide what comes next. Long-running agent loops drift; a script with a JSON state file keeps its footing.

Required reading: the cursor-sdk skill (cursor/plugins/cursor-sdk). Spawning, auth, and the error taxonomy live there. Don't reimplement what that skill already documents.

Setup

  • CURSOR_API_KEY must be a personal/user key. Create it from Cursor Dashboard > Integrations, then read cursor-sdk Auth before using it.
  • SLACK_BOT_TOKEN is optional. When set, pass --slack-channel <id> to kickoff or the first run --root, or set SLACK_CHANNEL_ID. The script stores the channel in plan.slackChannel, posts the kickoff thread there, mirrors task status, and reads Andon reactions. When the token is unset, the script logs once and runs without Slack visibility; correctness does not change.

Core principles

These rules make the tree self-converging without global coordination.

  1. Planners own scopes and publish tasks. They do no coding. Writing plan.json, reading handoffs, and deciding what's next are planner work. Editing files, running git merge, and fixing conflicts inline are not. If a planner feels the urge to code, it publishes a task for a worker instead.
  2. Planners don't know who picks up their tasks. The script routes each task to a cloud agent. The planner's mental model stays at the task level.
  3. Workers are isolated. One task, one clone of the repo, no channel to any other agent. One handoff when done.
  4. Subplanners are recursive planners. A planner publishes a "subplan this slice" task; the subplanner fully owns that slice and hands back an aggregated handoff.
  5. Continuous motion via handoffs. A planner that thought it was done can receive a late handoff and replan. No "finished" state until the planner decides to stop publishing.
  6. Propagation, not synchronization. No cross-talk between siblings. No shared state between levels. Each level sees only its children's handoffs.

Node types

Node Runs the loop? Scope Output
Planner yes Entire user goal User-facing message + optional PR
Subplanner (↻) yes One slice of parent's scope Handoff to parent
Worker no One concrete task Handoff to spawning planner
Verifier no One target's acceptance criteria Verdict handoff to spawning planner
Git n/a Shared medium Branches (code) + handoffs/ (meaning)

Role

Two roles, one skill. Read your role's reference file and skip the other.

Dispatcher. You're in a local IDE session and the user typed /orchestrate <goal>. Your job is to kick off a cloud root planner and return its URL. See references/dispatcher.md. One-shot; you are not the planner.

Planner (root or sub). You were spawned with a structured prompt that opens with "You are the root planner for:" or "You are a subplanner for:". Or the user chose to run the planning loop locally. You own a scope, publish tasks, read handoffs, decide what's next. See references/planner.md.

disable-model-invocation: true means this skill loads only on explicit invocation.

常见问题

没有这个命令它能运行吗?

不能。该技能只有在你明确输入 /orchestrate 时才会运行,不会自行运行。

它需要 Slack 吗?

不需要。Slack 是可选的,只会在频道中添加状态更新。

工作者之间会互相通信吗?

不会。工作者通过结构化的交接内容向规划者汇报。

详情

作者的原始描述

Use only when the user explicitly types `/orchestrate <goal>` to decompose a large task, spawn a tree of parallel cloud-agent workers/subplanners/verifiers via the Cursor SDK, and collect structured handoffs; do not invoke autonomously.

repo: cursor/plugins

热度

GitHub 星标
15k
排名
#11004
许可证
—
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能