Agent skill

Orchestrator

by udecode in udecode/kitcn

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.

Apache-2.0Auto-check passedDevelopment

Install Orchestrator

skills CLI
$ npx skills add udecode/kitcn --skill orchestrator -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install udecode/kitcn orchestrator --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/udecode/kitcn.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/orchestrator .claude/skills/orchestrator && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
orchestrator
GitHub stars
450
Token cost
~3.9k tokens
SKILL.md length
1,941 words
Files
1
Skills in repo
33
Repo updated
First seen
Licence
Apache-2.0

At a glance

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.

  • Works in 5 steps: Record orchestrator mode: on in the… → Find the durable Codex thread tools. → Create or reuse one child thread per… → …
  • Tasks that involve Git worktrees
  • SKILL.md covers Commands, Mode And Claim Discipline, Core Contract and Implementation Work, plus 10 more sections
  • Calls git

What it does

Orchestrator is an agent skill from udecode/kitcn. 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.

Its SKILL.md is about 3.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Git worktrees. The repository describes itself as: Convex + Better Auth + tRPC + Drizzle + TanStack Query + shadcn. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Git worktrees

Example prompts

  • “/orchestrator”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  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
  5. Send implementation instructions before the child mutates code.

What it can do on your machine

Read from SKILL.md and the folder at commit c6010f5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Orchestrator loads about 3.9k tokens when it runs. Until then it costs about 50 tokens; SKILL.md has 1,941 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~50
When it runs · the whole SKILL.md, loaded when a task matches
~3.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from udecode/kitcn at commit c6010f5, republished under its Apache-2.0 licence (© udecode). 1,941 words, ~3,858 tokens.

