Set up a new gate for parallel execution — branch creation, orchestration review, and session prompt generation
Set up a new gate for parallel execution. Creates the feature branch, reviews prior orchestration and divergences, proposes parallel work allocation, and generates the orchestration ticket with session prompts.
This is the most complex daily workflow and the one most prone to context drift when done ad-hoc.
The PM invokes this skill when starting a new gate within a task. A gate groups related worktickets for parallel execution across multiple agent sessions.
The PM provides these in natural language when invoking the skill:
| Parameter | Required | Description |
|---|---|---|
| Gate number | Yes | Which gate this is (e.g., "gate 2 of 4") |
| Task ID | Yes | The task being worked on (e.g., "4.3") |
| Ticket list | Yes | Which worktickets this gate covers (e.g., "tickets 4.3.04 through 4.3.06") |
| Previous orchestration path | No | Path to the previous gate's orchestration guide (if not first gate) |
| Draft ticket paths | No | Paths to draft worktickets for this gate (defaults to worktickets/draft/ scan) |
| Divergence doc paths | No | Paths to divergence documents from prior gates (if any) |
/gate-setup Gate 1 of 3 for task 4.3. Covers tickets 4.3.01 through 4.3.03. Draft tickets at worktickets/draft/draft_4.3/
/gate-setup Gate 3 of 4 for task 3.10. Covers tickets 3.10.07 through 3.10.09. Previous orchestration at worktickets/active/wt_p3_t3.10_gate2_orchestration.md. Divergences at docs/divergences/t3.10_gate2_divergences.md
/gate-setup Gate 1 of 2 for task 5.1. This is the first gate, no prior orchestration. Tickets 5.1.01 and 5.1.02 at worktickets/draft/draft_5.1/
When invoked, follow these steps in order:
feature/p{phase}-t{task}-gate{N}-{short-description}
feature/p4-t4.3-gate2-embedding-engineCRITICAL: Never switch to main to create a branch. Always branch from where you are. Switching to main risks losing uncommitted work and breaks the gate continuity.
If this is NOT the first gate:
If this IS the first gate:
If divergence documents exist from prior gates:
If no divergence documents exist (first gate or no divergences captured):
Present to the PM:
Wait for PM approval before proceeding. The PM may adjust session allocation, reorder tickets, or modify scope.
After PM approval:
worktickets/draft/ to worktickets/active/ (or as directed by PM).Create an orchestration ticket at the path specified by PM (or default to worktickets/active/wt_p{phase}_t{task}_gate{N}_orchestration.md).
The orchestration ticket must contain:
Pre-Gate Review Status
Session Definitions For each parallel session:
Finalization Commands
cargo fmt && cargo clippy, pnpm lint).Commit Template
Merge Notes
If an OVERRIDES.md file exists in this skill's folder, read it after these instructions for project-specific customizations (e.g., finalization commands, branch naming conventions, commit templates).
/gate-merge./gate-post.