agentleFS
Simon-AI-codingSimon-AI-coding/agentcrew-dev-skills/skills/crew/SKILL.md

crew

Skill2 starsChanged 3 months agoMITView on GitHub

Run every ticket of a spec unattended — parallel Claude and Codex children in tmux worktrees, routed per ticket, wave by wave, onto a throwaway integration branch.

16 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    A question is answered; a finding is placed: Every escalation gets its ruling — an option picked, a redirect, pseudocode — and a placement …

    line 56
  2. Distinctive:

    Run the launch script as a background task — this session's one proactive turn:

    line 75
  3. Distinctive:

    Not every ending is a snapshot.

    line 109

“Common” is measured: kept by at least 6 in 10 of the 15 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

Crew

/crew <run-dir> runs the tickets of the run directory /route staged, unattended, and hands back an integration branch to review. Typing it is the run's whole sign-off: the wave table the driver validates from each ticket's ## Routing section is the sole routing authority (ADR-0003).

Your work is judgment: rule on what a child asks, and on what the driver's rule table has no row for. The driver runs the rest — preflight, dispatch, receipts, settlement, merges, tracker closes, advancement, the report — in a tmux window of its own, costing you no turn while it works (ADR-0010).

Contract

Terms are the glossary's (docs/glossary.md).

Reversibility is the authority boundary. You may approve any reversible action — production, remote, deployment, external-service and acceptance runs included — and must record the action's exact undo inside the ruling that approves it. Whether a ticket's acceptance runs at all is your ruling too; its credentials come from the project's own convention, and one the run lacks is parked. An action with no credible undo is parked for the human. The red-line hook blocks known destructive command shapes; this rule stands where the hook misses.

Judgment material is read whole; facts are delegated — read <run-dir>/spec.md whole at run start, before the first ruling: staging generated it as this run's Reference index to the maintainer-authored Markdown the coordinator may read whole. The hook compares physical locations. Code, tests and git remain facts for the witness brief. Every escalation carries the Witness line that checks its pointers; you run it yourself, before you rule, as references/triage.md says. When a ruling needs a fact the table lacks, ask the same Witness directly:

python3 <crew-skill-dir>/assets/witness.py ask \
  --run <run-dir> --ticket <NN> --question '<one factual question>'

Both operations return quoted source and no verdict: the Witness carries evidence and you judge it (ADR-0032). You are bounded by reach, not by count — any pointer already on the table, carried by the brief or cited by the escalation, may be read with an explicit offset and at most 80 lines, as often as the ruling needs, and nothing off the table may be read at all. Grep, Glob and shell file reads are hunts and the hook refuses them; gh issue view stays open because the tracker is the ticket. Where a check comes back failed or partial, the table is empty: send one ask before you rule without a brief. A message lacking what a ruling needs is answered by asking its sender for exactly what it lacks.

A ruling is one decision and its action — pick an option, redirect, or sketch pseudocode — and the child writes the edit: product code belongs to a child, merge-conflict resolution included.

A question is answered; a finding is placed. Every escalation gets its ruling — an option picked, a redirect, pseudocode — and a placement is never the answer to a question. What a ruling leaves over is a finding, whichever escalation carried it, and scope does not place it: the kind of work does. Ask whether it is an edit — the child already knows the cause and where the change goes, and only the typing is left — or a diagnosis — the cause, the approach or the reach of the change is still open. An edit is this ticket, however far outside the ticket's scope it falls. A diagnosis is queued: a ticket you open through the Driver, placed into this Run as its next Wave, whose child diagnoses before it edits; a finding that shares a cause or an area with a queued ticket not yet launched is deferred to it, so one diagnosis covers both. Read the line's pointers as your evidence: a pointer at a cause and a named change site say edit; a pointer at a symptom says diagnosis. Dropped is a finding no one should act on. Opened — a ticket that leaves this Run — is for work outside this feature altogether.

The human hears from you for a decision that is theirs — product direction, a material change of architecture, a widening of product scope, an action with no undo — and asks you for anything else.

Start the run

Run the launch script as a background task — this session's one proactive turn:

python3 <crew-skill-dir>/assets/launch/launch.py <run-dir>

<crew-skill-dir> is the absolute directory this SKILL.md loaded from. The launch script reads your pid, session name, session ID, and permission mode off the harness's own records, puts the driver in a tmux window of its own, and stays behind as a waiter that blocks until the run has something to say — so this step costs one tool call. Where it cannot read one of the four values, it stops and names the flag that supplies the value by hand: get that value from the user, because a wrong pid or name strands every ruling, a wrong session ID scopes coordinator-only hooks to the wrong session, and a wrong mode launches every child outside the mode a message can cross.

The background task you are left holding is only the waiter. The driver is not yours to lose: whatever happens to that task — an interrupt, a compaction, this session ending — the run carries on, and typing /crew <run-dir> again puts another waiter on it without starting a second driver.

Rule when it wakes you

The waiter ends when the driver leaves one JSON wake snapshot, and that object is the whole of what you read:

  • judgment-needed or driver-error — rule on it, following references/triage.md, then put the loop back with the snapshot's resume command, in the background as above — it puts the driver back in a window of its own, exactly as the start did.
  • preflight-failed — tell the operator the count and the surface the snapshot names, and stop; they fix and commit in their own session, then type /crew again.
  • run-complete — one sentence pointing at the report path. The run is over: the driver has already cleared what landed, and the parked and failed work it left standing is listed in the report for the operator's own terminal command to clear. Where the snapshot's cleanup field is not null, say what it names too: that much of the site is still standing.

Not every ending is a snapshot. Where a plain line comes back instead of JSON, the run's driver ended without asking you for anything: report that line as it stands and stop.

An interrupted run — a crash, a killed driver, a restarted session — resumes by re-typing /crew <run-dir>: start adopts a run already under way rather than beginning a second one. The operator sees the same thing on their dashboard, which carries ✖ driver dead — /crew <run-dir> to resume whenever the run's driver was killed rather than exiting. Re-typing it over a final Run also checks each recorded, unlanded Codex child once before returning the old report, so a protocol message sent after settlement enters the original Driver rule table instead of being dropped.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.