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.
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-tool-interface-designSkill
- codebase-explorationSkill
- code-reviewSkill
- copilot-cloud-agentSkill
- documentation-maintenanceSkill
- external-skill-reviewSkill
- git-and-pr-workflowSkill
- planning-and-task-breakdownSkill
- refactoring-and-dead-code-removalSkill
- repository-agent-bootstrapSkill
- requirements-and-spec-writingSkill
- security-reviewSkill
- shadow-architectureSkill
- shadow-dreamSkill
- shadow-driftSkill
- shadow-observeSkill
- skill-creatorSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- verification-before-completionSkill
- verification-disciplineSkill
- wayfinder-planningSkill
- web-research-and-verificationSkill
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
- Distinctive: line 13
Run a fleet of agents without checkout collisions by giving every work stream its own git worktree, branch, file-ownership boundary, and …
- Distinctive: line 18
Read the repository instructions for every path that any stream may edit.
- Distinctive: line 40
Keep append-only shared files such as changelogs on the orchestrator's merge checklist because they conflict often.
- Distinctive: line 42
Treat the primary checkout as live: if another human or agent owns uncommitted work there, do not stash, commit, or overwrite it.
- Distinctive: line 47
Every worker prompt must include:
- Distinctive: line 61
Run the repository's required gate after each merge, not only after the final pile-up.
- Distinctive: line 63
Keep cross-cutting fixes with the orchestrator unless one stream clearly owns the affected files.
≈ “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.
Files
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
- Read the repository instructions for every path that any stream may edit.
- Inspect the current state:
git branch --show-current git status --short git worktree list - Choose one integration branch and one branch/worktree per independent stream.
- Load references/fleet-setup.md before creating worktrees, sharing prerequisites, or prompting worker agents.
- 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
- Merge one stream branch into the integration branch.
- Resolve only that branch's conflicts.
- Run the repository's required gate after each merge, not only after the final pile-up.
- Keep cross-cutting fixes with the orchestrator unless one stream clearly owns the affected files.
- 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.
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
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.

