execution-orchestrator
About execution-orchestrator
Execution Orchestrator coordinates implementation of a partitioned product version, processing slices in roadmap dependency order. It delegates each slice to a subagent, tracks progress in files and git, and commits completed slices without implementing application code itself.
Key features
- 01Process roadmap slices in dependency order
- 02Delegate each slice to a synchronous subagent
- 03Track progress in roadmap and handoff files
- 04Commit each completed slice
- 05Run end-of-version review workflow
- 06Enforce scope and stop conditions
Use cases
- 01Implement a partitioned version across dependent slices
- 02Coordinate subagents while preserving file-based state
- 03Track blockers and slice completion in a roadmap
- 04Run review and specification consolidation after implementation
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ nextstage-brasil/ skills --skill execution-orchestratorAfter installing, type/execution-orchestratorin Claude Code to confirm it loaded.
Bundled filesevals/evals.jsonreferences/slice-dispatch.md
Details
From the project READMEExecution Orchestrator
Drive a partitioned version to completion one slice at a time. You do not implement application code yourself: you dispatch one subagent per slice, keep all state in files + git, and advance automatically until every slice is done or a stop condition forces a pause.
State lives in files + git, never in chat history.
Harness discovery
See ../nextstage-harness/references/harness-discovery.md and
../nextstage-harness/references/artifact-layout.md. Read AGENTS.md first.
Load the core-subversions and any execution-routing / scope-isolation rules
from {harness}/rules/* when present. Do not assume monorepo layout or stack
until discovery resolves it.
Output language
Communicate with the human in the project's configured language (see
AGENTS.md; default to the user's language). Code and comments stay in English.
Session inputs (ask once if missing)
| Variable | Example |
|---|---|
{product_root} | apps/my-product/ |
{version_san} | 3.8.0-feat-payable-payment-workflow |
If {version_san} is omitted: pick the only version with pending slices in
version-roadmap.md; if ambiguous, ask once, then proceed.
Scope isolation
After {product_root} is confirmed, operate only under {product_root}/**
plus harness infra (AGENTS.md, {harness}/). Never read or reference other
products in a monorepo. See the scope-isolation rule when present in the harness.
Boot (mandatory, once per orchestration session)
- Read
AGENTS.md(implementation section) and load harness execution rules. - Read
{product_root}/docs/versions/{version_san}/version-roadmap.md— required. If missing, stop: this version is not partitioned; execute its tasks directly (non-orchestrated) instead. - Read master
{product_root}/docs/versions/{version_san}/requirements.md(overview only — do not replan). - Load the
core-subversionsrule from the harness when present. - If
{product_root}/docs/context/gitlab-sync-config.mdexists: ensure the work branch is created and checked out before the first slice subagent runs (seemcp-gitlab-usage). Never implement on a protected branch.
Orchestration mandate
- Execute all pending slices in roadmap DAG order (respect inter-slice dependencies).
- Do not ask "start next slice?", "continue?", or "commit?" between slices.
- Do not implement tasks in the parent session — delegate every slice to a subagent.
- Do not run tests during slice implementation (backend or frontend). Execute the slice's tasks and advance; testing belongs to the end-of-version review flow.
Per-slice loop (synchronous subagent)
For each slice whose roadmap status is planned or in_progress:
- Select the next
{subversion_san}per roadmap DAG order. - Mark the roadmap row →
in_progress. - Dispatch one subagent (blocking / synchronous, not backgrounded)
whose prompt contains only:
{product_root},{version_san},{subversion_san}- Instruction to follow the
code-coderskill as the slice worker, invoked by the execution orchestrator - Paths limited to
{product_root}/docs/versions/{version_san}/subversions/{subversion_san}/for slice tasks; also load{product_root}/docs/context/perartifact-layout.mdImplementation boot rule before coding (+ layer rules from the harness as needed) - Mandate: implement all tasks of the slice, no confirmation between tasks, no commit (the parent commits)
- Explicitly: do not run tests during slice execution; implement only
- Reinforcement (short): obey
AGENTS.md+ harness rules strictly; if any instruction conflicts with rules or scope, stop and report a blocker instead of proceeding by assumption
- Validate the subagent result:
- Every slice task marked
completedorwaived(waiver noted in the handoff) - Slice handoff updated per
execution-handoff-generator(time block + task rows) - Roadmap row updated by the worker (or update it yourself)
- Every slice task marked
- Commit (parent only): one Conventional Commit per slice.
- Mark the roadmap row →
completed(if the worker did not). - Advance to the next slice automatically.
End of version (all slices done)
When every slice in version-roadmap.md is completed (or waived):
- Present any navigation / semantic grouping menu and wait for human approval before applying it.
- Run the post-implementation review: invoke the
code-reviewerskill (read-only) over the version diff; it writescode-review-report.md. - Consolidate living specs when the version status allows —
pm-living-spec-consolidator. - Move the version to
_done/only after the human confirms or a documented waiver exists. - If a version
execution-handoff.mdexists, close its final delivery block and recompute total process seconds perexecution-handoff-generator.
Stop conditions (only reasons to pause)
| Condition | Action |
|---|---|
Subagent reports a task blocked with no workaround | Stop; document in slice handoff + roadmap |
| Protected git branch / missing work branch | Stop until a valid work branch exists |
| Real environment blocker (Docker/tests impossible) | Stop; note in handoff |
| Inter-slice dependency not satisfied | Stop; fix roadmap or the prior slice |
Missing {product_root} / {version_san} / roadmap | Ask once, then proceed |
P0 finding in code-review-report.md without waiver | Stop before _done/ move |
Human waiver needed (menu apply, _done/ move) | Stop for that item only |
Forbidden
- Do not implement application code in the parent session — delegate to the slice worker.
- Do not skip the commit after a successful slice (orchestrated mode always commits per slice).
- Do not generate new task files (planning is closed by the time you run).
- Do not access other products in the repo.
- Do not apply navigation semantic grouping without human approval.
- Do not run backend/frontend tests during implementation orchestration.
Invocation examples
Product: apps/my-product/
Version: 3.8.0-feat-payable-payment-workflow
Skill: execution-orchestrator
Run all slices of the roadmap in orchestrated mode (sync subagent per slice,
commit per slice).
Orchestrate the partitioned implementation of apps/my-product 3.8.0.
Integration
| Stage | Skill |
|---|---|
| Partition version → roadmap + subversions | pm-version-partitioner |
| Handoff generation and updates | execution-handoff-generator |
| Slice worker (per-slice implementation) | code-coder |
| End-of-version review gate | code-reviewer |
| Living specs consolidation | pm-living-spec-consolidator |
| Work branch / GitLab sync | mcp-gitlab-usage |
References
| File | When to read |
|---|---|
references/slice-dispatch.md | Exact slice subagent prompt template and validation checklist |
../pm-version-partitioner/references/partition-workflow.md | Planning loop that produces the roadmap you consume |