Skip to content
Back to skills

Factory Orchestrate

ASecurity

Coordinate multiple agents interactively on complex work using Swarm (partitioned parallel tracks), Arena (competitive bakeoff + synthesis), or Staged Pipeline (research -> implement -> verify -> review) with worktree isolation. Use for /factory-orchestrate or multi-agent execution within a session (distinct from /factory-work queue dispatch).

  • 25 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 17, 2026
ai-agentsrustgoreactgitbackendsecurity

Works with

  • claude code
  • cursor
  • mcp

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add watt-mind/factory --skill factory-orchestrate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Factory Orchestrate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Factory Orchestrate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/watt-mind-factory-orchestrate/badge)](https://www.skillsdirectory.com/skills/watt-mind-factory-orchestrate)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: factory-orchestrate
description: "Coordinate multiple agents interactively on complex work using Swarm (partitioned parallel tracks), Arena (competitive bakeoff + synthesis), or Staged Pipeline (research -> implement -> verify -> review) with worktree isolation. Use for /factory-orchestrate or multi-agent execution within a session (distinct from /factory-work queue dispatch)."
---

# Orchestrate (interactive multi-agent execution)

Coordinate multiple subagents or swarm workers inside an interactive session when parallel coverage, competitive design exploration, or independent adversarial verification beats a single linear loop.

## `/factory-work` vs `/factory-orchestrate`

Use the right tool for the job:

- **Standing queue execution (`/factory-work` + `factory handoff`):** Autonomous pick-up of `Todo` + `ai:agent-ready` Linear/GitHub tickets, strict per-ticket orchestration, telemetry, and PR landing via the Factory runtime.
- **`/factory-orchestrate` (this skill):** Interactive multi-agent coordination inside your active session — parallel codebase audits, competitive design bakeoffs, sharded refactors/migrations across disjoint files, or a Producer -> Critic pipeline on high-risk diffs.

## Non-negotiable safety rules

Every topology obeys `shared/floor.md`:

1. **Never share a writable checkout or `git stash`:** Give every concurrent writer its own isolated worktree (`bin/worktree-up.sh <ISSUE-ID>` when the repo provides one, or harness `workspace:"share"` / `workspace:"branch"`, or disjoint scratch patches in `$TMPDIR`). Read-only research/reviewers may inherit the workspace after checking `origin/<base>` freshness.
2. **Disjoint `Owned Paths` for parallel writers:** No two concurrent implementers may edit overlapping files, schemas, or generated manifests. Regenerate shared manifests (`pins.json`, barrel exports, dist outputs) once in the coordinator or final staging step.
3. **Ticket discipline before permanent edits:** Before creating or modifying repo files meant to ship, ensure each track maps to a ticket (`Todo` -> claim -> worktree) or explicit user-approved bundle, unless exploring throwaway options in `$TMPDIR`.
4. **Never poll with `sleep N`:** Wait on native turn/message notifications, process completion (`wait`), or bounded condition checks (`gh run watch <id> --exit-status --interval 60`).
5. **Never trust a subagent summary blindly:** Check claims against the actual git diff, `origin/<base>@<sha>`, and real test/CI outputs in your own turn.

## Non-blocking coordinator default

Keep the main session unblocked for steering, cross-slice seams, and final verification gates. Delegate leaf implementation, read-only exploration, and slow test/build runs to isolated subagents with explicit `Owned Paths` and verification commands, reserving main context for integration and decisions.

**Zero local work on root (`<30s` turns):** When managing `>= 3` parallel async lanes, the coordinator session **never** edits repo files, checks out PR branches, or runs test/typecheck/build suites on the root checkout — delegate implementation, `MERGE-FIX` rounds, and verifications to isolated worktree subagents so coordinator turns stay under ~30 seconds.

**Hard invariant (`reviewer != implementer`):** Review and critique must run in a separate agent conversation (and separate model or harness family where available). The implementing agent never self-approves its own diff.

## Difficulty tier × harness routing

Route subagents by difficulty tier (`tier:light`, `tier:standard`, `tier:strong`) and role:

| Difficulty / Role | Claude Code                                 | Codex / Cursor                  | Pi                              | T3Code (`delegate_task` / `orchestrator_capabilities`) |
| :---------------- | :------------------------------------------ | :------------------------------ | :------------------------------ | :----------------------------------------------------- |
| `tier:light`      | `haiku` / `sonnet`                          | fast (`sol` / fast)             | `muse-spark`                    | fast model from `orchestrator_capabilities`            |
| `tier:standard`   | `sonnet` (or `opus` for multi-module seams) | `sol` / `wonder`                | `muse` / `wonder`               | standard model (`sol` / `fable` / `carbon`)            |
| `tier:strong`     | `opus`                                      | `sol` / `opus`-class            | `wonder` / `opus`-class         | strong model (`opus` / `gpt-sol` / `fable`)            |
| `reviewer`        | separate `opus` (`factory-merge-reviewer`)  | separate `wonder` / cross-model | separate `wonder` / cross-model | separate cross-vendor `delegate_task` thread           |

**Domain/risk routing floor:** High-risk domains — **RAG / retrieval / ranking / citation / evals, auth / security, and concurrency** — promote to **`tier:strong`** (`opus` / `gpt-sol`, Fast mode OFF) regardless of a `tier:light` label, while honoring any stricter repo `AGENTS.md` overrides.

**T3Code backend & delegation lifecycle:** When T3Code Orchestrator MCP tools (`orchestrator_capabilities`, `delegate_task`, `task_cancel`, `t3_thread_wait`, `t3_thread_read`) are available in the active session:

- Call `orchestrator_capabilities` **once per thread** before the first `delegate_task`.
- Spawn all workers, reviewers, swarm, and arena child runs via **`delegate_task` (`mode: "async"`)** — **never** use `create_threads` or `t3_thread_launch` for subagent/worker fan-out (those create top-level threads, reserved for explicit user requests).
- Follow `delegate_task`'s `next` behavior: end your turn for reactive wakeup; never poll `task_status` or loop on `t3_thread_wait`.
- Every new review or re-check is a fresh `delegate_task`, never `t3_thread_send` to a finished child; cancel replaced or extra delegates with `task_cancel` (never `t3_thread_interrupt`).
- **Worktree interaction:** `delegate_task` only accepts `isolation: "shared" | "worktree"` (no `worktreePath` param). Either run `bin/worktree-up.sh <ISSUE-ID>` sequentially in the coordinator and pass `isolation: "shared"` with `worktree: <abs-path>` spelled out in `task`, or initialize per-worktree ports/DB inside a `delegate_task` `isolation: "worktree"` checkout.

**Fallback chain:** Fall back to the harness default (`inherit`) if a tier model is unavailable or quota-limited.

## Capacity-aware concurrency and bundle slots

Check `factory pulse` and read `CAPACITY & FLOW` (`DRAIN_MERGES_FIRST`, `HOLD_OR_BUNDLE`, `WIDEN`) before widening parallel lanes. Never widen on backlog depth alone — widen only on `mergedLastHour` flow and runner headroom. When CI or review capacity is the binding constraint (`HOLD_OR_BUNDLE`), coalesce 3–6 related low-risk tickets with disjoint `Owned Paths` into cohesive bundles: each bundle shares one worktree, branch, and PR, and the concurrency cap counts **bundle/PR slots** rather than raw ticket count.

## Choose one topology

Pick the topology that fits the task rather than spawning agents for show:

### 1. Swarm (partitioned parallel tracks)

Pairs with `../factory-swarm/SKILL.md`. Use `/factory-swarm` (`factory swarm` or T3Code `delegate_task`) when work splits cleanly into independent slices or cross-harness races (`partition` | `race` | `mixed`):

- Multi-module codebase audits or principles reviews (one `research` reviewer per directory/layer).
- Independent tickets whose `Owned Paths` do not intersect (one implementer + worktree per ticket).
- Large test, migration, or lint cleanups sharded by directory.

**Steps:**

1. Partition scope cleanly by directory, module, or review lens so no two workers duplicate searches or collide on files.
2. Give each worker a concrete brief: exact files/globs owned, what not to touch, required verification command, and concise structured return format (`file:line`, severity, evidence).
3. Launch workers in parallel (using your harness's native `swarm`, `invoke_subagent`, or `run_workflow` tools) and stop calling tools until results arrive.
4. Synthesize, deduplicate, and verify cross-slice seams (shared types, generated artifacts, `AGENTS.md`/CI budgets) before landing.

### 2. Arena (competitive bakeoff and grafting)

Pairs with `../principle-exhaust-the-design-space/SKILL.md` and `../factory-arena/SKILL.md` (gated: use on net-new UI surfaces, material layout/architecture forks, or explicit user comparison requests — never routine bugfixes). For cross-harness multi-model bakeoffs (`codex` / `claude` / `agy`), invoke `/factory-arena` (`factory arena`).

**Steps:**

1. **Write the rubric first:** Before spawning contenders, lock 3-5 concrete evaluation criteria (for example: correctness under concurrency, diff/bundle minimality, reader load, UI visual hierarchy, testability).
2. **Enforce genuine diversity:** Spawn 2-3 workers (or run `factory arena run --profile default|full`) with distinct models/hypotheses in separate isolated worktrees or `$TMPDIR` sandboxes. Never run two slightly tweaked copies of the same prompt.
3. **Judge coldly against artifacts:** Run a read-only cross-vendor judge (`factory arena judge`), benchmarks, or live UI/diff checks against the rubric. Optionally graft one standout helper or boundary check from a runner-up into the winning design.
4. **Land only the winner:** Discard losing sandboxes cleanly (`factory arena cleanup`, `git worktree remove`, or delete `$TMPDIR` patches; never `git stash`), commit only the winner on the ticket branch, and record the options + rubric rationale in the PR/Handoff or response.

### 3. Staged pipeline (map -> build -> adversarial review -> verify)

Use for high-risk or `Never auto-merge` changes (auth, concurrency, data migrations, formal specs) where independent verification prevents self-grading bias:

1. **Map (read-only):** `research` subagent traces callers, concurrency assumptions, existing tests, and `Owned Paths` from `origin/<base>`.
2. **Build (isolated worktree):** Implementer writes a failing test (negative test first), applies the fix, and runs targeted tests + static checks.
3. **Adversarial review / formal check:** A _fresh_ reviewer subagent (with no memory of implementation excuses) checks the diff against `shared/floor.md`, domain invariants, and relevant `principle-*` skills (or runs `/factory-statechart` / `/factory-formal-verify-maintain`).
4. **Land gate:** Coordinator checks `baseRefName`, CI checks (`gh run watch` + REST check-runs), `Never auto-merge` escalation flags, and `## Handoff`. Never auto-merge without explicit authorization where rules forbid it.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.