plan-orchestrate
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePlan Orchestrate
计划编排
Bridge a plan document to by emitting one ready-to-paste invocation per step. The skill is generative only — it never executes . The user pastes each line when ready.
/orchestrate custom/orchestrate通过为每个步骤生成一个可直接粘贴的调用命令,将计划文档与打通。本技能仅负责生成内容——绝不执行。用户可在准备就绪时粘贴每一行命令。
/orchestrate custom/orchestrateWhen to Activate
激活场景
- User has a multi-step plan document (PRD, RFC, implementation plan) and wants to drive it through .
/orchestrate - User says "orchestrate this plan", "give me orchestrate prompts for each step", "compose chains for this plan".
- A step-by-step plan exists but the user does not want to manually pick agents per step.
Skip when:
- The work is one ad-hoc step → call directly.
/orchestrate custom - The plan is unreadable or empty. Lack of explicit numbering alone is not a skip condition — see the "No clear steps" edge case below.
- 用户拥有多步骤计划文档(PRD、RFC、实施计划),并希望通过执行该计划。
/orchestrate - 用户提出类似“编排这个计划”、“给我每个步骤的orchestrate提示词”、“为这个计划组合链”的需求。
- 存在分步计划,但用户不想为每个步骤手动选择Agent。
跳过场景:
- 工作仅为单个临时步骤→直接调用。
/orchestrate custom - 计划不可读或为空。仅缺少明确编号不构成跳过条件——请参阅下文“步骤不清晰”边缘情况。
Inputs
输入参数
<plan-doc-path> [--lang=python|typescript|go|rust|cpp|java|kotlin|flutter|auto] [--scope=all|step:<n>|range:<a>-<b>] [--dry-run]- — required; relative or absolute path (
<plan-doc-path>accepted).@docs/... - — reviewer language variant; defaults to
--lang(detected from project).auto - — limits emitted steps; defaults to
--scope.all - — print decomposition + chain rationale only; do not emit final prompts.
--dry-run
<plan-doc-path> [--lang=python|typescript|go|rust|cpp|java|kotlin|flutter|auto] [--scope=all|step:<n>|range:<a>-<b>] [--dry-run]- — 必填;相对或绝对路径(支持
<plan-doc-path>格式)。@docs/... - — 评审器语言变体;默认值为
--lang(从项目中自动检测)。auto - — 限制生成的步骤范围;默认值为
--scope。all - — 仅输出步骤分解结果和链设计依据;不生成最终提示词。
--dry-run
Authoritative /orchestrate
shape (do not deviate)
/orchestrate标准/orchestrate
命令格式(请勿偏离)
/orchestrate{ORCH_CMD} custom "<agent1>,<agent2>,...,<agentN>" "<task description>"Where is determined in Phase 0 (see below). The command string in the emitted output always uses one concrete form — never both, never a placeholder.
{ORCH_CMD}- is a sequential chain; each agent's HANDOFF feeds the next.
custom - Comma-separated agent list. No spaces preferred; one space tolerated.
- No /
--mode/--gateflags exist — never invent them.--agents=... - Agent names come from the catalogue in this skill. Embedded double quotes in the task description are escaped as .
\"
{ORCH_CMD} custom "<agent1>,<agent2>,...,<agentN>" "<task description>"其中由阶段0确定(见下文)。生成输出中的命令字符串始终采用一种具体格式——绝不混用两种格式,也不使用占位符。
{ORCH_CMD}- 表示顺序链;每个Agent的HANDOFF结果会传递给下一个Agent。
custom - Agent列表用逗号分隔。优先无空格格式;允许单个空格。
- 不存在/
--mode/--gate等参数——请勿自行添加。--agents=... - Agent名称来自本技能中的目录。任务描述中的嵌入式双引号需转义为。
\"
ECC install form and namespacing
ECC安装形式与命名空间
Two install forms determine the prefix on both the slash command and every agent name. The two MUST stay in sync — one form per output, never mixed:
Let denote the Claude Code home directory: on macOS/Linux, on Windows. Resolve it the way the host platform resolves the user home directory (do not hardcode ).
<claude-home>~/.claude%USERPROFILE%\.claude~| Form | Detection | | Agent name format |
|---|---|---|---|
| Plugin install (1.9.0+) | | | |
| Legacy bare install | Above absent; agent files under | | |
Why this matters: under the plugin install, agents register as . Bare names force fuzzy matching, which fails intermittently under parallel calls. Under legacy, the prefixed forms are not registered and fail outright.
everything-claude-code:tdd-guide两种安装形式决定了斜杠命令和每个Agent名称的前缀。两者必须保持一致——每个输出仅使用一种形式,绝不混用:
用表示Claude Code的主目录:macOS/Linux系统为,Windows系统为。需按照宿主平台解析用户主目录的方式解析该路径(请勿硬编码)。
<claude-home>~/.claude%USERPROFILE%\.claude~| 形式 | 检测方式 | | Agent名称格式 |
|---|---|---|---|
| 插件安装(1.9.0+) | | | |
| 传统裸安装 | 上述目录不存在;Agent文件位于 | | |
为何这一点很重要:在插件安装模式下,Agent注册为形式。裸名称会触发模糊匹配,在并行调用时可能间歇性失败。在传统模式下,带前缀的形式未注册,会直接执行失败。
everything-claude-code:tdd-guideAvailable agent catalogue (must pick from these)
可用Agent目录(必须从中选择)
General:
- — requirement restatement, risk decomposition, step planning
planner - — architecture, system design, refactor proposals
architect - — write tests → implement → 80%+ coverage
tdd-guide - — generic code review
code-reviewer - — security audit, OWASP, secret leakage
security-reviewer - — dead code, duplicates, knip-class cleanup
refactor-cleaner - — documentation, codemap, README
doc-updater - — third-party library API lookups (Context7)
docs-lookup - — end-to-end test orchestration
e2e-runner - — PostgreSQL schema, migration, performance
database-reviewer - — local agent harness configuration
harness-optimizer - — long-running autonomous loops
loop-operator - — multi-channel triage (rarely a fit for plan steps)
chief-of-staff
Build error resolvers:
- (generic) /
build-error-resolver/cpp-build-resolver/go-build-resolver/java-build-resolver/kotlin-build-resolver/rust-build-resolverpytorch-build-resolver
Code reviewers:
- /
python-reviewer/typescript-reviewer/go-reviewer/rust-reviewer/cpp-reviewer/java-reviewer/kotlin-reviewerflutter-reviewer
A misspelled agent name fails . Cross-check against this list before emitting.
/orchestrate通用类:
- — 需求重述、风险分解、步骤规划
planner - — 架构设计、系统设计、重构提案
architect - — 编写测试→实现→覆盖率达80%以上
tdd-guide - — 通用代码评审
code-reviewer - — 安全审计、OWASP合规、密钥泄露检查
security-reviewer - — 死代码清理、重复代码移除、knip类清理
refactor-cleaner - — 文档更新、代码映射、README维护
doc-updater - — 第三方库API查询(基于Context7)
docs-lookup - — 端到端测试编排
e2e-runner - — PostgreSQL schema、迁移、性能优化
database-reviewer - — 本地Agent harness配置优化
harness-optimizer - — 长期运行的自主循环
loop-operator - — 多渠道分类处理(很少适用于计划步骤)
chief-of-staff
构建错误解决器:
- (通用)/
build-error-resolver/cpp-build-resolver/go-build-resolver/java-build-resolver/kotlin-build-resolver/rust-build-resolverpytorch-build-resolver
代码评审器:
- /
python-reviewer/typescript-reviewer/go-reviewer/rust-reviewer/cpp-reviewer/java-reviewer/kotlin-reviewerflutter-reviewer
拼写错误的Agent名称会导致执行失败。生成输出前请对照此列表进行交叉检查。
/orchestrateHow It Works
工作流程
Phase 0 — Detect ECC mode + language
阶段0 — 检测ECC模式与语言
-
Read. If missing or empty, report and stop.
<plan-doc-path> -
Detect ECC install form once and freeze it into. Algorithm (run in order, stop at the first match):
ECC_MODE- If exists →
<claude-home>/plugins/marketplaces/everything-claude-code/.ECC_MODE=plugin - Else if exists and contains at least one ECC agent file (e.g.
<claude-home>/agents/,tdd-guide.md) →code-reviewer.md.ECC_MODE=legacy - Else → default to and emit a one-line warning at the top of the output:
ECC_MODE=legacy> Warning: could not detect ECC install; defaulting to legacy form. If you use the plugin install, edit the prefixes manually. - If both markers exist (mixed install), wins — the plugin namespace is the only one that resolves agent names without fuzzy matching.
plugin
From this point on, every emitted line uses the matching prefix on both the slash command and every agent name. Never emit both forms in the same output. - If
-
Resolve. When
--lang, run a polyglot-aware detection:auto- Probe markers: /
pyproject.toml/uv.lock→ python;requirements.txt→ typescript;package.json→ go;go.mod→ rust;Cargo.tomlor top-levelCMakeLists.txt→ cpp;*.cpp/pom.xml(Java) → java;build.gradleor top-level Kotlin → kotlin;build.gradle.kts→ flutter.pubspec.yaml - Polyglot tie-break: if more than one marker matches, pick the language whose source files outnumber the others (count via , excluding
git ls-files,vendor/,node_modules/,dist/,build/, generated files, and obvious test fixtures). On a tie or when no language exceeds 60% of source files, set.venv/.lang=unknown - No marker matched → set .
lang=unknown - is a sentinel — it is not an agent name. Phase 2 rules 4 and 5 turn it into
lang=unknown/code-reviewerat chain composition time.build-error-resolver
- Probe markers:
-
Detect a PyTorch sub-profile: whenand any of
lang=python/pyproject.toml/requirements.txtdeclares a dependency onuv.lock, settorch. This only affectspytorch=truechain selection (Phase 2 rule below); the reviewer remainsbuild.python-reviewer -
Normalize any agent names declared in the plan: if the plan text references agents by their plugin-prefixed form (e.g.), strip the prefix to get the bare catalogue name before validating or composing chains. Re-prefixing happens only at output time per
everything-claude-code:tdd-guide(Phase 4). Never let a pre-prefixed name flow into chain composition — it would double-prefix in plugin mode.ECC_MODE
-
读取。若文件缺失或为空,报告并终止操作。
<plan-doc-path> -
检测ECC安装形式并将其固定为。检测算法(按顺序执行,匹配到第一个即停止):
ECC_MODE- 若目录存在→
<claude-home>/plugins/marketplaces/everything-claude-code/。ECC_MODE=plugin - 否则,若目录存在且包含至少一个ECC Agent文件(如
<claude-home>/agents/、tdd-guide.md)→code-reviewer.md。ECC_MODE=legacy - 否则→默认设置为,并在输出顶部生成一行警告:
ECC_MODE=legacy> Warning: could not detect ECC install; defaulting to legacy form. If you use the plugin install, edit the prefixes manually. - 若两种标记都存在(混合安装),模式优先——插件命名空间是唯一能准确解析Agent名称而无需模糊匹配的模式。
plugin
从此时起,所有生成的行都将使用与匹配的前缀,斜杠命令和每个Agent名称均需遵循。绝不允许在同一输出中混用两种形式。ECC_MODE - 若
-
解析参数。当设置为
--lang时,执行多语言感知检测:auto- 探测标记文件:/
pyproject.toml/uv.lock→python;requirements.txt→typescript;package.json→go;go.mod→rust;Cargo.toml或顶级CMakeLists.txt文件→cpp;*.cpp/pom.xml(Java)→java;build.gradle或顶级Kotlin文件→kotlin;build.gradle.kts→flutter。pubspec.yaml - 多语言平局处理:若多个标记文件匹配,选择源文件数量最多的语言(通过统计,排除
git ls-files、vendor/、node_modules/、dist/、build/、生成文件和明显的测试夹具)。若出现平局或没有语言的源文件占比超过60%,则设置.venv/。lang=unknown - 无匹配标记文件→设置。
lang=unknown - 是一个标记值——并非Agent名称。阶段2的规则4和5会在链组合时将其转换为
lang=unknown/code-reviewer。build-error-resolver
- 探测标记文件:
-
检测PyTorch子配置:当且
lang=python/pyproject.toml/requirements.txt中声明了uv.lock依赖时,设置torch。这仅影响构建链的选择(见下文阶段2规则);评审器仍为pytorch=true。python-reviewer -
标准化计划中声明的Agent名称:若计划文本引用了带插件前缀的Agent(如),在验证或组合链之前需剥离前缀以获取目录中的裸名称。仅在输出阶段根据
everything-claude-code:tdd-guide重新添加前缀(阶段4)。绝不允许带前缀的名称进入链组合流程——否则在插件模式下会出现双重前缀。ECC_MODE
Phase 1 — Decompose steps
阶段1 — 步骤分解
Identify "step units" in priority order:
- Explicit numbering: /
## Step N/### Phase N/ top-level ordered list.## N. ... - A "Step" column in a table.
- -separated blocks with verb-led headings.
--- - Otherwise treat each H2 as one step.
Per step extract (1-based), (≤ 80 chars), (1–3 sentences), .
idtitleintenttags按优先级识别“步骤单元”:
- 明确编号:/
## Step N/### Phase N/顶级有序列表。## N. ... - 表格中的“Step”列。
- 由分隔的、以动词开头的标题块。
--- - 否则将每个H2标题视为一个步骤。
为每个步骤提取(从1开始)、(≤80字符)、(1-3句话)、。
idtitleintenttagsPhase 2 — Tag and pick chain
阶段2 — 标记与链选择
Tag by intent (multi-tag allowed; chain built from primary + stacked secondaries):
Trigger words below are matched case-insensitively. Multilingual plans are supported by matching the word stems in any language as long as the meaning aligns with the listed English trigger words.
| Tag | Trigger words | Default chain |
|---|---|---|
| architecture, design, choose, evaluate, RFC | |
| plan, breakdown, milestone | |
| implement, build, add, create, port | |
| test, coverage, e2e, integration | |
| refactor, cleanup, dedupe, split | |
| migrate, upgrade, rewrite, port | |
| schema, migration, index, SQL, Postgres, alembic, sqlmodel | |
| encrypt, auth, secret, OWASP, PII | |
| build, compile, lint failure, CI | |
| docs, readme, codemap, changelog | |
| lookup, reference, API usage | |
| review, audit, verify | |
| loop, autonomous, watchdog | |
Chain composition rules:
- Primary tag selection: when a step matches multiple tags, the first one in table order (top of the table = highest priority) is the primary; the rest are secondaries. Composition rules 2 and 3 below handle specific multi-tag combinations explicitly; otherwise, append secondary chains in tag table order.
- +
impl→security.tdd-guide,<lang>-reviewer,security-reviewer - +
impl→db.tdd-guide,database-reviewer,<lang>-reviewer - Deduplicate the resulting chain (preserve first occurrence). E.g. +
reviewwould yieldlang=unknownafter rule 5; deduplication collapses it tocode-reviewer,code-reviewer.code-reviewer - resolves to
<lang>-reviewerwhencode-reviewer.lang=unknown - resolves to
<lang>-build-resolverwhenbuild-error-resolver. Special case: if Phase 0 setlang=unknown, usepytorch=trueforpytorch-build-resolverchains regardless ofbuild. There is no<lang>;python-build-resolverwithout--lang=pythonresolves topytorch=true.build-error-resolver - Zero-tag steps: if no trigger word matches, set chain to and write
code-reviewerunder "Chain rationale".no tag matched; default review-only chain - Chain length ≤ 4 after deduplication. If exceeded, drop weakest tag (and
lookupfirst).docs - Do not pair and
plannerin anarchitectchain (token waste). Pair them only onimplsteps.design - Steps tagged ,
impl, orrefactorend with a reviewer-class agent — any ofmigration,<lang>-reviewer,code-reviewer, orsecurity-reviewer. The most domain-specific reviewer wins the tail position (e.g. rule 2'sdatabase-reviewerends withimpl+security; rule 3'ssecurity-reviewerends withimpl+dbbecause<lang>-revieweralready gates the migration earlier in the chain).database-reviewerandteststeps are gated by their own validators (buildand the build resolver respectively) and do not require an additional reviewer.e2e-runner
根据意图标记(允许多标记;链由主标记+次要标记堆叠构建):
以下触发词不区分大小写。支持多语言计划,只要含义与列出的英文触发词一致,匹配任何语言的词干即可。
| 标记 | 触发词 | 默认链 |
|---|---|---|
| architecture, design, choose, evaluate, RFC | |
| plan, breakdown, milestone | |
| implement, build, add, create, port | |
| test, coverage, e2e, integration | |
| refactor, cleanup, dedupe, split | |
| migrate, upgrade, rewrite, port | |
| schema, migration, index, SQL, Postgres, alembic, sqlmodel | |
| encrypt, auth, secret, OWASP, PII | |
| build, compile, lint failure, CI | |
| docs, readme, codemap, changelog | |
| lookup, reference, API usage | |
| review, audit, verify | |
| loop, autonomous, watchdog | |
链组合规则:
- 主标记选择:当一个步骤匹配多个标记时,表格中顺序靠前的标记(表格顶部优先级最高)为主标记;其余为次要标记。以下规则2和3明确处理特定多标记组合;否则,按标记表格顺序追加次要链。
- +
impl→security。tdd-guide,<lang>-reviewer,security-reviewer - +
impl→db。tdd-guide,database-reviewer,<lang>-reviewer - 去重生成的链(保留首次出现的Agent)。例如,+
review在规则5处理后会得到lang=unknown;去重后简化为code-reviewer,code-reviewer。code-reviewer - 当时,
lang=unknown解析为<lang>-reviewer。code-reviewer - 当时,
lang=unknown解析为<lang>-build-resolver。特殊情况:若阶段0设置build-error-resolver,则无论pytorch=true是什么,构建链都使用<lang>。不存在pytorch-build-resolver;python-build-resolver且--lang=python时解析为pytorch=false。build-error-resolver - 无标记步骤:若未匹配到任何触发词,将链设置为,并在“链设计依据”下标注
code-reviewer。no tag matched; default review-only chain - 去重后链长度≤4。若超过,移除最弱标记(优先移除和
lookup)。docs - 在链中不要同时搭配
impl和planner(浪费token)。仅在architect步骤中搭配两者。design - 标记为、
impl或refactor的步骤必须以评审类Agent结尾——包括migration、<lang>-reviewer、code-reviewer或security-reviewer。最具领域专业性的评审器位于链的末尾(例如规则2中的database-reviewer以impl+security结尾;规则3中的security-reviewer以impl+db结尾,因为<lang>-reviewer已在链的早期处理迁移验证)。database-reviewer和test步骤由各自的验证器(build和构建解决器)把关,无需额外评审器。e2e-runner
Phase 3 — Compress task description
阶段3 — 压缩任务描述
Each emitted must:
<task description>- Be self-contained (the first agent does not need the plan document open).
- Start with .
[Plan: <path>#step-<id>] - Include 1–3 verifiable Acceptance criteria.
- Include a Scope guard () only if the plan declares one for this step. Inherit verbatim. If the plan has no out-of-scope statement, omit the clause entirely — do not invent one.
Out of scope: ... - Be 200–600 characters; one line; embedded escaped as
"; no literal newlines.\"
每个生成的必须:
<task description>- 自包含(第一个Agent无需打开计划文档即可执行)。
- 以开头。
[Plan: <path>#step-<id>] - 包含1-3条可验证的验收标准。
- 仅当计划中为此步骤声明了范围限制时,才包含范围防护语句()。直接沿用原文表述。若计划中无范围限制声明,完全省略该语句——请勿自行编造。
Out of scope: ... - 长度为200-600字符;单行;嵌入式转义为
";无字面换行符。\"
Phase 4 — Output
阶段4 — 输出
Emit Markdown using the form determined by . The output uses one form throughout — every and every agent name is rendered with the matching prefix from Phase 0. Do not emit both forms; do not include "this is plugin form" / "strip the prefix" instructions in the rendered output.
ECC_MODE{ORCH_CMD}Concrete rendering rules:
- =
{ORCH_CMD}under/everything-claude-code:orchestrate,pluginunder/orchestrate.legacy - =
{AGENT(name)}undereverything-claude-code:<name>,pluginunder<name>.legacy - The overview-table "Chain" column uses the same rendering.
{AGENT(name)} - Per-step bash blocks contain only the runnable command. No or
# plugin formcomments — the form is implicit and uniform across the whole output.# legacy form
Output structure:
markdown
undefined根据确定的格式生成Markdown输出。整个输出统一使用一种格式——所有和Agent名称均使用阶段0确定的前缀。绝不输出两种格式;渲染后的输出中请勿包含“这是插件格式”/“移除前缀”等说明。
ECC_MODE{ORCH_CMD}具体渲染规则:
- :
{ORCH_CMD}模式下为plugin,/everything-claude-code:orchestrate模式下为legacy。/orchestrate - :
{AGENT(name)}模式下为plugin,everything-claude-code:<name>模式下为legacy。<name> - 概览表格的“Chain”列使用相同的渲染方式。
{AGENT(name)} - 每个步骤的bash块仅包含可运行的命令。请勿添加或
# plugin form注释——格式是隐含的,且在整个输出中保持一致。# legacy form
输出结构:
markdown
undefinedPlan-Orchestrate Result
Plan-Orchestrate Result
Plan:
Lang:
ECC mode:
Steps: <N>
Scope: <all | step:n | range:a-b>
<path><detected-or-given><plugin | legacy>Plan:
Lang:
ECC mode:
Steps: <N>
Scope: <all | step:n | range:a-b>
<path><detected-or-given><plugin | legacy>Steps overview
Steps overview
| # | Title | Tags | Chain |
|---|---|---|---|
| 1 | ... | impl, db | |
| ... |
| # | Title | Tags | Chain |
|---|---|---|---|
| 1 | ... | impl, db | |
| ... |
Step 1 — <title>
Step 1 — <title>
Intent: <1–3 sentences>
Tags: <a, b>
Chain rationale: <why this chain; which agent closes the loop>
bash
{ORCH_CMD} custom "{AGENT(tdd-guide)},{AGENT(database-reviewer)},{AGENT(python-reviewer)}" "[Plan: docs/foo.md#step-1] <compressed task description>; Acceptance: <1–3 items>; Out of scope: <…>"
> The `{ORCH_CMD}` and `{AGENT(...)}` notation above describes the substitution this skill performs at runtime. The actual emitted Markdown contains the resolved strings, never the placeholders.
Append a final "Batch execution" block aggregating every step's command in order so the user can paste them all at once. **Skip the Batch block in overview-only mode** (see "Large plan" edge case): when only the overview table is being emitted, there are no per-step commands to aggregate.Intent: <1–3 sentences>
Tags: <a, b>
Chain rationale: <why this chain; which agent closes the loop>
bash
{ORCH_CMD} custom "{AGENT(tdd-guide)},{AGENT(database-reviewer)},{AGENT(python-reviewer)}" "[Plan: docs/foo.md#step-1] <compressed task description>; Acceptance: <1–3 items>; Out of scope: <…>"
> 上述`{ORCH_CMD}`和`{AGENT(...)}`表示法描述了本技能在运行时执行的替换操作。实际生成的Markdown包含解析后的字符串,绝不包含占位符。
最后添加一个“批量执行”块,按顺序汇总每个步骤的命令,方便用户一次性粘贴所有命令。**在仅概览模式下跳过批量块**(见“大型计划”边缘情况):当仅生成概览表格时,无需生成每个步骤的命令,因此无需汇总。Phase 5 — Self-check (run before emitting)
阶段5 — 自检(生成输出前执行)
- Every agent in every chain comes from the catalogue (after stripping any prefix that appeared in the plan; see Phase 0 step 5).
everything-claude-code: - Resolved and every resolved
{ORCH_CMD}use the same form ({AGENT(...)}orplugin) — never mixed in one output.legacy - No /
# plugin formannotations and no "strip the prefix" instructions remain in the rendered output.# legacy form - No invented /
--mode/--gatefields.--agents=... - Each task description is single-line, double-quoted, with embedded escaped.
" - Each task description begins with and includes Acceptance (1–3 items). The
[Plan: <path>#step-<id>]clause is present only when inherited from the plan.Out of scope: - No duplicate agent in any chain after Phase 2 dedup.
- Chain length ≤ 4.
- Steps tagged /
impl/refactorend with a reviewer-class agent (migration,<lang>-reviewer,code-reviewer, orsecurity-reviewer).database-reviewerandtestare exempt — see Phase 2 rule 10.build - Zero-tag steps emit with the rationale
code-reviewer.no tag matched; default review-only chain - Overview table lists every step in the plan, regardless of .
--scope - Per-step detail block count matches the resolved (full plan when
--scope; one block for--scope=all; range size forstep:n). In overview-only mode, no per-step blocks and no Batch block are emitted.range:a-b
- 每个链中的所有Agent均来自目录(已剥离计划中出现的任何前缀;见阶段0步骤5)。
everything-claude-code: - 解析后的和所有解析后的
{ORCH_CMD}使用相同格式({AGENT(...)}或plugin)——同一输出中绝不混用。legacy - 渲染后的输出中无/
# plugin form注释,也无“移除前缀”等说明。# legacy form - 无自行添加的/
--mode/--gate参数。--agents=... - 每个任务描述均为单行、双引号包裹,嵌入式已转义。
" - 每个任务描述以开头,并包含验收标准(1-3项)。
[Plan: <path>#step-<id>]语句仅在从计划中继承时才存在。Out of scope: - 阶段2去重后,任何链中无重复Agent。
- 链长度≤4。
- 标记为/
impl/refactor的步骤以评审类Agent结尾(migration、<lang>-reviewer、code-reviewer或security-reviewer)。database-reviewer和test步骤除外——见阶段2规则10。build - 无标记步骤生成链,并标注依据
code-reviewer。no tag matched; default review-only chain - 概览表格列出计划中的所有步骤,无论设置如何。
--scope - 每个步骤的详细块数量与解析后的匹配(
--scope时为完整计划;--scope=all时为1个块;step:n时为对应范围的数量)。在仅概览模式下,不生成每个步骤的详细块和批量执行块。range:a-b
Edge cases
边缘情况
- No clear steps: prefer H2/H3 splitting; if still ambiguous, report "no structured steps detected" with the document outline and ask the user to confirm running by outline.
- Large plan (>1500 lines): enter overview-only mode — emit only the overview table and ask the user to narrow with before re-running for details. In this mode, skip per-step detail blocks and skip the Batch execution block.
--scope - Step too broad (e.g. "complete all backend work"): do not force a single chain. Suggest splitting into N.a and N.b and propose a split.
- Plan declares agents (rare): first strip any prefix to get the bare catalogue name (Phase 0 step 5), then validate against the catalogue. Replace invalid agents and explain under "Chain rationale". The bare name is re-prefixed at output time per
everything-claude-code:.ECC_MODE - Polyglot project where cannot pick a winner: set
--lang=auto; reviewer resolves tolang=unknownand build resolver tocode-reviewer. Mention the fallback under "Chain rationale".build-error-resolver
- 步骤不清晰:优先按H2/H3拆分;若仍不明确,报告“未检测到结构化步骤”并提供文档大纲,请求用户确认按大纲执行。
- 大型计划(>1500行):进入仅概览模式——仅生成概览表格,并请求用户使用缩小范围后重新运行以获取详细内容。在此模式下,跳过每个步骤的详细块和批量执行块。
--scope - 步骤过于宽泛(例如“完成所有后端工作”):不要强制使用单个链。建议拆分为N.a和N.b步骤,并提出拆分方案。
- 计划中声明了Agent(罕见):首先剥离任何前缀以获取目录中的裸名称(阶段0步骤5),然后对照目录验证。替换无效Agent并在“链设计依据”下说明原因。裸名称会在输出阶段根据
everything-claude-code:重新添加前缀。ECC_MODE - 多语言项目中无法确定主导语言:设置
--lang=auto;评审器解析为lang=unknown,构建解决器解析为code-reviewer。在“链设计依据”下提及回退方案。build-error-resolver
Examples
示例
Example 1 — Plugin mode, Python plan
示例1 — 插件模式,Python计划
Input:
plan-orchestrate @docs/plan/example-feature.md --lang=pythonExcerpt of expected output:
markdown
undefined输入:
plan-orchestrate @docs/plan/example-feature.md --lang=python预期输出节选:
markdown
undefinedStep 2 — Encrypt sensitive UserProfile fields
Step 2 — Encrypt sensitive UserProfile fields
Intent: Introduce an SQLAlchemy type and AES-GCM encrypt / before persistence; load the key from an environment variable.
Tags: impl, security, db
Chain rationale: Security-sensitive write path, so closes the chain; validates the alembic migration; covers typing and PEP 8.
EncryptedStringbirth_datetimelocationsecurity-reviewerdatabase-reviewerpython-reviewerbash
/everything-claude-code:orchestrate custom "everything-claude-code:tdd-guide,everything-claude-code:database-reviewer,everything-claude-code:python-reviewer,everything-claude-code:security-reviewer" "[Plan: docs/plan/example-feature.md#step-2] Implement EncryptedString SQLAlchemy type and migrate UserProfile.birth_datetime/location columns; key from ENV APP_DB_KEY; Acceptance: encrypt/decrypt roundtrip tests pass; alembic upgrade/downgrade clean on empty DB; no plaintext in DB after migrate; Out of scope: cross-tenant profile sharing logic"undefinedIntent: Introduce an SQLAlchemy type and AES-GCM encrypt / before persistence; load the key from an environment variable.
Tags: impl, security, db
Chain rationale: Security-sensitive write path, so closes the chain; validates the alembic migration; covers typing and PEP 8.
EncryptedStringbirth_datetimelocationsecurity-reviewerdatabase-reviewerpython-reviewerbash
/everything-claude-code:orchestrate custom "everything-claude-code:tdd-guide,everything-claude-code:database-reviewer,everything-claude-code:python-reviewer,everything-claude-code:security-reviewer" "[Plan: docs/plan/example-feature.md#step-2] Implement EncryptedString SQLAlchemy type and migrate UserProfile.birth_datetime/location columns; key from ENV APP_DB_KEY; Acceptance: encrypt/decrypt roundtrip tests pass; alembic upgrade/downgrade clean on empty DB; no plaintext in DB after migrate; Out of scope: cross-tenant profile sharing logic"undefinedExample 2 — Legacy mode, same step
示例2 — 传统模式,同一步骤
If were detected, the same step would be emitted as a single uniform command (no plugin-prefixed forms anywhere in the output):
ECC_MODE=legacybash
/orchestrate custom "tdd-guide,database-reviewer,python-reviewer,security-reviewer" "[Plan: docs/plan/example-feature.md#step-2] ..."The two examples above illustrate the two possible outputs for two different environments. A single skill invocation produces only one of them, end to end.
若检测到,同一步骤会生成为统一的命令(输出中无任何带插件前缀的形式):
ECC_MODE=legacybash
/orchestrate custom "tdd-guide,database-reviewer,python-reviewer,security-reviewer" "[Plan: docs/plan/example-feature.md#step-2] ..."上述两个示例展示了两种不同环境下的可能输出。单次技能调用只会生成其中一种输出,全程保持一致。
Notes
注意事项
- Generative only. Never invoke from inside this skill.
/orchestrate - Match the language of the plan document for task descriptions (agent names always remain English).
- Do not insert "Co-Authored-By" lines or emoji in the output unless the user explicitly asks.
- 仅生成内容。绝不从本技能内部调用。
/orchestrate - 任务描述需与计划文档的语言匹配(Agent名称始终保持英文)。
- 除非用户明确要求,否则请勿在输出中插入“Co-Authored-By”行或表情符号。