Download SKILL.mdSave it as .claude/skills/orchestrator/SKILL.md (or your agent's skills folder).
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 product area, or a few expected merge conflicts are not hard conflicts.

main Policy

  • main is the default integration branch and PR target.
  • Base every child branch on current main.
  • Before opening or updating a PR, fetch origin main when it exists, integrate origin/main using the repo's required strategy, rerun required checks and proof, then push the short-lived branch.
  • PRs are ready unless the user or repo instructions require draft state.
  • Merge into main when checks pass and repository policy allows it.
  • Never force push.
  • If integration conflicts are non-trivial, the child reports them to the parent instead of widening scope.
  • The parent serializes push, PR, merge, and cleanup when concurrent lanes could race.
  • After merge and release, return main to the root checkout. Do not leave a disposable scheduler worktree as the long-lived owner of main.
  • Never hide active run deliverables in a stash just to switch the root checkout. Park them on an explicit branch or report the blocker.

Data And Runtime Policy

  • Shared local data is acceptable for read-only work or clearly disjoint writes.
  • Use a per-slot database or data fixture for schema work, migrations, seeds, destructive cleanup, broad mutation tests, or overlapping record writes.
  • If shared-data conflict risk appears mid-run, pause the packet and ask the parent to serialize it or move it to isolated data.
  • Runtime ownership must be explicit. A parent-owned runtime cannot be killed or reused by a child without reassignment.
  • Each runtime-owning child gets a unique port and explicit stop condition.
Show full SKILL.md (855 more words)Show less

Slot Conventions

  • Derive the root checkout name and path at runtime.
  • Name sibling worktrees with numeric suffixes such as <repo>-1, <repo>-2, and <repo>-N unless repo instructions define another convention.
  • Reclaim stale merged or abandoned slots before allocation.
  • Allocate the lowest reusable suffix first. A lower slot is unavailable only while active work, an unmerged branch or PR, a runtime, a review, or cleanup risk still owns it.
  • Record why any lower slot was skipped.
  • Use unique short-lived branches such as codex/<surface>-<YYYYMMDD-HHMMSS> unless the user or repo names another branch.
  • Before install or runtime work in a fresh worktree, copy required ignored environment files according to repo instructions. Explicitly exclude .git and dependency directories. Never print secret values.
  • Immediately after copying environment files, run git rev-parse --show-toplevel in the target and verify it resolves to the assigned worktree before install, dispatch, or mutation.
  • Serialize first-time installs when generated links or caches can collide.
  • Delete disposable worktrees after merge or abandonment. A warm slot needs a recorded owner, expiry, and next proof.
  • Archive finished child threads after merge, handoff, and proof closeout. Keep active, blocked, or decision-owning threads visible with an owner and next poll.

Routing Rules

  1. Classify the request.
  2. Handle non-implementation work in the parent.
  3. For implementation work, find durable thread tools before any mutation. No durable child thread id means no implementation start.
  4. Resolve the checkout or workstream key from the assigned slot, branch, PR, tracker issue, existing thread title, or task name.
  5. Find an existing child thread for that key.
  6. Reuse it when found.
  7. Otherwise create a child thread titled:
text
<CHECKOUT-OR-WORKSTREAM> <short task title>
  1. Send the exact request, source context, acceptance criteria, non-goals, assigned worktree, main base and PR target, port, data strategy, runtime owner, conflict group, proof expectations, and push or tracker expectations.
  2. Tell the child to follow the repo's implementation and review skills and to report checkout, branch, PR, tests, runtime proof, blockers, conflict risk, and next owner.
  3. Record the cleanup rule: after merge, required deployed or runtime proof, and handoff closure, remove the worktree, archive the child thread, and release the slot.
  4. Record the mapping:
md
| Checkout / workstream | Child thread | Mode | Path | Branch | Port | Data | Conflict group | Status | Last update | Next |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |

Thread Tool Boundary

Use durable Codex thread tools only. Search for them by exact namespace-qualified name:

  • codex_app.list_projects
  • codex_app.create_thread
  • codex_app.list_threads
  • codex_app.read_thread
  • codex_app.send_message_to_thread
  • codex_app.set_thread_archived

Core routing needs project lookup, thread creation, thread listing, thread reading, and message sending. Finished-child cleanup needs thread archiving. If archiving is unavailable, record child archive blocked: tool unavailable and keep the slot unavailable until closeout evidence is copied and the parent explicitly accepts the stale visible thread.

Before creating a child, resolve the saved Codex project whose local path exactly matches the root checkout. Do not use a parent directory, sibling checkout, or nearest-prefix match. If the exact project is unavailable, report orchestrator blocked: exact saved project unavailable.

Preserve the configured model and reasoning effort unless the user or repo instructions explicitly require overrides. Record any override and its rationale in the parent plan and child prompt.

If durable thread tools are unavailable, stop. Do not substitute hidden sub-agents, parallel workers, or temporary agents; their ids do not satisfy the durable child-thread gate.

Child Prompt Shape

Send a compact prompt when creating or reusing a child:

md
You are the child execution thread for `<checkout-or-workstream>`.

Run: <exact user request or skill>

Context from orchestrator:
- Sources, decisions, blockers, branch and push state.
- Workspace mode and absolute checkout path.
- Branch based on `main`; PR target `main`.
- Port, data strategy, runtime owner, and conflict group.
- Acceptance criteria, non-goals, required proof, review, push, and tracker expectations.

Rules:
- Follow the repo's AGENTS instructions and implementation skill.
- Use only the assigned checkout.
- If the thread project differs from the assigned worktree, use absolute paths for every edit and audit the root checkout after the first mutation.
- Verify required ignored environment files without printing values. When copying them, exclude `.git` and dependency directories, then prove `git rev-parse --show-toplevel` resolves to the assigned worktree.
- Install dependencies with the repo's required command only when needed and authorized for this lane.
- Respect the assigned runtime owner, port, and data strategy.
- Keep review and PR work inside this child/worktree lane.
- Report conflicts instead of widening scope.
- Reuse this thread for future work on this checkout/workstream.
- Before push, integrate current `origin/main`, rerun required proof, and never force push.
- Report checkout, branch, PR URL/state, data strategy, push state, tests, runtime proof, blockers, and next owner.

Status Check

On heartbeat or $orchestrator status:

  1. Read known child status when tools allow it.
  2. Ask stale child threads for a short update.
  3. Forward new context to the owning child.
  4. Surface only actionable blockers, push-ready work, review-ready work, and conflict decisions.
  5. While children run checks, reviews, deployments, or merge waits, supervise active lanes or start the next independently runnable packet.
  6. Archive children whose merge, proof, and handoff are complete.
  7. Keep status short; never dump child transcripts.

Safety

  • Never mutate the same work in both parent and child.
  • Never start implementation without a durable child thread id in parent status when thread tools exist.
  • Never treat a hidden worker or sub-agent id as an orchestrator child thread.
  • Never let two code-changing children mutate the same checkout concurrently.
  • Never fan out without an independence check, slot table, data strategy, runtime ownership, and parent-owned merge plan.
  • Do not impose an arbitrary lane cap. Start every independently runnable lane that has a safe slot, data strategy, runtime owner, and durable child thread.
  • Never force push.
  • Keep one-line local questions in the parent.
  • If the user says do it here, local, or $orchestrator off, turn mode off before executing locally.

Success Criteria

  • Mode can be turned on, off, and reported.
  • Implementation work routes automatically.
  • Every implementation lane has a visible durable child thread and assigned disposable worktree before mutation.
  • Follow-ups reuse the same checkout or workstream thread.
  • Missing durable tools produce a clear blocker, not a hidden-worker fallback.
  • Independently runnable packets can fan out without an arbitrary slot cap.
  • Feature branches and PRs target main.
  • Runtime and data ownership prevent cross-lane collisions.
  • Pushes and merges are coordinated, checked, and never forced.
  • Merged or abandoned worktrees are reclaimed promptly.
  • Finished child threads are archived after closeout.
  • Final handoff leaves the root checkout on main or reports the exact blocker.
  • The orchestrator remains a coordination thread, not an implementation thread.

© udecode, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/orchestrator of udecode/kitcn.

Open the folder on GitHubat commit c6010f5

Compare with similar skills

Orchestrator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Orchestrator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Orchestrator this skilludecode/kitcn450—~3.9kAutomated safety check: PassApache-2.0
Finishing a Development Branchobra/superpowers296k5 repos~1.9kAutomated safety check: PassMIT
Migrate Core Code to Submodulestinyhumansai/openhuman42k—~2.6kAutomated safety check: PassGPL-3.0
Finishing A Development Branchfarm-fe/farm5.6k34 repos~1.8kAutomated safety check: PassMIT
Git Worktree Cleanuplobehub/lobehub83k—~2.8kAutomated safety check: PassCustom licence
Keep Codex Fastvibeforge1111/keep-codex-fast1.6k—~3.1kAutomated safety check: PassMIT

Similar skills

  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    296k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Migrate Core Code to Submodules

    tinyhumansai/openhuman

    Plans and carries out moving non-host-specific code and its tests from the OpenHuman core into vendored tiny submodule libraries, then releases the submodule and re-pins the host.

    42k GitHub stars~2.6k tokensUpdated today
    DevelopmentAuto-check passed
  • A skill your agent uses when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for…

    5.6k GitHub starsUsed in 34 repos~1.8k tokens
    DevelopmentAuto-check passed
  • Git Worktree Cleanup

    lobehub/lobehub

    Audits stale Git worktrees and branches with a bundled script, classifies each one, and deletes only after you approve the exact candidates.

    83k GitHub stars~2.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Keep Codex Fast

    vibeforge1111/keep-codex-fast

    A skill your agent uses when Codex feels slow or bloated, when local sessions/logs/worktrees/config have grown over time, or when a user wants safe maintenance for Codex Desktop/CLI state.

    1.6k GitHub stars~3.1k tokensUpdated 5 mo ago
    DevelopmentAuto-check passed
  • Pre-Release PR Triage

    jamiepine/voicebox

    Sorts a backlog of open pull requests into must-merge, candidate, superseded and deferred, writes a triage doc and works the merge loop before a release.

    57k GitHub stars~3.1k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from udecode/kitcn

All 33 skills in this repo
  • Walkthrough

    udecode/kitcn

    Create a short annotated visual walkthrough from real final-state screenshots or rendered artifacts.

    450 GitHub stars~1.6k tokensUpdated 6 days ago
    Auto-check passed
  • Avoid Feature Creep

    udecode/kitcn

    Prevent feature creep when building software, apps, and AI-powered products.

    450 GitHub stars~2.7k tokensUpdated 6 days ago
    Auto-check passed
  • Changeset Resolve

    udecode/kitcn

    Repair an unreleased .changeset/.md file so it matches the real branch delta against main.

    450 GitHub stars~922 tokensUpdated 6 days ago
    Auto-check passed
  • Audit newer Convex npm releases against kitcn. An agent skill from udecode/kitcn.

    450 GitHub stars~1.8k tokensUpdated 6 days ago
    Auto-check passed
  • Jotai X

    udecode/kitcn

    A skill your agent uses when working with Jotai X stores (createAtomStore), accessing state in components or callbacks, persisting state to cookies or localStorage

    450 GitHub stars~3.7k tokensUpdated 6 days ago
    Auto-check passed
  • Linear Backlog

    udecode/kitcn

    Run a scoped Linear backlog autonomously as a sequence of maximal safe parallel batches by composing orchestrator, autogoal, and task.

    450 GitHub stars~3.1k tokensUpdated 6 days ago
    Auto-check passed

Categories

Questions about Orchestrator

What does Orchestrator do?

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 is an agent skill from udecode/kitcn. 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.

When should I use Orchestrator?

Orchestrator fits situations like: tasks that involve Git worktrees.

How do I install Orchestrator in Claude Code?

Run `npx skills add udecode/kitcn --skill orchestrator -a claude-code`. Or copy the skill folder (.agents/skills/orchestrator in udecode/kitcn) into .claude/skills/orchestrator in your project. Claude Code loads it when a task matches its description.

How do I install Orchestrator in Codex?

Run `npx skills add udecode/kitcn --skill orchestrator -a codex`. Or copy the skill folder (.agents/skills/orchestrator in udecode/kitcn) into .agents/skills/orchestrator in your project. Codex loads it when a task matches its description.

Can I use Orchestrator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add udecode/kitcn --skill orchestrator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/orchestrator, .gemini/skills/orchestrator, .github/skills/orchestrator and .opencode/skills/orchestrator in your project.

What does Orchestrator need to run?

Going by SKILL.md and its folder, Orchestrator needs the command-line tools its instructions call (git).

Does Orchestrator access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Orchestrator safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Orchestrator use?

Orchestrator is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Orchestrator use?

About 3.9k tokens (SKILL.md is roughly 15k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Orchestrator?

Skills that share tags, products or a category with Orchestrator: Finishing a Development Branch (obra/superpowers, 296k stars), Migrate Core Code to Submodules (tinyhumansai/openhuman, 42k stars), Finishing A Development Branch (farm-fe/farm, 5.6k stars) and Git Worktree Cleanup (lobehub/lobehub, 83k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Orchestrator?

udecode (a GitHub organization) maintains it in udecode/kitcn, which has 450 GitHub stars. The repository holds 33 skills in this directory. The repository was last updated on October 1, 2026.

Source: udecode/kitcn on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.