agentleFS
tderousseltderoussel/agent-skills/skills/fleet-brief/SKILL.md

fleet-brief

Skill1 starsChanged 24 days agoMITView on GitHub

Authors a workstream brief for dispatching multiple parallel build agents across one codebase, with per-lane file ownership, shared-ground warnings, and a derived DO-NOT list. Use whenever work is about to be split across concurrent agents, workers, lanes, or waves — even if the user does not say "write a brief". Trigger phrases include "fan out", "parallel agents", "orchestrate this", "split into lanes", "workstreams", "run these in parallel", "review-gated build". Produces the brief; does not dispatch.

  • Commits and pushes

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Before defining lanes, list the files each proposed change would touch.

    line 15
  2. Distinctive:

    Every file has exactly one owning lane.

    line 19
  3. Distinctive:

    If two lanes need to write one file, you have three options — pick one explicitly, never leave it ambiguous:

    line 25
  4. Distinctive:

    Generated or vendored files: no lane should hand-edit.

    line 41
  5. Distinctive:

    Never git add -A during conflict resolution — it stages the conflict markers and other lanes' work.

    line 51
  6. Distinctive:

    If the test suite mocks the database globally, a green unit test proves nothing about the database.

    line 53
  7. Distinctive:

    Do not add dependencies without a one-line justification.

    line 54
  8. Distinctive:

    Do not apply schema migrations from inside a lane.

    line 55
  9. Distinctive:

    Run builds in git worktrees, never the main checkout — a fleet that shares one working directory will interleave edits.

    line 72
  10. Distinctive:

    Write the brief to wherever the project keeps its plans, and open it with a "verify, never assume" warning.

    line 80

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Fleet brief

Parallel agents fail on shared ground — two lanes editing one file. The brief exists to make that collision impossible before dispatch. Derive the boundaries from the real file map; never assume them.

Build the brief in this order

1. Map the files first

Before defining lanes, list the files each proposed change would touch. Read them. A lane defined without reading its files is a collision waiting to happen.

2. Assign exclusive ownership

Every file has exactly one owning lane. Produce this table:

LaneOwns (writes)Reads only
W1 — <name>path/a.ts, path/b.tspath/shared.ts

If two lanes need to write one file, you have three options — pick one explicitly, never leave it ambiguous:

  • Sequence them (W2 waits for W1's merge)
  • Collapse them into one lane
  • Seam it: one lane adds an extension point, the other consumes it

3. Name the shared ground

List every file that more than one lane reads, and state who may write it.

Derive this list from the codebase in front of you — do not carry another project's list over. The recurring shapes worth checking for:

  • The live inbound path. Whatever receives webhooks or user traffic. Concurrent edits here fail in production, not in tests.
  • Engine and dispatcher modules that several features call into.
  • Append-only manifests — deploy configs, route tables, function lists. Platforms impose limits (function counts, file sizes); two lanes appending independently can breach one.
  • Widely-imported exports. Extend additively; a rename ripples through every caller.
  • Generated or vendored files no lane should hand-edit.

A file that has caused a collision once is shared ground permanently. Record it in the brief so the next fleet inherits the knowledge.

4. Derive the DO-NOT list

Each DO-NOT names a file or behavior and the reason. Bare prohibitions get ignored; grounded ones hold.

Entries that generalize across most codebases:

  • Never git add -A during conflict resolution — it stages the conflict markers and other lanes' work.
  • Workers do not commit in linked worktrees; the orchestrator commits.
  • If the test suite mocks the database globally, a green unit test proves nothing about the database. Say so explicitly.
  • Do not add dependencies without a one-line justification.
  • Do not apply schema migrations from inside a lane. Defer them to a single reviewed step.
  • Watch for CLI calls that fail silently — e.g. gh pr create needs an explicit --base, and chained heredocs can swallow errors.

Then add the project-specific ones. Every incident that cost you a night belongs here, with its reason attached.

5. Set the gate

State explicitly, per lane: what "done" means, what evidence proves it, and who reviews before merge.

The default worth keeping is review-before-live — build, then independent line review, then must-fix rounds, then merge. Never merge a lane on its own author's say-so. The author's agent is the worst possible reviewer of its own diff.

6. Mark what is held

A Deliberately NOT done — needs a human section. Items held for an explicit go are held on purpose. Do not let a lane execute one because it looks ready.

Isolation

Run builds in git worktrees, never the main checkout — a fleet that shares one working directory will interleave edits. If lanes mutate overlapping files despite the map, give each its own worktree.

Sizing

Lanes should be independently mergeable. If a lane cannot merge without another lane's PR, it is not a lane — it is a phase. Sequence phases; parallelize lanes.

Output

Write the brief to wherever the project keeps its plans, and open it with a "verify, never assume" warning. Status lines in any source document are checkpoints, not authority — re-check the live commit, database state, PR checks, and worktree heads before dispatching against them.

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.