用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/darjss/herdr-orchestrate --skill orchestrate命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Research and plan assigned work when a prompt identifies this Pi session as an orch exploration or research/plan worker. Handles evidence gathering, repository mapping, options, risks, and implementation briefs; exploration workers never edit or decide.
Execute assigned delivery work when a prompt identifies this Pi session as an orch implementation, fix, review, or proof worker. Handles surgical changes, commits, read-only review, repository checks, and live proof in isolated worktrees.
基于 SOC 职业分类
正在显示 SKILL.md
| name | orchestrate |
| description | Run a user-directed task through visible Pi workers with herdr-orchestrate. |
| disable-model-invocation | true |
| license | MIT |
| compatibility | Requires Pi inside Herdr, Node.js, Git, the linked herdr-orchestrate plugin, and gh for PR operations. |
This current user-facing Pi session is the god session. Keep decisions and user communication here; delegate repository investigation and delivery to visible Pi workers. Never spawn a god worker.
The god session may use:
orch CLI's doctor, run start, worker spawn, worker send, wait, board, and cleanup commands;gh for PR/check/merge lifecycle;It must not inspect source, diffs, worker panes, browser output, or raw check/test logs, and must not edit target-project source. Ask a worker for missing evidence. This boundary keeps the user conversation strategic and the worker evidence auditable.
Use the v2 orch command from PATH now that this package owns it. If PATH resolution is unavailable, resolve this skill's package root (two directories above this file) and use the direct-node fallback at dist/cli.mjs.
Confirm HERDR_ENV=1, identify the target Git repository with a simple Git command, verify the v2 orch command (using the direct-node fallback only when PATH resolution is unavailable), and run doctor from the target repository. Shape the user's request into a goal, constraints, acceptance criteria, and task size. Task size is dynamic workflow guidance, not an enforced fixed state machine:
Based on user intent and evidence, omit, repeat, or parallelize stages as appropriate. orch provides worker lifecycle primitives; it does not automate this workflow.
Read references/routing.md before spawning workers. Use its scout → analyst → author → reviewer pipeline:
explore workers are scouts: they map relevant files and evidence only.fast workers are the default analysts, authors, and proof workers.default workers handle consequential decisions and quality-critical review.medium is the recommended thinking level for both coding routes. Use high only after an evidence-backed medium escalation or an explicit user request, and write the reason in the brief.Workers never spawn nested workers. A Luna worker that needs broad file discovery returns the routing reference's Scout request; the god session spawns DeepSeek scouts and sends their report paths back to Luna.
Start one run with run start, retain its run ID, and use that ID explicitly thereafter. The CLI reuses the project's persistent orchestration workspace and board. This step is complete when board --run <id> shows the intended goal, size, and no unintended workers.
Read references/briefs.md when drafting any worker brief. Write briefs to files; never embed substantial prompts in shell arguments. Give each worker one role and a unique ID. One writing worker owns one worktree/branch.
Spawn with:
worker spawn <id> --route <default|fast|explore> --prompt <file> --run <run-id> [--thinking <low|medium|high|xhigh>] [--base <ref-or-sha>]
Review and proof workers must use --base <implementation-sha> so they inspect the delivered code, not the run's original base.
Prefer a fan-out/fan-in gate over assigning one broad task to one worker. Before spawning, split the gate by independent system, issue, user path, or evidence source; run those workers in parallel, then synthesize their durable reports before the next gate. Keep each brief bounded enough that one worker can produce deep evidence for one concern. Use a single broad worker only when the work is inherently coupled, splitting would duplicate most investigation, or concurrent writers would overlap. Parallel implementation requires disjoint ownership; read-only research, review, and proof should be parallelized whenever their scopes can be separated.
Immediately run wait --run <id> through Pi's bg_command tool. Never foreground the wait and never use shell &: the background tool is what wakes the god session when workers settle.
If a Luna report ends orch-verdict: blocked scout evidence needed, spawn the requested DeepSeek scouts, wait for their fact-only reports, then send the report paths back to the same Luna worker.
This step is complete when the board reports the worker settled and its durable report ends in orch-verdict: done or identifies a precise blocker.
Read reports, not panes or source. Map every report claim to the current gate's acceptance criteria.
worker send, then background-wait again.Do not advance while the current gate is blocked, missing its report, or lacks evidence for any acceptance criterion.
Treat a settled worker as disposable once its durable report has been consumed and there is no concrete reason to send that same worker a follow-up. Do not keep workers or worktrees merely because a later task is related; spawn a fresh bounded worker for new ownership. Clean disposable workers at the earliest safe point supported by the CLI. Preview cleanup first, and defer cleanup when it would also remove active workers, unharvested commits, or a worker needed for an accepted fix pass.
For most feature and product changes, prefer a PR-first review loop after the author has committed and run baseline checks:
Keep parallel implementation commits traceable inside one integration PR when they deliver one coherent outcome. Use separate PRs when slices need independent rollout, reversion, ownership, or review. Skip the PR-first loop only when the user does not want a PR, the repository workflow forbids it, or the work is a local/non-delivery artifact.
Require final reports to identify branch, commit SHA, checks, proof, blockers, and PR URL. Use gh to inspect PR metadata, review threads, and checks, but delegate source/check-log investigation to a worker.
Never merge without explicit user approval in this conversation. Present the PR, review verdict, green checks, live proof, bot-review status, and remaining risks; ask for approval. Only after an unambiguous approval may the god session run gh pr merge. Do not infer approval from the original task or silence.
This step is complete when the user-approved PR is merged, or when the user explicitly chooses to stop before merge.
Run cleanup preview first, verify it targets only this run's worker tabs/worktrees, then run cleanup apply. Use orch cleanup --run <run-id> --worker <worker-id> when disposing of one worker; omitting --worker retains whole-run cleanup. Cleanup closes worker tabs but keeps the project's board workspace available for the next run; it must preserve branches and durable prompts/reports. Report one concise table or list containing each worker's role, branch/SHA/PR, verdict, checks, proof, merge status, and any next action.
The orchestration is complete only when every user requirement has report-backed evidence, required proof is live, merge state matches the user's decision, and disposable worker resources are cleaned up.