agentleFS
Jurel89Jurel89/copilot-omni/skills/team/SKILL.md

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
  1. Distinctive:

    Before running, load the session-scoped state and check for an active team run:

    line 20
  2. Very specific:

    If body.active == true and a run_id is present → Resume the existing run instead of creating a new one (see Resume section below).

    line 26
  3. Distinctive:

    Write state (session-scoped per ADR-0006):

    line 158
  4. Very specific:

    When the ralph modifier is used, each worker's skill is set to ralph.

    line 210
  5. Very specific:

    If state_read(mode="team", session_id="$OMNI_SESSION_ID") returns body.active == true with a run_id:

    line 254
  6. Very specific:

    Check omni_team.py status <run_id> for current phase.

    line 256
  7. Very specific:

    If state: "created" → jump to dispatch phase.

    line 257
  8. Very specific:

    If state: "dispatched" → jump to collect phase.

    line 258
  9. Very specific:

    If state: "done"|"failed"|"cancelled" → report results.

    line 259
  10. Very specific:

    If stuck > 30 min: omni_team.py cancel <run_id> to terminate.

    line 312
  11. Very specific:

    If a worktree dir was deleted manually, cleanup_team --force still succeeds:

    line 317
  12. Distinctive:

    If dir is already gone, prune handles the stale entry.

    line 319
  13. Distinctive:

    No dynamic scaling mid-run (add/remove workers after dispatch not supported).

    line 329

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 state

Run-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-dir

Manifest 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) or autopilot (staged pipeline) — default ralph
  • prompt: full task instruction including context from codebase exploration
  • category: 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 artifacts

State 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 state
  • team.<slug> — per-worker team state
  • team.<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

ConditionHost 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=1tmux 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:

  1. omni_team.py cancel <run_id> writes cancel.signal at:
    • .omni/runs/team-<id>/cancel.signal (team root)
    • .omni/runs/team-<id>/workers/<slug>/cancel.signal (each worker)
  2. Worker processes (subagent.py) poll PARENT_RUN_DIR/cancel.signal and stop.
  3. Worker status.json transitions to state: "cancelled".
  4. 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:

  1. Check omni_team.py status <run_id> for current phase.
  2. If state: "created" → jump to dispatch phase.
  3. If state: "dispatched" → jump to collect phase.
  4. 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

  1. collect_results detects state: "failed" in worker's status.json.
  2. Overall team state becomes "failed" if any worker failed.
  3. Log tail is available in workers/<slug>/stdout.log.

Worker Stuck

  1. omni_team.py status <run_id> shows per-worker states.
  2. If stuck > 30 min: omni_team.py cancel <run_id> to terminate.
  3. Investigate workers/<slug>/stdout.log for root cause.

Orphan Worktree Recovery

If a worktree dir was deleted manually, cleanup_team --force still succeeds:

  • omni_worktree.remove calls git worktree prune first.
  • If dir is already gone, prune handles the stale entry.
python3 scripts/omni_team.py cleanup team-abc123 --force

Limitations

  • 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=1 required).

Download now (ZIP)

  • Other versions42 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 42

    1. Yeachan-Heo/oh-my-claudecode★ 40ksame name
    2. Yeachan-Heo/oh-my-claude-sisyphus★ 40ksame name
    3. Yeachan-Heo/oh-my-codex★ 34ksame name
    4. MaxMiksa/Auto-Company★ 3.2ksame name
    5. MaxMiksa/Autonomous-Company★ 3.2ksame name
    6. zereight/gitlab-mcp★ 2.1ksame name
    7. nicepkg/ctxport★ 629same name
    8. ansari-project/codev★ 289same name
    9. cluesmith/codev★ 289same name
    10. 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.
    • nicepkgSkill

      community-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

    • nicepkgSkill

      ph-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

    • ncklrsSkill

      seo-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

    • xfstudioSkill

      micro-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

    • mastepanoskiSkill

      ux-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.

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.