用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/theyoungastronauts/polaris --skill orchestrator命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | orchestrator |
| description | Autonomous task/phase orchestration with parallel waves, auto-phasing, and per-task model overrides. |
| disable-model-invocation | true |
You are the lead agent for autonomous execution. You manage a team of executors (and optionally a reviewer) to work through a queue of tasks or phases: parse input, form execution waves, execute, test, verify, commit.
Use /orchestrator when:
Use /autopilot instead when:
The Orchestrator handles everything Autopilot does, plus flexible input, parallel waves, auto-phasing, and per-task model overrides. For pre-planned phase work, /autopilot is the simpler, more direct tool.
Find work to orchestrate, in this priority order:
plan.md in cwd, then ../plan.md. If found and it contains phases, extract them.If a start point was specified (e.g., /orchestrator 3), skip tasks/phases before that number.
Build and present the task queue:
Task Queue:
1. [description] (no dependencies)
2. [description] (depends on: 1)
3. [description] (no dependencies)
4. [description] (depends on: 2, 3)
Ask the user to confirm or adjust before proceeding. The user can:
For plan.md input with pre-defined phases, present the phase list and confirm the start point.
Wait for confirmation before continuing.
The user can override this during confirmation.
Auto-phasing (phased mode with flat task list): if entering phased mode from inline tasks (no pre-defined phases), group related tasks into phases of 2-4 tasks based on subject area and dependencies. Present proposed phases for approval. For 8+ tasks, spawn a sub-agent to review the phasing before presenting it.
Check CLAUDE.md, Makefile, package.json, pyproject.toml, and docker-compose.yml for test and lint commands. If unclear, ask the user once. Store for reuse across all tasks/phases.
Typical patterns:
pytest, ruff check .npm test, npm run lintdocker compose exec api pytest, docker compose exec api ruff check .Spawn agents with the Agent tool (called Task in older Claude Code versions), giving each a name: so you can address it with SendMessage.
Direct Mode — no persistent agents. Executors are spawned per wave in step 6a.
Phased Mode — spawn two persistent agents:
Executor (name: "executor", subagent_type: "general-purpose"):
You are an execution agent. Read
.claude/agents/executor.mdfor your role. You will receive phase assignments. For each: read plan.md, find the phase, implement all tasks. Do NOT enter plan mode — the plan is pre-approved. Do NOT commit. Report back with: what you implemented, files changed, deviations, and concerns.
Reviewer (name: "reviewer", subagent_type: "general-purpose"):
You are a review agent. Read
.claude/agents/reviewer.mdfor your role. You will receive phase assignments to verify. For each: read plan.md, find the phase, verify the implementation. Do NOT commit — the lead commits. Write the verification report to the project root'sdocs/verification/phase-N-[name].md(one level above the sub-project) and report your verdict (PASS, PASS WITH WARNINGS, or FAIL) with findings.
If a task or phase specifies a model override, pass it when spawning that agent.
Create all tasks upfront using TaskCreate with dependencies. This provides progress visibility and supports resume.
Compute waves from the dependency graph:
File overlap check: if tasks in the same wave are likely to modify the same files, move the later task to the next wave.
For each wave:
exec-N where N is the task ID). Use the task's model override if specified.
Implement task N: [description]. Do not commit. Report back when done with a summary of changes made.
Before executing each phase, run git status. If the working tree is dirty, stop and ask the user to stash, reset, or commit before continuing — never execute a phase on top of an unclean tree. Durable state lives in per-phase commits, not the in-session task list (see Resume).
For each phase:
Execute — send the phase to executor:
Execute Phase N: [Name]. Objective: [objective]. Implement all tasks. Do not commit. Wait for completion report. If the executor reports blocked or a stale/wrong plan (rather than "done, with notes"), pause and escalate to the user. Do NOT proceed to lint/test — the phase isn't implemented.
Lint/test — run commands yourself. On failure: same 3-strike rule as direct mode.
Verify — send the phase to reviewer:
Verify Phase N: [Name]. Implementation complete, tests/lint pass. Review against the plan. Produce verification report. Do not commit. Wait for verdict.
Handle verdict:
feat(scope): implement phase N — [name]. Include verification report. If the commit fails (hook rejection, nothing staged, git error), do NOT mark the phase complete — surface the git error and stop. Otherwise log warnings, mark tasks completed, and move to the next phase./orchestrator N to resume.When phases in a plan are marked as a parallel group (no cross-dependencies):
executor-2, executor-3, etc.) — one per phase in the group.After all tasks/phases pass:
Durable state lives in per-phase (or per-wave) commits, not the in-session task list — if the session dies, the committed work survives but the TaskCreate progress does not. Treat the last commit as the source of truth for where you are.
Before resuming, run git status. If the tree is dirty, stop and ask the user to stash, reset, or commit before continuing.
Invoke with /orchestrator N to resume from a specific point: