/orchestrator
Turn the current Codex thread into a coordination thread that routes implementation work to durable reusable child threads in disposable worktrees with short-lived branches targeting main.
$ npx -y skills add udecode/dotai --skill orchestrator --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/orchestrator
Context preview
The summary Claude sees to decide when to auto-load this skill.
Turn the current Codex thread into a coordination thread that routes implementation work to durable reusable child threads in disposable worktrees with short-lived branches targeting main.
SKILL.md
orchestrator.SKILL.mdname: orchestrator
description: Turn the current Codex thread into a coordination thread that routes implementation work to durable reusable child threads in disposable worktrees with short-lived branches targeting main.
Orchestrator
Use this skill when the user wants the current thread to act as a chief-of-staff thread: route work, keep context, supervise child threads, arbitrate conflicts, and avoid doing implementation locally.
Commands
- `$orchestrator on`: activate orchestration-only mode for this thread.
- `$orchestrator off`: return this thread to normal local execution.
- `$orchestrator status`: report mode, active child threads, checkout slots,
branches, ports, data strategies, blockers, and push state.
Routing is automatic while orchestrator mode is on. Do not invent a manual routing command.
Mode And Claim Discipline
Worktrees alone are not orchestrator mode.
The parent may create worktrees, copy ignored environment files, install dependencies, and serialize PR or merge work as setup. That is `direct-worktree` coordination until durable child threads are created or reused and implementation instructions are sent to them.
Before code-changing work starts under an orchestrator claim:
1. Record `orchestrator mode: on` in the active plan or status. 2. Find the durable Codex thread tools. 3. Create or reuse one child thread per checkout or workstream key. 4. Record the child thread id, checkout path, branch, port, data strategy, and conflict group. 5. Send implementation instructions before the child mutates code.
A durable child thread id belongs to a visible Codex thread created or found through thread-management tools. A hidden sub-agent, worker id, nickname, or submission id is not a durable child thread id.
If the child thread is attached to the root project but assigned to a manual sibling worktree, every `apply_patch` target must be absolute under the assigned worktree. Bare relative patches may hit the root checkout. The parent prompt must state this, and the child must audit after its first edit that the root checkout was not modified. If work leaks into the root checkout, stop before review, push, or PR; recreate or move the work into the assigned worktree and remove only the accidental root changes.
If durable thread tools are unavailable, record `orchestrator blocked: durable thread tools unavailable` and stop unless the user explicitly allows a non-orchestrated fallback. Never execute locally and still call the run orchestrated.
Do not use hidden workers, temporary sub-agents, or non-sidebar delegation tools for orchestrator child execution, status, review, or PR closeout. If one was started by mistake, pause it, park its work, record the workflow miss, and move the lane to a durable Codex child thread before review, push, PR, or the next implementation lane.
Core Contract
When orchestrator mode is on:
- Do not implement product code in the parent thread.
- Route code-changing work to durable child threads automatically.
- Reuse the same child thread for the same checkout slot or workstream.
- Keep the parent for intake, triage, routing, status, summaries, context
forwarding, conflict arbitration, push serialization, merge coordination, and closeout.
- Keep the root checkout for coordination and repo-owned planning or agent
guidance unless the repo explicitly assigns another parent-only surface.
- If implementation or PR work is already on the root checkout, stop before
review, push, or PR. Move or recreate it in a disposable worktree branch from `main` and keep the root as scheduler.
- For every implementation or PR branch, create or reuse a durable child thread
first, then assign a disposable worktree with a short-lived branch from `main`, even when work is serial.
- Fan out independently runnable packets across separate worktrees. Expected
merge conflicts are not enough to serialize; record a conflict group and resolve conflicts when they become real.
- Open ready PRs back to `main` after repo-required checks and relevant proof
pass. Merge when repository policy and the hosting service allow it.
- After merge and tracker or handoff closure, delete the disposable worktree,
archive the finished child thread, and release its slot unless a recorded blocker still owns it.
- If mode state is unclear for implementation work, find or create the child
thread before executing.
Implementation Work
Implementation work is any task expected to create, modify, review, or continue product code, tests, migrations, issue-linked docs, a runtime plan, a branch, or a PR.
Examples:
- Ticket or issue execution.
- API or data migration work.
- PR feedback resolution.
- Code-changing bugs, features, refactors, or upgrades.
- Goal-backed work that touches files or checkout state.
- Follow-ups such as `continue`, `fix CI`, `push`, `commit`, `that slot`, or
`that checkout` when they refer to code-changing work.
Not implementation work by default:
- One-off answers.
- Read-only status summaries or reviews.
- Cross-thread triage.
- External context intake.
- Parent-owned plans or agent guidance that repo instructions keep on `main`.
- Asking which child owns a checkout when the mapping is missing.
Workspace Modes
Choose the lightest honest mode:
- `parent-root`: coordination, non-mutating triage, merge arbitration, and
parent-owned planning or agent guidance. It is not an implementation or PR review checkout.
- `single-worktree`: serial implementation when packets have a true hard
conflict, such as the same migration, generated artifact, config contract, security policy, records, or unmergeable file lines.
- `same-checkout`: non-mutating child coordination only. Never let two child
threads mutate the same checkout concurrently.
- `worktree`: every implementation packet and PR branch. Each worktree has a
unique short-lived branch based on `main` and a PR back to `main`.
Nearby components, the same pro
Read more
name: orchestrator description: Turn the current Codex thread into a coordination thread that routes implementation work to durable reusable child threads in disposable worktrees with short-lived branches targeting main.
Orchestrator
Use this skill when the user wants the current thread to act as a chief-of-staff thread: route work, keep context, supervise child threads, arbitrate conflicts, and avoid doing implementation locally.
Commands
- `$orchestrator on`: activate orchestration-only mode for this thread.
- `$orchestrator off`: return this thread to normal local execution.
- `$orchestrator status`: report mode, active child threads, checkout slots,
branches, ports, data strategies, blockers, and push state.
Routing is automatic while orchestrator mode is on. Do not invent a manual routing command.
Mode And Claim Discipline
Worktrees alone are not orchestrator mode.
The parent may create worktrees, copy ignored environment files, install dependencies, and serialize PR or merge work as setup. That is `direct-worktree` coordination until durable child threads are created or reused and implementation instructions are sent to them.
Before code-changing work starts under an orchestrator claim:
1. Record `orchestrator mode: on` in the active plan or status. 2. Find the durable Codex thread tools. 3. Create or reuse one child thread per checkout or workstream key. 4. Record the child thread id, checkout path, branch, port, data strategy, and conflict group. 5. Send implementation instructions before the child mutates code.
A durable child thread id belongs to a visible Codex thread created or found through thread-management tools. A hidden sub-agent, worker id, nickname, or submission id is not a durable child thread id.
If the child thread is attached to the root project but assigned to a manual sibling worktree, every `apply_patch` target must be absolute under the assigned worktree. Bare relative patches may hit the root checkout. The parent prompt must state this, and the child must audit after its first edit that the root checkout was not modified. If work leaks into the root checkout, stop before review, push, or PR; recreate or move the work into the assigned worktree and remove only the accidental root changes.
If durable thread tools are unavailable, record `orchestrator blocked: durable thread tools unavailable` and stop unless the user explicitly allows a non-orchestrated fallback. Never execute locally and still call the run orchestrated.
Do not use hidden workers, temporary sub-agents, or non-sidebar delegation tools for orchestrator child execution, status, review, or PR closeout. If one was started by mistake, pause it, park its work, record the workflow miss, and move the lane to a durable Codex child thread before review, push, PR, or the next implementation lane.
Core Contract
When orchestrator mode is on:
- Do not implement product code in the parent thread.
- Route code-changing work to durable child threads automatically.
- Reuse the same child thread for the same checkout slot or workstream.
- Keep the parent for intake, triage, routing, status, summaries, context
forwarding, conflict arbitration, push serialization, merge coordination, and closeout.
- Keep the root checkout for coordination and repo-owned planning or agent
guidance unless the repo explicitly assigns another parent-only surface.
- If implementation or PR work is already on the root checkout, stop before
review, push, or PR. Move or recreate it in a disposable worktree branch from `main` and keep the root as scheduler.
- For every implementation or PR branch, create or reuse a durable child thread
first, then assign a disposable worktree with a short-lived branch from `main`, even when work is serial.
- Fan out independently runnable packets across separate worktrees. Expected
merge conflicts are not enough to serialize; record a conflict group and resolve conflicts when they become real.
- Open ready PRs back to `main` after repo-required checks and relevant proof
pass. Merge when repository policy and the hosting service allow it.
- After merge and tracker or handoff closure, delete the disposable worktree,
archive the finished child thread, and release its slot unless a recorded blocker still owns it.
- If mode state is unclear for implementation work, find or create the child
thread before executing.
Implementation Work
Implementation work is any task expected to create, modify, review, or continue product code, tests, migrations, issue-linked docs, a runtime plan, a branch, or a PR.
Examples:
- Ticket or issue execution.
- API or data migration work.
- PR feedback resolution.
- Code-changing bugs, features, refactors, or upgrades.
- Goal-backed work that touches files or checkout state.
- Follow-ups such as `continue`, `fix CI`, `push`, `commit`, `that slot`, or
`that checkout` when they refer to code-changing work.
Not implementation work by default:
- One-off answers.
- Read-only status summaries or reviews.
- Cross-thread triage.
- External context intake.
- Parent-owned plans or agent guidance that repo instructions keep on `main`.
- Asking which child owns a checkout when the mapping is missing.
Workspace Modes
Choose the lightest honest mode:
- `parent-root`: coordination, non-mutating triage, merge arbitration, and
parent-owned planning or agent guidance. It is not an implementation or PR review checkout.
- `single-worktree`: serial implementation when packets have a true hard
conflict, such as the same migration, generated artifact, config contract, security policy, records, or unmergeable file lines.
- `same-checkout`: non-mutating child coordination only. Never let two child
threads mutate the same checkout concurrently.
- `worktree`: every implementation packet and PR branch. Each worktree has a
unique short-lived branch based on `main` and a PR back to `main`.
Nearby components, the same pro
Shared skills for coding agents. Skills are the main routing layer. This repo is the canonical source for reusable udecode workflows; downstream repos should link to these skills instead of copying long SKILL.md files around.
Repo: udecode/dotai
Other skills on dotai.
- /agent-native-reviewer
Review agent-native parity for skills, prompts, tools, commands, generated mirrors, repo workflows, and user-facing actions.
Open skill - /autogoal
Create, verify, repair, and close durable Codex goals with measurable outcomes, evidence gates, plan templates, blocker handling, completion audits, and goal-backed workflow repair.
Open skill - /hard-cut
Remove a feature completely with no backward compatibility; delete surfaces, callers, tests, docs, fallbacks, stubs, and dead exports.
Open skill - /linear-backlog
Run a scoped Linear backlog autonomously as a sequence of maximal safe parallel batches by composing orchestrator, autogoal, and task. Use when the user wants Codex to execute ordered Linear issues without prompting for each next batch while parallelizing every dependency-ready
Open skill - /resolve-pr-feedback
Resolve GitHub PR review feedback with source-backed triage, fixes, autogoal plan state, focused proof, replies, and thread resolution.
Open skill - /sync-vision
Sync root VISION.md from changed human and agent inputs; use when project taste, doctrine, or maintainer judgment should learn from recent plans, docs, skills, reviews, or repeated misses.
Open skill

