agentleFS
Cody-SimsCody-Sims/agent-skills/skills/parallel-worktree-delivery/SKILL.md

parallel-worktree-delivery

Skill0 starsChanged 4 months agoMITView on GitHub

Executes multi-agent, multi-branch git worktree delivery with ownership partitions, dependency waves, branch integration, merge conflict handling, and post-merge gates. Use when running worktree fleets, integration branches, or wave-based migrations where checkout collisions are a risk; do not use merely to identify parallel tasks or for a single small change.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

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

    Run a fleet of agents without checkout collisions by giving every work stream its own git worktree, branch, file-ownership boundary, and …

    line 13
  2. Distinctive:

    Read the repository instructions for every path that any stream may edit.

    line 18
  3. Distinctive:

    Keep append-only shared files such as changelogs on the orchestrator's merge checklist because they conflict often.

    line 40
  4. Distinctive:

    Treat the primary checkout as live: if another human or agent owns uncommitted work there, do not stash, commit, or overwrite it.

    line 42
  5. Distinctive:

    Every worker prompt must include:

    line 47
  6. Distinctive:

    Run the repository's required gate after each merge, not only after the final pile-up.

    line 61
  7. Distinctive:

    Keep cross-cutting fixes with the orchestrator unless one stream clearly owns the affected files.

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Parallel Worktree Delivery

Run a fleet of agents without checkout collisions by giving every work stream its own git worktree, branch, file-ownership boundary, and integration gate.

Start

  1. Read the repository instructions for every path that any stream may edit.
  2. Inspect the current state:
    git branch --show-current
    git status --short
    git worktree list
  3. Choose one integration branch and one branch/worktree per independent stream.
  4. Load references/fleet-setup.md before creating worktrees, sharing prerequisites, or prompting worker agents.
  5. Load references/integration-playbook.md before merging worker branches back together.

Plan the wave

  • Parallelize only streams with independent write ownership and no true ordering dependency.
  • Split dependent work into waves. For example, create shared modules in one wave, then migrate broad call sites in a later wave.
  • Assign every stream an exclusive file set. If a shared file cannot be avoided, assign exact sections or one-line edits and require the worker to flag that edit in its report.
  • Keep append-only shared files such as changelogs on the orchestrator's merge checklist because they conflict often.
  • Treat the primary checkout as live: if another human or agent owns uncommitted work there, do not stash, commit, or overwrite it.

Prompt each worker

Every worker prompt must include:

  • The branch, worktree path, and base branch.
  • The exact paths or sections it owns and a statement that no other files may be edited except explicitly named boundary edits.
  • Required setup notes, including whether dependencies are shared or isolated.
  • The narrow checks it should run before reporting.
  • A requirement to report cross-boundary changes instead of making them when not authorized.

Integrate

  1. Merge one stream branch into the integration branch.
  2. Resolve only that branch's conflicts.
  3. Run the repository's required gate after each merge, not only after the final pile-up.
  4. Keep cross-cutting fixes with the orchestrator unless one stream clearly owns the affected files.
  5. Review the final diff and stage explicit paths only.

Output

Report the wave plan, ownership map, worker branches, validation after each merge, conflicts resolved, cross-cutting orchestrator fixes, and any existing skill or instruction that should be changed later.

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.