team
Skill0 starsChanged 7 months agoMITView on GitHub
Orchestrate N workers on a shared goal using tmux+worktrees+subagent back-pressure
We split this skill into the rules it gives an agent
13 rules. 0 are common, 4 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 28 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Before running, load the session-scoped state and check for an active team run:
- Very specific: line 26
If body.active == true and a run_id is present → Resume the existing run instead of creating a new one (see Resume section below).
- Distinctive: line 158
Write state (session-scoped per ADR-0006):
- Very specific: line 210
When the ralph modifier is used, each worker's skill is set to ralph.
- Very specific: line 254
If state_read(mode="team", session_id="$OMNI_SESSION_ID") returns body.active == true with a run_id:
- Very specific: line 256
Check omni_team.py status <run_id> for current phase.
- Very specific: line 257
If state: "created" → jump to dispatch phase.
- Very specific: line 258
If state: "dispatched" → jump to collect phase.
- Very specific: line 259
If state: "done"|"failed"|"cancelled" → report results.
- Very specific: line 312
If stuck > 30 min: omni_team.py cancel <run_id> to terminate.
- Very specific: line 317
If a worktree dir was deleted manually, cleanup_team --force still succeeds:
- Distinctive: line 319
If dir is already gone, prune handles the stale entry.
- Distinctive: line 329
No dynamic scaling mid-run (add/remove workers after dispatch not supported).
“Common” is measured: kept by at least 6 in 10 of the 28 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Team Skill
User-facing reference:
docs/TEAM.md
Spawn N coordinated workers on a shared goal using scripts/omni_team.py. Each worker
runs in an isolated git worktree with its own branch. Workers are dispatched via
scripts/subagent.py --background (with tmux windows on Linux/macOS when available). <!-- omni-ref-allow: example -->
Back-pressure is enforced via scripts/subagent_pool.py (cap = min(8, cpu_count)).
Resume preamble
Before running, load the session-scoped state and check for an active team run:
state_read(mode="team", session_id="$OMNI_SESSION_ID")If body.active == true and a run_id is present → Resume the existing run
instead of creating a new one (see Resume section below).
Usage
/copilot-omni:team N "task description"
/copilot-omni:team ralph "task description"
/copilot-omni:team autopilot "task description"
/copilot-omni:team 4 ralph "build a REST API"Parameters
- N — Number of workers (1-20). Optional; auto-sized from task decomposition.
- ralph — Wrap workers in ralph persistence loop (nested mode
team.<slug>.ralph). - autopilot — Wrap workers in autopilot (nested mode
team.<slug>.autopilot). - task — High-level task to decompose and distribute.
Examples
/copilot-omni:team 3 "fix all TypeScript errors across the project"
/copilot-omni:team ralph "build a complete REST API for user management"
/copilot-omni:team 4 autopilot "implement responsive layouts for all pages"Architecture
User: "/copilot-omni:team 3 fix all TypeScript errors"
|
v
[omni_team.py create]
|
+-- Writes .omni/runs/team-<id>/manifest.json
|
[Analyze & decompose task into worker plans]
|
v
[omni_team.py dispatch <run_id>]
|
+-- For each worker:
| 1. omni_worktree.add(run_id, slug, base_branch)
| -> .omni/runs/team-<id>/workers/<slug>/worktree/
| -> branch: team-<id>/<slug>
| 2. subagent.py <skill> <prompt> --background
| --run-id team-<id>/<slug>
| --parent-run-id team-<id>
| (tmux: each worker gets its own window)
| (subprocess: each worker is a detached process)
|
[omni_team.py collect <run_id>]
|
+-- wait_for_jobs polls .../workers/<slug>/status.json
|
[omni_team.py cleanup <run_id>]
|
+-- Removes worktrees, clears MCP stateRun-directory layout:
.omni/runs/team-<id>/
manifest.json # team definition + worker list
status.json # team-level status
cancel.signal # presence = cancel requested
workers/
<slug>/
worktree/ # git worktree (isolated branch)
status.json # worker status (polled by wait_for_jobs)
stdout.log
stderr.log
inner/ # inner skill (ralph/autopilot) run-dirManifest JSON
{
"run_id": "team-<uuid>",
"name": "<team-name>",
"session_id": "<session>",
"created_at": "<iso>",
"tmux_session": "<name>" ,
"use_tmux": true,
"workers": [
{
"slug": "<slug>",
"skill": "ralph|autopilot",
"prompt": "...",
"category": "quick|deep|ultrabrain",
"worktree_path": ".omni/runs/team-<id>/workers/<slug>/worktree",
"branch": "team-<id>/<slug>",
"run_dir": ".omni/runs/team-<id>/workers/<slug>",
"status": "pending|running|done|failed|cancelled"
}
]
}Workflow
Phase 1: Decompose
Analyze the task and produce a worker plan list. Each worker needs:
slug: short identifier (e.g.worker-1,auth-fixer)skill:ralph(persistence loop) orautopilot(staged pipeline) — defaultralphprompt: full task instruction including context from codebase explorationcategory:quick/deep/ultrabrain(affects model tier via category_resolver)
For 1-3 workers: ralph skill is usually sufficient.
For complex parallel work: autopilot skill provides staged verify/fix loops.
Phase 2: Create Team
# Write plan JSON
cat > /tmp/plan.json << 'EOF'
{
"base_branch": "main",
"workers": [
{"slug": "worker-1", "skill": "ralph", "prompt": "Fix type errors in src/auth/", "category": "deep"},
{"slug": "worker-2", "skill": "ralph", "prompt": "Fix type errors in src/api/", "category": "deep"}
]
}
EOF
python3 scripts/omni_team.py create "fix-ts-errors" --plan /tmp/plan.json --session-id "$OMNI_SESSION_ID"
# -> {"run_id": "team-abc123", "manifest_path": "...", "status_path": "...", "created_at": "..."}Write state (session-scoped per ADR-0006):
state_write(mode="team", session_id="$OMNI_SESSION_ID", body={
"active": true,
"run_id": "team-abc123",
"name": "fix-ts-errors",
"phase": "created",
"worker_count": 2
})Phase 3: Dispatch Workers
python3 scripts/omni_team.py dispatch team-abc123
# -> [{"slug": "worker-1", "pid": 12345, "status_path": "...", ...}, ...]State update (session-scoped):
state_write(mode="team", session_id="$OMNI_SESSION_ID",
body={"phase": "dispatched"})
state_write(mode="team.worker-1", session_id="$OMNI_SESSION_ID",
body={"active": true, "run_id": "team-abc123", "skill": "ralph"})
state_write(mode="team.worker-2", session_id="$OMNI_SESSION_ID",
body={"active": true, "run_id": "team-abc123", "skill": "ralph"})Phase 4: Collect Results
python3 scripts/omni_team.py collect team-abc123 --timeout 3600
# Blocks until all workers reach terminal state (done/failed/cancelled)
# -> {"run_id": "...", "state": "done", "workers": [...]}Phase 5: Cleanup
python3 scripts/omni_team.py cleanup team-abc123
# Removes worktrees, prunes git state, clears transient artifactsState cleanup:
state_clear(mode="team", session_id=<id>)
state_clear(mode="team.worker-1", session_id=<id>)
state_clear(mode="team.worker-2", session_id=<id>)Team + Ralph Composition
When the ralph modifier is used, each worker's skill is set to ralph. The worker
runs a full ralph persistence loop in its isolated worktree. Nested mode keys:
team— outer team orchestration stateteam.<slug>— per-worker team stateteam.<slug>.ralph— inner ralph run (written by ralph skill inside the worker)
Worker prompts should include --parent-run-id team-<id> so ralph's cancel cascade
can propagate from the team level down to individual worker runs.
Team + Autopilot Composition
Same pattern but with autopilot skill. Nested mode keys:
team.<slug>.autopilot— inner autopilot run
tmux vs Subprocess
| Condition | Host Used |
Linux/macOS + tmux on PATH + use_tmux=True | _TmuxWorkerHost (one window per worker) |
use_tmux=False OR tmux absent | _SubprocessWorkerHost (detached processes) |
Windows + OMNI_EXPERIMENTAL_TEAM=1 | tmux attempted (WARNING emitted) |
Windows + no OMNI_EXPERIMENTAL_TEAM | _SubprocessWorkerHost always |
The subprocess fallback is first-class and works identically on all platforms.
Cancel Protocol
Cancel cascade follows ADR-0006 signal-file protocol:
omni_team.py cancel <run_id>writescancel.signalat:.omni/runs/team-<id>/cancel.signal(team root).omni/runs/team-<id>/workers/<slug>/cancel.signal(each worker)
- Worker processes (subagent.py) poll
PARENT_RUN_DIR/cancel.signaland stop. - Worker status.json transitions to
state: "cancelled". - Team status.json transitions to
state: "cancelled".
python3 scripts/omni_team.py cancel team-abc123 --reason "user"Resume
If state_read(mode="team", session_id="$OMNI_SESSION_ID") returns body.active == true with a run_id:
- Check
omni_team.py status <run_id>for current phase. - If
state: "created"→ jump to dispatch phase. - If
state: "dispatched"→ jump to collect phase. - If
state: "done"|"failed"|"cancelled"→ report results.
Worker Status Protocol
Each worker's status.json schema:
{
"state": "pending|running|done|failed|cancelled",
"slug": "<slug>",
"run_id": "<run_id>",
"pid": 12345,
"started_at": "2026-01-01T00:00:00Z",
"ended_at": null
}wait_for_jobs.py polls these files until all reach terminal state.
State Schema
state_write(mode="team", session_id="$OMNI_SESSION_ID", body={
"active": true,
"run_id": "team-abc123",
"name": "<team-name>",
"phase": "created|dispatched|collecting|done|failed|cancelled",
"worker_count": N,
"use_tmux": true|false
})Per-worker state:
state_write(mode="team.<slug>", session_id="$OMNI_SESSION_ID", body={
"active": true,
"run_id": "team-abc123",
"slug": "<slug>",
"skill": "ralph|autopilot",
"state": "pending|running|done|failed|cancelled"
})Error Handling
Worker Fails
collect_resultsdetectsstate: "failed"in worker's status.json.- Overall team state becomes
"failed"if any worker failed. - Log tail is available in
workers/<slug>/stdout.log.
Worker Stuck
omni_team.py status <run_id>shows per-worker states.- If stuck > 30 min:
omni_team.py cancel <run_id>to terminate. - Investigate
workers/<slug>/stdout.logfor root cause.
Orphan Worktree Recovery
If a worktree dir was deleted manually, cleanup_team --force still succeeds:
omni_worktree.removecallsgit worktree prunefirst.- If dir is already gone, prune handles the stale entry.
python3 scripts/omni_team.py cleanup team-abc123 --forceLimitations
- Single-host only (no distributed / cross-machine workers).
- Per-host cap:
min(8, cpu_count)concurrent workers (ADR-0010). - No dynamic scaling mid-run (add/remove workers after dispatch not supported).
- Windows tmux is experimental (
OMNI_EXPERIMENTAL_TEAM=1required).
Other versions42 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 42
- Yeachan-Heo/oh-my-claudecode★ 40ksame name
- Yeachan-Heo/oh-my-claude-sisyphus★ 40ksame name
- Yeachan-Heo/oh-my-codex★ 34ksame name
- MaxMiksa/Auto-Company★ 3.2ksame name
- MaxMiksa/Autonomous-Company★ 3.2ksame name
- zereight/gitlab-mcp★ 2.1ksame name
- nicepkg/ctxport★ 629same name
- ansari-project/codev★ 289same name
- cluesmith/codev★ 289same name
- typv/nest-turbo-starter★ 224same name
32 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use community-led-growth, ph-community-outreach and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
nicepkgSkillcommunity-led-growth
Expert in community-led growth (CLG) - leveraging user communities to drive acquisition, retention, and expansion. Covers building developer communities, user groups, ambassador programs, and turning customers into advocates. Knows the difference between community as a feature vs community as a growth engine, and how to measure community ROI. Use when "community-led, CLG, ambassador program, champion program, user community, developer community, word of mouth, user group, " mentioned.
Also in 5 projects that use this
nicepkgSkillph-community-outreach
Engage Reddit, Indie Hackers, Hacker News and other communities for Product Hunt launches. Use this skill to identify relevant communities, craft appropriate posts, and drive cross-platform engagement without appearing spammy.
Also in 5 projects that use this
ncklrsSkillseo-content-strategist
Expert SEO content strategy for SaaS and B2B sites. Use when doing keyword research, planning content clusters, creating pillar pages, optimizing on-page SEO, fixing technical SEO issues, building links, refreshing content, implementing programmatic SEO, mapping search intent, optimizing for SERP features, or measuring content performance. Use for SEO audits, content gap analysis, and organic growth strategy.
Also in 5 projects that use this
xfstudioSkillmicro-saas-launcher
Expert in launching small, focused SaaS products fast - the indie hacker approach to building profitable software. Covers idea validation, MVP development, pricing, launch strategies, and growing to sustainable revenue. Ship in weeks, not months. Use when: micro saas, indie hacker, small saas, side project, saas mvp.
Also in 5 projects that use this
mastepanoskiSkillux-audit-rethink
Comprehensive UX audit using IxDF's 7 factors, 5 usability characteristics, and 5 interaction dimensions. Holistic evaluation with redesign proposals based on user-centered design principles.
Also in 5 projects that use this
- +6 more from nicepkg
In this repository29 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- ai-slop-cleanerSkill
- autopilotSkill
- cancelSkill
- configure-notificationsSkill
- debugSkill
- deep-diveSkill
- deepinitSkill
- deep-interviewSkill
- external-contextSkill
- mcp-setupSkill
- omni-doctorSkill
- omni-referenceSkill
- omni-setupSkill
- omni-planSkill
- ralphSkill
- ralplanSkill
- releaseSkill
- rememberSkill
- setupSkill
- skillifySkill
- skillSkill
- traceSkill
- ultraqaSkill
- ultraworkSkill
- verifySkill
- wikiSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

